From 743b4b92e0bcd178821c4c37585ec835f047482f Mon Sep 17 00:00:00 2001 From: Deficuet Date: Sat, 6 Jan 2024 10:41:17 -0700 Subject: [PATCH] update pptr --- .../github/deficuet/unitykt/internal/impl/AnimationFields.java | 2 +- .../unitykt/internal/impl/AnimatorControllerFields.java | 2 +- .../github/deficuet/unitykt/internal/impl/AnimatorFields.java | 2 +- .../internal/impl/AnimatorOverrideControllerFields.java | 2 +- .../deficuet/unitykt/internal/impl/AssetBundleFields.java | 2 +- .../io/github/deficuet/unitykt/internal/impl/CanvasFields.java | 2 +- .../github/deficuet/unitykt/internal/impl/ComponentFields.java | 2 +- .../deficuet/unitykt/internal/impl/GameObjectFields.java | 1 + .../github/deficuet/unitykt/internal/impl/MaterialFields.java | 2 +- .../deficuet/unitykt/internal/impl/MeshFilterFields.java | 2 +- .../deficuet/unitykt/internal/impl/MonoBehaviourFields.java | 2 +- .../deficuet/unitykt/internal/impl/MovieTextureFields.java | 2 +- .../github/deficuet/unitykt/internal/impl/RendererFields.java | 2 +- .../deficuet/unitykt/internal/impl/ResourceManagerFields.java | 2 +- .../unitykt/internal/impl/SkinnedMeshRendererFields.java | 2 +- .../io/github/deficuet/unitykt/internal/impl/SpriteFields.java | 2 +- .../github/deficuet/unitykt/internal/impl/TransformFields.java | 2 +- .../github/deficuet/unitykt/internal/impl/VideoClipFields.java | 2 +- .../kotlin/io/github/deficuet/unitykt/UnityAssetManager.kt | 2 +- .../kotlin/io/github/deficuet/unitykt/classes/Animation.kt | 2 ++ .../kotlin/io/github/deficuet/unitykt/classes/AnimationClip.kt | 1 + src/main/kotlin/io/github/deficuet/unitykt/classes/Animator.kt | 2 ++ .../io/github/deficuet/unitykt/classes/AnimatorController.kt | 1 + .../deficuet/unitykt/classes/AnimatorOverrideController.kt | 2 ++ .../kotlin/io/github/deficuet/unitykt/classes/AssetBundle.kt | 2 ++ src/main/kotlin/io/github/deficuet/unitykt/classes/Canvas.kt | 2 ++ .../kotlin/io/github/deficuet/unitykt/classes/Component.kt | 2 ++ .../kotlin/io/github/deficuet/unitykt/classes/GameObject.kt | 2 ++ src/main/kotlin/io/github/deficuet/unitykt/classes/Material.kt | 1 + .../kotlin/io/github/deficuet/unitykt/classes/MeshFilter.kt | 2 ++ .../kotlin/io/github/deficuet/unitykt/classes/MonoBehaviour.kt | 2 ++ .../kotlin/io/github/deficuet/unitykt/classes/MovieTexture.kt | 2 ++ src/main/kotlin/io/github/deficuet/unitykt/classes/Renderer.kt | 2 ++ .../io/github/deficuet/unitykt/classes/ResourceManager.kt | 2 ++ .../io/github/deficuet/unitykt/classes/SkinnedMeshRenderer.kt | 2 ++ src/main/kotlin/io/github/deficuet/unitykt/classes/Sprite.kt | 1 + .../kotlin/io/github/deficuet/unitykt/classes/SpriteAtlas.kt | 1 + .../kotlin/io/github/deficuet/unitykt/classes/Transform.kt | 1 + .../kotlin/io/github/deficuet/unitykt/classes/UnityObject.kt | 1 + .../kotlin/io/github/deficuet/unitykt/classes/VideoClip.kt | 2 ++ .../github/deficuet/unitykt/internal/impl/AnimationClipImpl.kt | 1 + .../io/github/deficuet/unitykt/internal/impl/AnimationImpl.kt | 2 +- .../deficuet/unitykt/internal/impl/AnimatorControllerImpl.kt | 1 + .../io/github/deficuet/unitykt/internal/impl/AnimatorImpl.kt | 2 +- .../unitykt/internal/impl/AnimatorOverrideControllerImpl.kt | 1 + .../github/deficuet/unitykt/internal/impl/AssetBundleImpl.kt | 2 +- .../io/github/deficuet/unitykt/internal/impl/CanvasImpl.kt | 2 +- .../io/github/deficuet/unitykt/internal/impl/ComponentImpl.kt | 2 +- .../io/github/deficuet/unitykt/internal/impl/GameObjectImpl.kt | 2 ++ .../io/github/deficuet/unitykt/internal/impl/MaterialImpl.kt | 1 + .../io/github/deficuet/unitykt/internal/impl/MeshFilterImpl.kt | 2 +- .../github/deficuet/unitykt/internal/impl/MonoBehaviourImpl.kt | 2 +- .../github/deficuet/unitykt/internal/impl/MovieTextureImpl.kt | 2 +- .../io/github/deficuet/unitykt/internal/impl/PPtrImpl.kt | 2 +- .../io/github/deficuet/unitykt/internal/impl/RendererImpl.kt | 1 + .../deficuet/unitykt/internal/impl/ResourceManagerImpl.kt | 2 +- .../deficuet/unitykt/internal/impl/SkinnedMeshRendererImpl.kt | 1 + .../github/deficuet/unitykt/internal/impl/SpriteAtlasImpl.kt | 1 + .../io/github/deficuet/unitykt/internal/impl/SpriteImpl.kt | 2 ++ .../io/github/deficuet/unitykt/internal/impl/TransformImpl.kt | 2 +- .../github/deficuet/unitykt/internal/impl/UnityObjectImpl.kt | 2 +- .../io/github/deficuet/unitykt/internal/impl/VideoClipImpl.kt | 2 +- .../io/github/deficuet/unitykt/{classes => pptr}/PPtr.kt | 3 ++- 63 files changed, 80 insertions(+), 32 deletions(-) rename src/main/kotlin/io/github/deficuet/unitykt/{classes => pptr}/PPtr.kt (95%) diff --git a/src/main/java/io/github/deficuet/unitykt/internal/impl/AnimationFields.java b/src/main/java/io/github/deficuet/unitykt/internal/impl/AnimationFields.java index c7e5fd5a..778600f7 100644 --- a/src/main/java/io/github/deficuet/unitykt/internal/impl/AnimationFields.java +++ b/src/main/java/io/github/deficuet/unitykt/internal/impl/AnimationFields.java @@ -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; diff --git a/src/main/java/io/github/deficuet/unitykt/internal/impl/AnimatorControllerFields.java b/src/main/java/io/github/deficuet/unitykt/internal/impl/AnimatorControllerFields.java index 622b1a42..e788be2b 100644 --- a/src/main/java/io/github/deficuet/unitykt/internal/impl/AnimatorControllerFields.java +++ b/src/main/java/io/github/deficuet/unitykt/internal/impl/AnimatorControllerFields.java @@ -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; diff --git a/src/main/java/io/github/deficuet/unitykt/internal/impl/AnimatorFields.java b/src/main/java/io/github/deficuet/unitykt/internal/impl/AnimatorFields.java index 914903ec..272755f0 100644 --- a/src/main/java/io/github/deficuet/unitykt/internal/impl/AnimatorFields.java +++ b/src/main/java/io/github/deficuet/unitykt/internal/impl/AnimatorFields.java @@ -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; diff --git a/src/main/java/io/github/deficuet/unitykt/internal/impl/AnimatorOverrideControllerFields.java b/src/main/java/io/github/deficuet/unitykt/internal/impl/AnimatorOverrideControllerFields.java index 715fa811..ff478215 100644 --- a/src/main/java/io/github/deficuet/unitykt/internal/impl/AnimatorOverrideControllerFields.java +++ b/src/main/java/io/github/deficuet/unitykt/internal/impl/AnimatorOverrideControllerFields.java @@ -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; diff --git a/src/main/java/io/github/deficuet/unitykt/internal/impl/AssetBundleFields.java b/src/main/java/io/github/deficuet/unitykt/internal/impl/AssetBundleFields.java index e6767b5d..1901816f 100644 --- a/src/main/java/io/github/deficuet/unitykt/internal/impl/AssetBundleFields.java +++ b/src/main/java/io/github/deficuet/unitykt/internal/impl/AssetBundleFields.java @@ -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; diff --git a/src/main/java/io/github/deficuet/unitykt/internal/impl/CanvasFields.java b/src/main/java/io/github/deficuet/unitykt/internal/impl/CanvasFields.java index f5fe72af..f850694c 100644 --- a/src/main/java/io/github/deficuet/unitykt/internal/impl/CanvasFields.java +++ b/src/main/java/io/github/deficuet/unitykt/internal/impl/CanvasFields.java @@ -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; diff --git a/src/main/java/io/github/deficuet/unitykt/internal/impl/ComponentFields.java b/src/main/java/io/github/deficuet/unitykt/internal/impl/ComponentFields.java index 12c20ee6..9f9f77d1 100644 --- a/src/main/java/io/github/deficuet/unitykt/internal/impl/ComponentFields.java +++ b/src/main/java/io/github/deficuet/unitykt/internal/impl/ComponentFields.java @@ -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; diff --git a/src/main/java/io/github/deficuet/unitykt/internal/impl/GameObjectFields.java b/src/main/java/io/github/deficuet/unitykt/internal/impl/GameObjectFields.java index fa73b22c..674de2b3 100644 --- a/src/main/java/io/github/deficuet/unitykt/internal/impl/GameObjectFields.java +++ b/src/main/java/io/github/deficuet/unitykt/internal/impl/GameObjectFields.java @@ -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; diff --git a/src/main/java/io/github/deficuet/unitykt/internal/impl/MaterialFields.java b/src/main/java/io/github/deficuet/unitykt/internal/impl/MaterialFields.java index a408e697..8f9b5dab 100644 --- a/src/main/java/io/github/deficuet/unitykt/internal/impl/MaterialFields.java +++ b/src/main/java/io/github/deficuet/unitykt/internal/impl/MaterialFields.java @@ -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; diff --git a/src/main/java/io/github/deficuet/unitykt/internal/impl/MeshFilterFields.java b/src/main/java/io/github/deficuet/unitykt/internal/impl/MeshFilterFields.java index dad98434..90104c3e 100644 --- a/src/main/java/io/github/deficuet/unitykt/internal/impl/MeshFilterFields.java +++ b/src/main/java/io/github/deficuet/unitykt/internal/impl/MeshFilterFields.java @@ -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; diff --git a/src/main/java/io/github/deficuet/unitykt/internal/impl/MonoBehaviourFields.java b/src/main/java/io/github/deficuet/unitykt/internal/impl/MonoBehaviourFields.java index 1a2d827c..711b9a4a 100644 --- a/src/main/java/io/github/deficuet/unitykt/internal/impl/MonoBehaviourFields.java +++ b/src/main/java/io/github/deficuet/unitykt/internal/impl/MonoBehaviourFields.java @@ -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; diff --git a/src/main/java/io/github/deficuet/unitykt/internal/impl/MovieTextureFields.java b/src/main/java/io/github/deficuet/unitykt/internal/impl/MovieTextureFields.java index ecc500c1..0e058f62 100644 --- a/src/main/java/io/github/deficuet/unitykt/internal/impl/MovieTextureFields.java +++ b/src/main/java/io/github/deficuet/unitykt/internal/impl/MovieTextureFields.java @@ -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; diff --git a/src/main/java/io/github/deficuet/unitykt/internal/impl/RendererFields.java b/src/main/java/io/github/deficuet/unitykt/internal/impl/RendererFields.java index ead17064..aa27adf1 100644 --- a/src/main/java/io/github/deficuet/unitykt/internal/impl/RendererFields.java +++ b/src/main/java/io/github/deficuet/unitykt/internal/impl/RendererFields.java @@ -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; diff --git a/src/main/java/io/github/deficuet/unitykt/internal/impl/ResourceManagerFields.java b/src/main/java/io/github/deficuet/unitykt/internal/impl/ResourceManagerFields.java index 233290bf..a03d4f4e 100644 --- a/src/main/java/io/github/deficuet/unitykt/internal/impl/ResourceManagerFields.java +++ b/src/main/java/io/github/deficuet/unitykt/internal/impl/ResourceManagerFields.java @@ -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; diff --git a/src/main/java/io/github/deficuet/unitykt/internal/impl/SkinnedMeshRendererFields.java b/src/main/java/io/github/deficuet/unitykt/internal/impl/SkinnedMeshRendererFields.java index 085aaf03..e8669620 100644 --- a/src/main/java/io/github/deficuet/unitykt/internal/impl/SkinnedMeshRendererFields.java +++ b/src/main/java/io/github/deficuet/unitykt/internal/impl/SkinnedMeshRendererFields.java @@ -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; diff --git a/src/main/java/io/github/deficuet/unitykt/internal/impl/SpriteFields.java b/src/main/java/io/github/deficuet/unitykt/internal/impl/SpriteFields.java index 258786c7..6467cb50 100644 --- a/src/main/java/io/github/deficuet/unitykt/internal/impl/SpriteFields.java +++ b/src/main/java/io/github/deficuet/unitykt/internal/impl/SpriteFields.java @@ -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; diff --git a/src/main/java/io/github/deficuet/unitykt/internal/impl/TransformFields.java b/src/main/java/io/github/deficuet/unitykt/internal/impl/TransformFields.java index c9b3ea3a..4f86efb6 100644 --- a/src/main/java/io/github/deficuet/unitykt/internal/impl/TransformFields.java +++ b/src/main/java/io/github/deficuet/unitykt/internal/impl/TransformFields.java @@ -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; diff --git a/src/main/java/io/github/deficuet/unitykt/internal/impl/VideoClipFields.java b/src/main/java/io/github/deficuet/unitykt/internal/impl/VideoClipFields.java index 841b4276..9bbeb28e 100644 --- a/src/main/java/io/github/deficuet/unitykt/internal/impl/VideoClipFields.java +++ b/src/main/java/io/github/deficuet/unitykt/internal/impl/VideoClipFields.java @@ -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; diff --git a/src/main/kotlin/io/github/deficuet/unitykt/UnityAssetManager.kt b/src/main/kotlin/io/github/deficuet/unitykt/UnityAssetManager.kt index d7afeaca..8f627f8f 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/UnityAssetManager.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/UnityAssetManager.kt @@ -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 diff --git a/src/main/kotlin/io/github/deficuet/unitykt/classes/Animation.kt b/src/main/kotlin/io/github/deficuet/unitykt/classes/Animation.kt index cdcb48a9..9eddeed3 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/classes/Animation.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/classes/Animation.kt @@ -1,5 +1,7 @@ package io.github.deficuet.unitykt.classes +import io.github.deficuet.unitykt.pptr.PPtr + interface Animation: Behaviour { val mAnimations: Array> } \ No newline at end of file diff --git a/src/main/kotlin/io/github/deficuet/unitykt/classes/AnimationClip.kt b/src/main/kotlin/io/github/deficuet/unitykt/classes/AnimationClip.kt index 782ebb52..77120e0b 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/classes/AnimationClip.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/classes/AnimationClip.kt @@ -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 diff --git a/src/main/kotlin/io/github/deficuet/unitykt/classes/Animator.kt b/src/main/kotlin/io/github/deficuet/unitykt/classes/Animator.kt index 5c65f54e..61849672 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/classes/Animator.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/classes/Animator.kt @@ -1,5 +1,7 @@ package io.github.deficuet.unitykt.classes +import io.github.deficuet.unitykt.pptr.PPtr + interface Animator: Behaviour { val mAvatar: PPtr val mController: PPtr diff --git a/src/main/kotlin/io/github/deficuet/unitykt/classes/AnimatorController.kt b/src/main/kotlin/io/github/deficuet/unitykt/classes/AnimatorController.kt index ad6e696f..761b8151 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/classes/AnimatorController.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/classes/AnimatorController.kt @@ -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 diff --git a/src/main/kotlin/io/github/deficuet/unitykt/classes/AnimatorOverrideController.kt b/src/main/kotlin/io/github/deficuet/unitykt/classes/AnimatorOverrideController.kt index cc56ffab..03f2ebfb 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/classes/AnimatorOverrideController.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/classes/AnimatorOverrideController.kt @@ -1,5 +1,7 @@ package io.github.deficuet.unitykt.classes +import io.github.deficuet.unitykt.pptr.PPtr + interface AnimatorOverrideController: RuntimeAnimatorController { val mController: PPtr val mClips: Array diff --git a/src/main/kotlin/io/github/deficuet/unitykt/classes/AssetBundle.kt b/src/main/kotlin/io/github/deficuet/unitykt/classes/AssetBundle.kt index f0c1974b..9a8d6bdb 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/classes/AssetBundle.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/classes/AssetBundle.kt @@ -1,5 +1,7 @@ package io.github.deficuet.unitykt.classes +import io.github.deficuet.unitykt.pptr.PPtr + interface AssetBundle: NamedObject { val mPreloadTable: Array> val mContainer: Map> diff --git a/src/main/kotlin/io/github/deficuet/unitykt/classes/Canvas.kt b/src/main/kotlin/io/github/deficuet/unitykt/classes/Canvas.kt index d256abc9..7ae9a039 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/classes/Canvas.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/classes/Canvas.kt @@ -1,5 +1,7 @@ package io.github.deficuet.unitykt.classes +import io.github.deficuet.unitykt.pptr.PPtr + /** * Only tested under version `2018.4.34f1` */ diff --git a/src/main/kotlin/io/github/deficuet/unitykt/classes/Component.kt b/src/main/kotlin/io/github/deficuet/unitykt/classes/Component.kt index eae8fbe7..662ee63d 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/classes/Component.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/classes/Component.kt @@ -1,5 +1,7 @@ package io.github.deficuet.unitykt.classes +import io.github.deficuet.unitykt.pptr.PPtr + interface Component: EditorExtension { val mGameObject: PPtr } \ No newline at end of file diff --git a/src/main/kotlin/io/github/deficuet/unitykt/classes/GameObject.kt b/src/main/kotlin/io/github/deficuet/unitykt/classes/GameObject.kt index 4098bf0e..75564ab3 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/classes/GameObject.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/classes/GameObject.kt @@ -1,5 +1,7 @@ package io.github.deficuet.unitykt.classes +import io.github.deficuet.unitykt.pptr.PPtr + interface GameObject: EditorExtension { val mComponents: Array> val mLayer: UInt diff --git a/src/main/kotlin/io/github/deficuet/unitykt/classes/Material.kt b/src/main/kotlin/io/github/deficuet/unitykt/classes/Material.kt index fc38c511..4dbe43b7 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/classes/Material.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/classes/Material.kt @@ -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 diff --git a/src/main/kotlin/io/github/deficuet/unitykt/classes/MeshFilter.kt b/src/main/kotlin/io/github/deficuet/unitykt/classes/MeshFilter.kt index eb760dd8..e2ed4eba 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/classes/MeshFilter.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/classes/MeshFilter.kt @@ -1,5 +1,7 @@ package io.github.deficuet.unitykt.classes +import io.github.deficuet.unitykt.pptr.PPtr + interface MeshFilter: Component { val mMesh: PPtr } \ No newline at end of file diff --git a/src/main/kotlin/io/github/deficuet/unitykt/classes/MonoBehaviour.kt b/src/main/kotlin/io/github/deficuet/unitykt/classes/MonoBehaviour.kt index 89904103..269b0180 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/classes/MonoBehaviour.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/classes/MonoBehaviour.kt @@ -1,5 +1,7 @@ package io.github.deficuet.unitykt.classes +import io.github.deficuet.unitykt.pptr.PPtr + interface MonoBehaviour: Behaviour { val mScript: PPtr val mName: String diff --git a/src/main/kotlin/io/github/deficuet/unitykt/classes/MovieTexture.kt b/src/main/kotlin/io/github/deficuet/unitykt/classes/MovieTexture.kt index 57986d00..d0c8987d 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/classes/MovieTexture.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/classes/MovieTexture.kt @@ -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 diff --git a/src/main/kotlin/io/github/deficuet/unitykt/classes/Renderer.kt b/src/main/kotlin/io/github/deficuet/unitykt/classes/Renderer.kt index cf174faa..2d6d91c5 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/classes/Renderer.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/classes/Renderer.kt @@ -1,5 +1,7 @@ package io.github.deficuet.unitykt.classes +import io.github.deficuet.unitykt.pptr.PPtr + interface Renderer: Component { val mMaterials: Array> val mStaticBatchInfo: StaticBatchInfo? diff --git a/src/main/kotlin/io/github/deficuet/unitykt/classes/ResourceManager.kt b/src/main/kotlin/io/github/deficuet/unitykt/classes/ResourceManager.kt index 47175144..a64c6a30 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/classes/ResourceManager.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/classes/ResourceManager.kt @@ -1,5 +1,7 @@ package io.github.deficuet.unitykt.classes +import io.github.deficuet.unitykt.pptr.PPtr + interface ResourceManager: UnityObject { val mContainer: Map>> } \ No newline at end of file diff --git a/src/main/kotlin/io/github/deficuet/unitykt/classes/SkinnedMeshRenderer.kt b/src/main/kotlin/io/github/deficuet/unitykt/classes/SkinnedMeshRenderer.kt index 24612765..74aa4bbe 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/classes/SkinnedMeshRenderer.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/classes/SkinnedMeshRenderer.kt @@ -1,5 +1,7 @@ package io.github.deficuet.unitykt.classes +import io.github.deficuet.unitykt.pptr.PPtr + interface SkinnedMeshRenderer: Renderer { val mMesh: PPtr val mBones: Array> diff --git a/src/main/kotlin/io/github/deficuet/unitykt/classes/Sprite.kt b/src/main/kotlin/io/github/deficuet/unitykt/classes/Sprite.kt index d97009fa..a00bdd3f 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/classes/Sprite.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/classes/Sprite.kt @@ -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.* diff --git a/src/main/kotlin/io/github/deficuet/unitykt/classes/SpriteAtlas.kt b/src/main/kotlin/io/github/deficuet/unitykt/classes/SpriteAtlas.kt index 6b1cef8e..90eb283c 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/classes/SpriteAtlas.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/classes/SpriteAtlas.kt @@ -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 { diff --git a/src/main/kotlin/io/github/deficuet/unitykt/classes/Transform.kt b/src/main/kotlin/io/github/deficuet/unitykt/classes/Transform.kt index ec70569b..46b6f102 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/classes/Transform.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/classes/Transform.kt @@ -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 diff --git a/src/main/kotlin/io/github/deficuet/unitykt/classes/UnityObject.kt b/src/main/kotlin/io/github/deficuet/unitykt/classes/UnityObject.kt index f010305f..bf67758f 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/classes/UnityObject.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/classes/UnityObject.kt @@ -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 { diff --git a/src/main/kotlin/io/github/deficuet/unitykt/classes/VideoClip.kt b/src/main/kotlin/io/github/deficuet/unitykt/classes/VideoClip.kt index 297d16f0..c26403c4 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/classes/VideoClip.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/classes/VideoClip.kt @@ -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 diff --git a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/AnimationClipImpl.kt b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/AnimationClipImpl.kt index 08b848c2..cd41e3f8 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/AnimationClipImpl.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/AnimationClipImpl.kt @@ -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 diff --git a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/AnimationImpl.kt b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/AnimationImpl.kt index 58397624..895be1ac 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/AnimationImpl.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/AnimationImpl.kt @@ -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 diff --git a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/AnimatorControllerImpl.kt b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/AnimatorControllerImpl.kt index 16815cd0..661ae135 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/AnimatorControllerImpl.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/AnimatorControllerImpl.kt @@ -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 diff --git a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/AnimatorImpl.kt b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/AnimatorImpl.kt index 19b54b16..da7ff61d 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/AnimatorImpl.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/AnimatorImpl.kt @@ -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 diff --git a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/AnimatorOverrideControllerImpl.kt b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/AnimatorOverrideControllerImpl.kt index 2838a88e..e676eebb 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/AnimatorOverrideControllerImpl.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/AnimatorOverrideControllerImpl.kt @@ -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 diff --git a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/AssetBundleImpl.kt b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/AssetBundleImpl.kt index 221073a3..49632406 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/AssetBundleImpl.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/AssetBundleImpl.kt @@ -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 diff --git a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/CanvasImpl.kt b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/CanvasImpl.kt index b8fac09e..762bb285 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/CanvasImpl.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/CanvasImpl.kt @@ -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 diff --git a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/ComponentImpl.kt b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/ComponentImpl.kt index d88459aa..8b284c49 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/ComponentImpl.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/ComponentImpl.kt @@ -2,7 +2,7 @@ package io.github.deficuet.unitykt.internal.impl import io.github.deficuet.unitykt.classes.Component 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 diff --git a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/GameObjectImpl.kt b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/GameObjectImpl.kt index d59abeb5..d95a3fb7 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/GameObjectImpl.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/GameObjectImpl.kt @@ -3,6 +3,8 @@ 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.pptr.safeGetObj import io.github.deficuet.unitykt.util.compareTo import io.github.deficuet.unitykt.util.readArrayOf diff --git a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/MaterialImpl.kt b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/MaterialImpl.kt index ab177d8b..8c628cbb 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/MaterialImpl.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/MaterialImpl.kt @@ -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.compareTo import io.github.deficuet.unitykt.util.readArrayOf diff --git a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/MeshFilterImpl.kt b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/MeshFilterImpl.kt index 831fc27d..904a2998 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/MeshFilterImpl.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/MeshFilterImpl.kt @@ -2,7 +2,7 @@ package io.github.deficuet.unitykt.internal.impl import io.github.deficuet.unitykt.classes.Mesh import io.github.deficuet.unitykt.classes.MeshFilter -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 diff --git a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/MonoBehaviourImpl.kt b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/MonoBehaviourImpl.kt index 583bdcc5..d3c14049 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/MonoBehaviourImpl.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/MonoBehaviourImpl.kt @@ -2,7 +2,7 @@ package io.github.deficuet.unitykt.internal.impl import io.github.deficuet.unitykt.classes.MonoBehaviour 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 diff --git a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/MovieTextureImpl.kt b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/MovieTextureImpl.kt index acf13f19..2943e779 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/MovieTextureImpl.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/MovieTextureImpl.kt @@ -2,7 +2,7 @@ package io.github.deficuet.unitykt.internal.impl import io.github.deficuet.unitykt.classes.AudioClip import io.github.deficuet.unitykt.classes.MovieTexture -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 diff --git a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/PPtrImpl.kt b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/PPtrImpl.kt index 1874e79b..2c5ad175 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/PPtrImpl.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/PPtrImpl.kt @@ -2,7 +2,7 @@ package io.github.deficuet.unitykt.internal.impl import io.github.deficuet.unitykt.cast 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.file.FormatVersion import io.github.deficuet.unitykt.internal.file.SerializedFile diff --git a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/RendererImpl.kt b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/RendererImpl.kt index 3fc7a034..cbf48b6f 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/RendererImpl.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/RendererImpl.kt @@ -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.compareTo import io.github.deficuet.unitykt.util.readArrayOf diff --git a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/ResourceManagerImpl.kt b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/ResourceManagerImpl.kt index a703f38d..5e0d88fd 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/ResourceManagerImpl.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/ResourceManagerImpl.kt @@ -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.ResourceManager import io.github.deficuet.unitykt.classes.UnityObject import io.github.deficuet.unitykt.internal.file.ObjectInfo diff --git a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/SkinnedMeshRendererImpl.kt b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/SkinnedMeshRendererImpl.kt index 1ddd04be..04a57934 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/SkinnedMeshRendererImpl.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/SkinnedMeshRendererImpl.kt @@ -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.compareTo import io.github.deficuet.unitykt.util.readArrayOf diff --git a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/SpriteAtlasImpl.kt b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/SpriteAtlasImpl.kt index 386d7d93..ef838eac 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/SpriteAtlasImpl.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/SpriteAtlasImpl.kt @@ -5,6 +5,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.math.Vector2 +import io.github.deficuet.unitykt.pptr.safeGetObj import io.github.deficuet.unitykt.util.ObjectReader import io.github.deficuet.unitykt.util.compareTo import io.github.deficuet.unitykt.util.readArrayOf diff --git a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/SpriteImpl.kt b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/SpriteImpl.kt index bba745ef..524ec2e9 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/SpriteImpl.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/SpriteImpl.kt @@ -8,6 +8,8 @@ import io.github.deficuet.unitykt.math.Matrix4x4 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 io.github.deficuet.unitykt.pptr.safeGetObj import io.github.deficuet.unitykt.util.ObjectReader import io.github.deficuet.unitykt.util.compareTo import io.github.deficuet.unitykt.util.readArrayOf diff --git a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/TransformImpl.kt b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/TransformImpl.kt index c0f2068c..b7dde5a3 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/TransformImpl.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/TransformImpl.kt @@ -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 diff --git a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/UnityObjectImpl.kt b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/UnityObjectImpl.kt index 53191a72..31309d1f 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/UnityObjectImpl.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/UnityObjectImpl.kt @@ -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.enums.BuildTarget import io.github.deficuet.unitykt.internal.file.ObjectInfo diff --git a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/VideoClipImpl.kt b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/VideoClipImpl.kt index 453aef8a..16a5b41d 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/VideoClipImpl.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/internal/impl/VideoClipImpl.kt @@ -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.classes.VideoClip diff --git a/src/main/kotlin/io/github/deficuet/unitykt/classes/PPtr.kt b/src/main/kotlin/io/github/deficuet/unitykt/pptr/PPtr.kt similarity index 95% rename from src/main/kotlin/io/github/deficuet/unitykt/classes/PPtr.kt rename to src/main/kotlin/io/github/deficuet/unitykt/pptr/PPtr.kt index d8ccca4e..0f393f12 100644 --- a/src/main/kotlin/io/github/deficuet/unitykt/classes/PPtr.kt +++ b/src/main/kotlin/io/github/deficuet/unitykt/pptr/PPtr.kt @@ -1,6 +1,7 @@ -package io.github.deficuet.unitykt.classes +package io.github.deficuet.unitykt.pptr import io.github.deficuet.unitykt.cast +import io.github.deficuet.unitykt.classes.UnityObject import io.github.deficuet.unitykt.firstObjectOf import io.github.deficuet.unitykt.firstOfOrNull import io.github.deficuet.unitykt.internal.impl.PPtrImpl