From 3373ac076bf9a1a6403c97141dfecb3f47ae4a41 Mon Sep 17 00:00:00 2001 From: psiberx Date: Sun, 25 Aug 2024 19:18:17 +0300 Subject: [PATCH] Fix imports --- scripts/Entity/EntityID.reds | 2 +- scripts/World/WorldNodeSetupWrapper.reds | 6 ++++++ src/App/Entity/EntityIDEx.hpp | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/Entity/EntityID.reds b/scripts/Entity/EntityID.reds index e75aaa79..919d1e87 100644 --- a/scripts/Entity/EntityID.reds +++ b/scripts/Entity/EntityID.reds @@ -2,4 +2,4 @@ public static native func FromHash(hash: Uint64) -> EntityID @addMethod(EntityID) -public static native func ToHash(id: EntityID) -> Uint64 +public static native func ToHash(id: script_ref) -> Uint64 diff --git a/scripts/World/WorldNodeSetupWrapper.reds b/scripts/World/WorldNodeSetupWrapper.reds index 8e217e0e..a6e4be25 100644 --- a/scripts/World/WorldNodeSetupWrapper.reds +++ b/scripts/World/WorldNodeSetupWrapper.reds @@ -1,13 +1,19 @@ public native class WorldNodeSetupWrapper { public native func GetNode() -> ref public native func GetTransform() -> Transform + public native func GetPosition() -> Vector4 + public native func GetOrientation() -> Quaternion public native func GetScale() -> Vector3 + public native func GetNodeRef() -> NodeRef public native func GetGlobalNodeID() -> GlobalNodeID public native func GetProxyNodeID() -> GlobalNodeID public native func GetStreamingDistance() -> Float public native func SetTransform(value: Transform) + public native func SetPosition(value: Vector4) + public native func SetOrientation(value: Quaternion) public native func SetScale(value: Vector3) + public native func SetNodeRef(value: NodeRef) public native func SetGlobalNodeID(value: GlobalNodeID) public native func SetProxyNodeID(value: GlobalNodeID) public native func SetStreamingDistance(value: Float) diff --git a/src/App/Entity/EntityIDEx.hpp b/src/App/Entity/EntityIDEx.hpp index ee32cd19..bb75dc1c 100644 --- a/src/App/Entity/EntityIDEx.hpp +++ b/src/App/Entity/EntityIDEx.hpp @@ -9,7 +9,7 @@ struct EntityIDEx : Red::EntityID return {aHash}; } - Red::EntityID ToHash() + uint64_t ToHash() { return this->hash; }