|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- using TechbloxModdingAPI.Tests;
-
- namespace TechbloxModdingAPI.Blocks
- {
- using RobocraftX.Common;
- using Svelto.ECS;
-
-
- public class WheelRig : SignalingBlock
- {
-
- /// <summary>
- /// Constructs a(n) WheelRig object representing an existing block.
- /// </summary>
- public WheelRig(EGID egid) :
- base(egid)
- {
- }
-
- /// <summary>
- /// Constructs a(n) WheelRig object representing an existing block.
- /// </summary>
- public WheelRig(uint id) :
- base(new EGID(id, CommonExclusiveGroups.WHEELRIG_BLOCK_BUILD_GROUP))
- {
- }
-
- /// <summary>
- /// Gets or sets the WheelRig's BrakingStrength property. Tweakable stat.
- /// </summary>
- public float BrakingStrength
- {
- get
- {
- return BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigTweakableStruct>(this).brakingStrength;
- }
- set
- {
- BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigTweakableStruct>(this).brakingStrength = value;
- }
- }
-
- /// <summary>
- /// Gets or sets the WheelRig's MaxVelocity property. May not be saved.
- /// </summary>
- public float MaxVelocity
- {
- get
- {
- return BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigReadOnlyStruct>(this).maxVelocity;
- }
- set
- {
- BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigReadOnlyStruct>(this).maxVelocity = value;
- }
- }
-
- /// <summary>
- /// Gets or sets the WheelRig's SteerAngle property. Tweakable stat.
- /// </summary>
- [TestValue(0f)] // Can be 0 for no steer variant
- public float SteerAngle
- {
- get
- {
- return BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableTweakableStruct>(this).steerAngle;
- }
- set
- {
- BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableTweakableStruct>(this).steerAngle = value;
- }
- }
-
- /// <summary>
- /// Gets or sets the WheelRig's VelocityForMinAngle property. May not be saved.
- /// </summary>
- [TestValue(0f)]
- public float VelocityForMinAngle
- {
- get
- {
- return BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableReadOnlyStruct>(this).velocityForMinAngle;
- }
- set
- {
- BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableReadOnlyStruct>(this).velocityForMinAngle = value;
- }
- }
-
- /// <summary>
- /// Gets or sets the WheelRig's MinSteerAngleFactor property. May not be saved.
- /// </summary>
- [TestValue(0f)]
- public float MinSteerAngleFactor
- {
- get
- {
- return BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableReadOnlyStruct>(this).minSteerAngleFactor;
- }
- set
- {
- BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableReadOnlyStruct>(this).minSteerAngleFactor = value;
- }
- }
- }
- }
|