Skip to content

Commit

Permalink
update pptr
Browse files Browse the repository at this point in the history
  • Loading branch information
Deficuet authored and Deficuet committed Jan 6, 2024
1 parent 75b4e9b commit 743b4b9
Show file tree
Hide file tree
Showing 63 changed files with 80 additions and 32 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.github.deficuet.unitykt.internal.impl;

import io.github.deficuet.unitykt.classes.AnimationClip;
import io.github.deficuet.unitykt.classes.PPtr;
import io.github.deficuet.unitykt.pptr.PPtr;
import io.github.deficuet.unitykt.internal.file.ObjectInfo;
import io.github.deficuet.unitykt.internal.file.SerializedFile;
import org.jetbrains.annotations.NotNull;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import io.github.deficuet.unitykt.classes.AnimationClip;
import io.github.deficuet.unitykt.classes.ControllerConstant;
import io.github.deficuet.unitykt.classes.PPtr;
import io.github.deficuet.unitykt.pptr.PPtr;
import io.github.deficuet.unitykt.internal.file.ObjectInfo;
import io.github.deficuet.unitykt.internal.file.SerializedFile;
import kotlin.UInt;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.github.deficuet.unitykt.internal.impl;

import io.github.deficuet.unitykt.classes.Avatar;
import io.github.deficuet.unitykt.classes.PPtr;
import io.github.deficuet.unitykt.pptr.PPtr;
import io.github.deficuet.unitykt.classes.RuntimeAnimatorController;
import io.github.deficuet.unitykt.internal.file.ObjectInfo;
import io.github.deficuet.unitykt.internal.file.SerializedFile;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.github.deficuet.unitykt.internal.impl;

import io.github.deficuet.unitykt.classes.AnimationClipOverride;
import io.github.deficuet.unitykt.classes.PPtr;
import io.github.deficuet.unitykt.pptr.PPtr;
import io.github.deficuet.unitykt.classes.RuntimeAnimatorController;
import io.github.deficuet.unitykt.internal.file.ObjectInfo;
import io.github.deficuet.unitykt.internal.file.SerializedFile;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.github.deficuet.unitykt.internal.impl;

import io.github.deficuet.unitykt.classes.AssetInfo;
import io.github.deficuet.unitykt.classes.PPtr;
import io.github.deficuet.unitykt.pptr.PPtr;
import io.github.deficuet.unitykt.classes.UnityObject;
import io.github.deficuet.unitykt.internal.file.ObjectInfo;
import io.github.deficuet.unitykt.internal.file.SerializedFile;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.github.deficuet.unitykt.internal.impl;

import io.github.deficuet.unitykt.classes.PPtr;
import io.github.deficuet.unitykt.pptr.PPtr;
import io.github.deficuet.unitykt.classes.UnityObject;
import io.github.deficuet.unitykt.internal.file.ObjectInfo;
import io.github.deficuet.unitykt.internal.file.SerializedFile;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.github.deficuet.unitykt.internal.impl;

import io.github.deficuet.unitykt.classes.GameObject;
import io.github.deficuet.unitykt.classes.PPtr;
import io.github.deficuet.unitykt.pptr.PPtr;
import io.github.deficuet.unitykt.internal.file.ObjectInfo;
import io.github.deficuet.unitykt.internal.file.SerializedFile;
import org.jetbrains.annotations.NotNull;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import io.github.deficuet.unitykt.classes.*;
import io.github.deficuet.unitykt.internal.file.ObjectInfo;
import io.github.deficuet.unitykt.internal.file.SerializedFile;
import io.github.deficuet.unitykt.pptr.PPtr;
import kotlin.UInt;
import kotlin.UShort;
import org.jetbrains.annotations.NotNull;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.github.deficuet.unitykt.internal.impl;

import io.github.deficuet.unitykt.classes.PPtr;
import io.github.deficuet.unitykt.pptr.PPtr;
import io.github.deficuet.unitykt.classes.Shader;
import io.github.deficuet.unitykt.classes.UnityPropertySheet;
import io.github.deficuet.unitykt.internal.file.ObjectInfo;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.github.deficuet.unitykt.internal.impl;

