|
|
|
@ -16,7 +16,7 @@ public partial class GameModule |
|
|
|
{ |
|
|
|
if (string.IsNullOrEmpty(modelName)) |
|
|
|
{ |
|
|
|
uq.GameState.GetEntity(entityNum)?.ClearModel(); |
|
|
|
uq.GameState.GetEntity(entityNum).ClearModel(); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
@ -41,7 +41,7 @@ public partial class GameModule |
|
|
|
if (modelName.EndsWith(".spr")) |
|
|
|
{ |
|
|
|
// TODO: sprite
|
|
|
|
uq.GameState.GetEntity(entityNum)?.ClearModel(); |
|
|
|
uq.GameState.GetEntity(entityNum).ClearModel(); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
@ -50,7 +50,7 @@ public partial class GameModule |
|
|
|
|
|
|
|
private void SetEntityTransform(int entityNum, QVec3 origin, QVec3 angles) |
|
|
|
{ |
|
|
|
uq.GameState.GetEntity(entityNum)?.SetTransform(origin.ToUnityPosition(), angles.ToUnityRotation()); |
|
|
|
uq.GameState.GetEntity(entityNum).SetTransform(origin.ToUnityPosition(), angles.ToUnityRotation()); |
|
|
|
} |
|
|
|
|
|
|
|
private void RemoveEntity(int entityNum) |
|
|
|
@ -60,11 +60,11 @@ public partial class GameModule |
|
|
|
|
|
|
|
private void UpdateEntityAnimation(int entityNum, int pose1, int pose2, float blend) |
|
|
|
{ |
|
|
|
uq.GameState.GetEntity(entityNum)?.UpdateAnimation(pose1, pose2, blend); |
|
|
|
uq.GameState.GetEntity(entityNum).UpdateAnimation(pose1, pose2, blend); |
|
|
|
} |
|
|
|
|
|
|
|
private void SetEntitySkin(int entityNum, int skinNum) |
|
|
|
{ |
|
|
|
uq.GameState.GetEntity(entityNum)?.SetSkin(skinNum); |
|
|
|
uq.GameState.GetEntity(entityNum).SetSkin(skinNum); |
|
|
|
} |
|
|
|
} |