A stable modding interface between Techblox and mods https://mod.exmods.org/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

137 lines
4.4KB

  1. using TechbloxModdingAPI.Tests;
  2. namespace TechbloxModdingAPI.Blocks
  3. {
  4. using RobocraftX.Common;
  5. using Svelto.ECS;
  6. public class WheelRig : SignalingBlock
  7. {
  8. /// <summary>
  9. /// Constructs a(n) WheelRig object representing an existing block.
  10. /// </summary>
  11. public WheelRig(EGID egid) :
  12. base(egid)
  13. {
  14. }
  15. /// <summary>
  16. /// Constructs a(n) WheelRig object representing an existing block.
  17. /// </summary>
  18. public WheelRig(uint id) :
  19. base(new EGID(id, CommonExclusiveGroups.WHEELRIG_BLOCK_BUILD_GROUP))
  20. {
  21. }
  22. /// <summary>
  23. /// Gets or sets the WheelRig's BrakingStrength property. Tweakable stat.
  24. /// </summary>
  25. public float BrakingStrength
  26. {
  27. get
  28. {
  29. return BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigTweakableStruct>(this).brakingStrength;
  30. }
  31. set
  32. {
  33. BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigTweakableStruct>(this).brakingStrength = value;
  34. }
  35. }
  36. /// <summary>
  37. /// Gets or sets the WheelRig's FlipDirection property. Tweakable stat.
  38. /// </summary>
  39. public bool FlipDirection
  40. {
  41. get
  42. {
  43. return BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigTweakableStruct>(this).flipDirection;
  44. }
  45. set
  46. {
  47. BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigTweakableStruct>(this).flipDirection = value;
  48. }
  49. }
  50. /// <summary>
  51. /// Gets or sets the WheelRig's MaxVelocity property. May not be saved.
  52. /// </summary>
  53. public float MaxVelocity
  54. {
  55. get
  56. {
  57. return BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigReadOnlyStruct>(this).maxVelocity;
  58. }
  59. set
  60. {
  61. BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigReadOnlyStruct>(this).maxVelocity = value;
  62. }
  63. }
  64. /// <summary>
  65. /// Gets or sets the WheelRig's SteerAngle property. Tweakable stat.
  66. /// </summary>
  67. [TestValue(0f)] // Can be 0 for no steer variant
  68. public float SteerAngle
  69. {
  70. get
  71. {
  72. return BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableTweakableStruct>(this).steerAngle;
  73. }
  74. set
  75. {
  76. BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableTweakableStruct>(this).steerAngle = value;
  77. }
  78. }
  79. /// <summary>
  80. /// Gets or sets the WheelRig's FlipSteering property. Tweakable stat.
  81. /// </summary>
  82. public bool FlipSteering
  83. {
  84. get
  85. {
  86. return BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableTweakableStruct>(this).flipSteering;
  87. }
  88. set
  89. {
  90. BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableTweakableStruct>(this).flipSteering = value;
  91. }
  92. }
  93. /// <summary>
  94. /// Gets or sets the WheelRig's VelocityForMinAngle property. May not be saved.
  95. /// </summary>
  96. [TestValue(0f)]
  97. public float VelocityForMinAngle
  98. {
  99. get
  100. {
  101. return BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableReadOnlyStruct>(this).velocityForMinAngle;
  102. }
  103. set
  104. {
  105. BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableReadOnlyStruct>(this).velocityForMinAngle = value;
  106. }
  107. }
  108. /// <summary>
  109. /// Gets or sets the WheelRig's MinSteerAngleFactor property. May not be saved.
  110. /// </summary>
  111. [TestValue(0f)]
  112. public float MinSteerAngleFactor
  113. {
  114. get
  115. {
  116. return BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableReadOnlyStruct>(this).minSteerAngleFactor;
  117. }
  118. set
  119. {
  120. BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableReadOnlyStruct>(this).minSteerAngleFactor = value;
  121. }
  122. }
  123. }
  124. }