import io.github.deficuet.unitykt.classes.Mesh;
import io.github.deficuet.unitykt.classes.PPtr;
import io.github.deficuet.unitykt.pptr.PPtr;
import io.github.deficuet.unitykt.internal.file.ObjectInfo;
import io.github.deficuet.unitykt.internal.file.SerializedFile;
import org.jetbrains.annotations.NotNull;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.github.deficuet.unitykt.internal.impl;

import io.github.deficuet.unitykt.classes.MonoScript;
import io.github.deficuet.unitykt.classes.PPtr;
import io.github.deficuet.unitykt.pptr.PPtr;
import io.github.deficuet.unitykt.internal.file.ObjectInfo;
import io.github.deficuet.unitykt.internal.file.SerializedFile;
import org.jetbrains.annotations.NotNull;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.github.deficuet.unitykt.internal.impl;

import io.github.deficuet.unitykt.classes.AudioClip;
import io.github.deficuet.unitykt.classes.PPtr;
import io.github.deficuet.unitykt.pptr.PPtr;
import io.github.deficuet.unitykt.internal.file.ObjectInfo;
import io.github.deficuet.unitykt.internal.file.SerializedFile;
import org.jetbrains.annotations.NotNull;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.github.deficuet.unitykt.internal.impl;

import io.github.deficuet.unitykt.classes.Material;
import io.github.deficuet.unitykt.classes.PPtr;
import io.github.deficuet.unitykt.pptr.PPtr;
import io.github.deficuet.unitykt.classes.StaticBatchInfo;
import io.github.deficuet.unitykt.internal.file.ObjectInfo;
import io.github.deficuet.unitykt.internal.file.SerializedFile;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.github.deficuet.unitykt.internal.impl;

import io.github.deficuet.unitykt.classes.PPtr;
import io.github.deficuet.unitykt.pptr.PPtr;
import io.github.deficuet.unitykt.classes.UnityObject;
import io.github.deficuet.unitykt.internal.file.ObjectInfo;
import io.github.deficuet.unitykt.internal.file.SerializedFile;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.github.deficuet.unitykt.internal.impl;

import io.github.deficuet.unitykt.classes.Mesh;
import io.github.deficuet.unitykt.classes.PPtr;
import io.github.deficuet.unitykt.pptr.PPtr;
import io.github.deficuet.unitykt.classes.Transform;
import io.github.deficuet.unitykt.internal.file.ObjectInfo;
import io.github.deficuet.unitykt.internal.file.SerializedFile;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.github.deficuet.unitykt.internal.impl;

import io.github.deficuet.unitykt.classes.PPtr;
import io.github.deficuet.unitykt.pptr.PPtr;
import io.github.deficuet.unitykt.classes.SpriteAtlas;
import io.github.deficuet.unitykt.classes.SpriteRenderData;
import io.github.deficuet.unitykt.internal.file.ObjectInfo;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.github.deficuet.unitykt.internal.impl;

import io.github.deficuet.unitykt.classes.PPtr;
import io.github.deficuet.unitykt.pptr.PPtr;
import io.github.deficuet.unitykt.classes.Transform;
import io.github.deficuet.unitykt.internal.file.ObjectInfo;
import io.github.deficuet.unitykt.internal.file.SerializedFile;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.github.deficuet.unitykt.internal.impl;

import io.github.deficuet.unitykt.classes.PPtr;
import io.github.deficuet.unitykt.pptr.PPtr;
import io.github.deficuet.unitykt.classes.Shader;
import io.github.deficuet.unitykt.classes.StreamedResource;
import io.github.deficuet.unitykt.internal.file.ObjectInfo;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.github.deficuet.unitykt

import io.github.deficuet.unitykt.classes.AssetBundle
import io.github.deficuet.unitykt.classes.PPtr
import io.github.deficuet.unitykt.pptr.PPtr
import io.github.deficuet.unitykt.classes.UnityObject
import io.github.deficuet.unitykt.internal.UnityAssetManagerImpl
import java.io.Closeable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package io.github.deficuet.unitykt.classes

import io.github.deficuet.unitykt.pptr.PPtr

