Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
psiberx committed Aug 25, 2024
1 parent c3ebfc8 commit 3373ac0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/Entity/EntityID.reds
Original file line number Diff line number Diff line change
Expand Up @@ -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<EntityID>) -> Uint64
6 changes: 6 additions & 0 deletions scripts/World/WorldNodeSetupWrapper.reds
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
public native class WorldNodeSetupWrapper {
public native func GetNode() -> ref<worldNode>
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)
Expand Down
2 changes: 1 addition & 1 deletion src/App/Entity/EntityIDEx.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ struct EntityIDEx : Red::EntityID
return {aHash};
}

Red::EntityID ToHash()
uint64_t ToHash()
{
return this->hash;
}
Expand Down

0 comments on commit 3373ac0

Please sign in to comment.