|
|
@@ -2,6 +2,7 @@ using RobocraftX.Physics; |
|
|
|
using Svelto.ECS; |
|
|
|
using Svelto.ECS.EntityStructs; |
|
|
|
using Techblox.FlyCam; |
|
|
|
using TechbloxModdingAPI.Blocks; |
|
|
|
using TechbloxModdingAPI.Players; |
|
|
|
using TechbloxModdingAPI.Utility; |
|
|
|
using Unity.Mathematics; |
|
|
@@ -111,6 +112,18 @@ namespace TechbloxModdingAPI |
|
|
|
set => Engine.GetComponent<RigidBodyEntityStruct>(this).angularVelocity = value; |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// The player's selected block ID in their hand. |
|
|
|
/// </summary> |
|
|
|
/// <value>The selected block.</value> |
|
|
|
public BlockIDs SelectedBlock => (BlockIDs)Engine.GetSelectedBlock(this); |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// The player's selected block color in their hand. |
|
|
|
/// </summary> |
|
|
|
/// <value>The selected block's color.</value> |
|
|
|
public BlockColor SelectedColor => new BlockColor(Engine.GetSelectedColor(this)); |
|
|
|
|
|
|
|
public static void Init() |
|
|
|
{ |
|
|
|
GameEngineManager.AddGameEngine(Engine); |
|
|
|