interface Animation: Behaviour {
val mAnimations: Array<out PPtr<AnimationClip>>
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import io.github.deficuet.unitykt.enums.NumericalEnumCompanion
import io.github.deficuet.unitykt.math.Quaternion
import io.github.deficuet.unitykt.math.Vector3
import io.github.deficuet.unitykt.math.Vector4
import io.github.deficuet.unitykt.pptr.PPtr

interface AnimationClip: NamedObject {
val mAnimationType: AnimationType
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package io.github.deficuet.unitykt.classes

import io.github.deficuet.unitykt.pptr.PPtr

interface Animator: Behaviour {
val mAvatar: PPtr<Avatar>
val mController: PPtr<RuntimeAnimatorController>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package io.github.deficuet.unitykt.classes
import io.github.deficuet.unitykt.math.Vector2
import io.github.deficuet.unitykt.math.Vector3
import io.github.deficuet.unitykt.math.Vector4
import io.github.deficuet.unitykt.pptr.PPtr

interface AnimatorController: RuntimeAnimatorController {
val mControllerSize: UInt
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package io.github.deficuet.unitykt.classes

import io.github.deficuet.unitykt.pptr.PPtr

interface AnimatorOverrideController: RuntimeAnimatorController {
val mController: PPtr<RuntimeAnimatorController>
val mClips: Array<out AnimationClipOverride>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package io.github.deficuet.unitykt.classes

import io.github.deficuet.unitykt.pptr.PPtr

interface AssetBundle: NamedObject {
val mPreloadTable: Array<out PPtr<UnityObject>>
val mContainer: Map<String, List<AssetInfo>>
Expand Down
2 changes: 2 additions & 0 deletions src/main/kotlin/io/github/deficuet/unitykt/classes/Canvas.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package io.github.deficuet.unitykt.classes

import io.github.deficuet.unitykt.pptr.PPtr

/**
* Only tested under version `2018.4.34f1`
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package io.github.deficuet.unitykt.classes

import io.github.deficuet.unitykt.pptr.PPtr

interface Component: EditorExtension {
val mGameObject: PPtr<GameObject>
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package io.github.deficuet.unitykt.classes

import io.github.deficuet.unitykt.pptr.PPtr

interface GameObject: EditorExtension {
val mComponents: Array<out PPtr<Component>>
val mLayer: UInt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package io.github.deficuet.unitykt.classes

import io.github.deficuet.unitykt.math.Color
import io.github.deficuet.unitykt.math.Vector2
import io.github.deficuet.unitykt.pptr.PPtr

interface Material: NamedObject {
val mShader: PPtr<Shader>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package io.github.deficuet.unitykt.classes

import io.github.deficuet.unitykt.pptr.PPtr

interface MeshFilter: Component {
val mMesh: PPtr<Mesh>
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package io.github.deficuet.unitykt.classes

import io.github.deficuet.unitykt.pptr.PPtr

interface MonoBehaviour: Behaviour {
val mScript: PPtr<MonoScript>
val mName: String
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package io.github.deficuet.unitykt.classes

import io.github.deficuet.unitykt.pptr.PPtr

interface MovieTexture: Texture {
val mLoop: Boolean
val mAudioClip: PPtr<AudioClip>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package io.github.deficuet.unitykt.classes

import io.github.deficuet.unitykt.pptr.PPtr

interface Renderer: Component {
val mMaterials: Array<out PPtr<Material>>
val mStaticBatchInfo: StaticBatchInfo?
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package io.github.deficuet.unitykt.classes

import io.github.deficuet.unitykt.pptr.PPtr

interface ResourceManager: UnityObject {
val mContainer: Map<String, List<PPtr<UnityObject>>>
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package io.github.deficuet.unitykt.classes

import io.github.deficuet.unitykt.pptr.PPtr

interface SkinnedMeshRenderer: Renderer {
val mMesh: PPtr<Mesh>
val mBones: Array<out PPtr<Transform>>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package io.github.deficuet.unitykt.classes
import io.github.deficuet.unitykt.enums.NumericalEnum
import io.github.deficuet.unitykt.enums.NumericalEnumCompanion
import io.github.deficuet.unitykt.math.*
import io.github.deficuet.unitykt.pptr.PPtr
import java.awt.image.BufferedImage
import java.util.*

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package io.github.deficuet.unitykt.classes
import io.github.deficuet.unitykt.math.Rectangle
import io.github.deficuet.unitykt.math.Vector2
import io.github.deficuet.unitykt.math.Vector4
import io.github.deficuet.unitykt.pptr.PPtr
import java.util.*

interface SpriteAtlas: NamedObject {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package io.github.deficuet.unitykt.classes

import io.github.deficuet.unitykt.math.Quaternion
import io.github.deficuet.unitykt.math.Vector3
import io.github.deficuet.unitykt.pptr.PPtr

interface Transform: Component {
val mLocalRotation: Quaternion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import io.github.deficuet.unitykt.ImportContext
import io.github.deficuet.unitykt.enums.BuildTarget
import io.github.deficuet.unitykt.enums.ClassIDType
import io.github.deficuet.unitykt.internal.file.SerializedType
import io.github.deficuet.unitykt.pptr.PPtr
import org.json.JSONObject

interface UnityObject {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package io.github.deficuet.unitykt.classes

import io.github.deficuet.unitykt.pptr.PPtr

interface VideoClip: NamedObject {
val mOriginalPath: String
val mProxyWidth: UInt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import io.github.deficuet.unitykt.internal.file.ObjectInfo
import io.github.deficuet.unitykt.internal.file.SerializedFile
import io.github.deficuet.unitykt.math.Quaternion
import io.github.deficuet.unitykt.math.Vector3
import io.github.deficuet.unitykt.pptr.PPtr
import io.github.deficuet.unitykt.util.*
import kotlin.math.sqrt

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package io.github.deficuet.unitykt.internal.impl

import io.github.deficuet.unitykt.classes.Animation
import io.github.deficuet.unitykt.classes.AnimationClip
import io.github.deficuet.unitykt.classes.PPtr
import io.github.deficuet.unitykt.pptr.PPtr
import io.github.deficuet.unitykt.internal.file.ObjectInfo
import io.github.deficuet.unitykt.internal.file.SerializedFile
import io.github.deficuet.unitykt.util.readArrayOf
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import io.github.deficuet.unitykt.internal.file.ObjectInfo
import io.github.deficuet.unitykt.internal.file.SerializedFile
import io.github.deficuet.unitykt.math.Vector3
import io.github.deficuet.unitykt.math.Vector4
import io.github.deficuet.unitykt.pptr.PPtr
import io.github.deficuet.unitykt.util.ObjectReader
import io.github.deficuet.unitykt.util.compareTo
import io.github.deficuet.unitykt.util.readArrayOf
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package io.github.deficuet.unitykt.internal.impl

import io.github.deficuet.unitykt.classes.Animator
import io.github.deficuet.unitykt.classes.Avatar
import io.github.deficuet.unitykt.classes.PPtr
import io.github.deficuet.unitykt.pptr.PPtr
import io.github.deficuet.unitykt.classes.RuntimeAnimatorController
import io.github.deficuet.unitykt.internal.file.ObjectInfo
import io.github.deficuet.unitykt.internal.file.SerializedFile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package io.github.deficuet.unitykt.internal.impl
import io.github.deficuet.unitykt.classes.*
import io.github.deficuet.unitykt.internal.file.ObjectInfo
import io.github.deficuet.unitykt.internal.file.SerializedFile
import io.github.deficuet.unitykt.pptr.PPtr
import io.github.deficuet.unitykt.util.ObjectReader
import io.github.deficuet.unitykt.util.readArrayOf

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package io.github.deficuet.unitykt.internal.impl

import io.github.deficuet.unitykt.classes.AssetBundle
import io.github.deficuet.unitykt.classes.AssetInfo
import io.github.deficuet.unitykt.classes.PPtr
import io.github.deficuet.unitykt.pptr.PPtr
import io.github.deficuet.unitykt.classes.UnityObject
import io.github.deficuet.unitykt.internal.file.ObjectInfo
import io.github.deficuet.unitykt.internal.file.SerializedFile
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.github.deficuet.unitykt.internal.impl

import io.github.deficuet.unitykt.classes.Canvas
import io.github.deficuet.unitykt.classes.PPtr
import io.github.deficuet.unitykt.pptr.PPtr
import io.github.deficuet.unitykt.classes.UnityObject
import io.github.deficuet.unitykt.internal.file.ObjectInfo
import io.github.deficuet.unitykt.internal.file.SerializedFile
Expand Down
Loading

0 comments on commit 743b4b9

Please sign in to comment.