namespace TechbloxModdingAPI.Blocks { using RobocraftX.Common; using Svelto.ECS; public class Motor : SignalingBlock { /// /// Constructs a(n) Motor object representing an existing block. /// public Motor(EGID egid) : base(egid) { } /// /// Constructs a(n) Motor object representing an existing block. /// public Motor(uint id) : base(new EGID(id, CommonExclusiveGroups.MOTOR_BLOCK_GROUP)) { } /// /// Gets or sets the Motor's TopSpeed property. Tweakable stat. /// public float TopSpeed { get { return BlockEngine.GetBlockInfo(this).maxVelocity; } set { BlockEngine.GetBlockInfo(this).maxVelocity = value; } } /// /// Gets or sets the Motor's Torque property. Tweakable stat. /// public float Torque { get { return BlockEngine.GetBlockInfo(this).maxForce; } set { BlockEngine.GetBlockInfo(this).maxForce = value; } } /// /// Gets or sets the Motor's Reverse property. Tweakable stat. /// public bool Reverse { get { return BlockEngine.GetBlockInfo(this).reverse; } set { BlockEngine.GetBlockInfo(this).reverse = value; } } } }