namespace TechbloxModdingAPI.Blocks { using RobocraftX.Common; using Svelto.ECS; public class Servo : SignalingBlock { /// /// Constructs a(n) Servo object representing an existing block. /// public Servo(EGID egid) : base(egid) { } /// /// Constructs a(n) Servo object representing an existing block. /// public Servo(uint id) : base(new EGID(id, CommonExclusiveGroups.SERVO_BLOCK_GROUP)) { } /// /// Gets or sets the Servo's MaximumForce property. Tweakable stat. /// public float MaximumForce { get { return BlockEngine.GetBlockInfo(this).servoVelocity; } set { BlockEngine.GetBlockInfo(this).servoVelocity = value; } } /// /// Gets or sets the Servo's MinimumAngle property. Tweakable stat. /// public float MinimumAngle { get { return BlockEngine.GetBlockInfo(this).minDeviation; } set { BlockEngine.GetBlockInfo(this).minDeviation = value; } } /// /// Gets or sets the Servo's MaximumAngle property. Tweakable stat. /// public float MaximumAngle { get { return BlockEngine.GetBlockInfo(this).maxDeviation; } set { BlockEngine.GetBlockInfo(this).maxDeviation = value; } } /// /// Gets or sets the Servo's Reverse property. Tweakable stat. /// public bool Reverse { get { return BlockEngine.GetBlockInfo(this).reverse; } set { BlockEngine.GetBlockInfo(this).reverse = value; } } /// /// Gets or sets the Servo's InputIsAngle property. Tweakable stat. /// public bool InputIsAngle { get { return BlockEngine.GetBlockInfo(this).hasProportionalInput; } set { BlockEngine.GetBlockInfo(this).hasProportionalInput = value; } } /// /// Gets or sets the Servo's DirectionVector property. May not be saved. /// public Unity.Mathematics.float3 DirectionVector { get { return BlockEngine.GetBlockInfo(this).directionVector; } set { BlockEngine.GetBlockInfo(this).directionVector = value; } } /// /// Gets or sets the Servo's RotationAxis property. May not be saved. /// public Unity.Mathematics.float3 RotationAxis { get { return BlockEngine.GetBlockInfo(this).rotationAxis; } set { BlockEngine.GetBlockInfo(this).rotationAxis = value; } } /// /// Gets or sets the Servo's ForceAxis property. May not be saved. /// public Unity.Mathematics.float3 ForceAxis { get { return BlockEngine.GetBlockInfo(this).forceAxis; } set { BlockEngine.GetBlockInfo(this).forceAxis = value; } } } }