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.

138 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. [TestValue(false)]
  83. public bool FlipSteering
  84. {
  85. get
  86. {
  87. return BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableTweakableStruct>(this).flipSteering;
  88. }
  89. set
  90. {
  91. BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableTweakableStruct>(this).flipSteering = value;
  92. }
  93. }
  94. /// <summary>
  95. /// Gets or sets the WheelRig's VelocityForMinAngle property. May not be saved.
  96. /// </summary>
  97. [TestValue(0f)]
  98. public float VelocityForMinAngle
  99. {
  100. get
  101. {
  102. return BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableReadOnlyStruct>(this).velocityForMinAngle;
  103. }
  104. set
  105. {
  106. BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableReadOnlyStruct>(this).velocityForMinAngle = value;
  107. }
  108. }
  109. /// <summary>
  110. /// Gets or sets the WheelRig's MinSteerAngleFactor property. May not be saved.
  111. /// </summary>
  112. [TestValue(0f)]
  113. public float MinSteerAngleFactor
  114. {
  115. get
  116. {
  117. return BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableReadOnlyStruct>(this).minSteerAngleFactor;
  118. }
  119. set
  120. {
  121. BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableReadOnlyStruct>(this).minSteerAngleFactor = value;
  122. }
  123. }
  124. }
  125. }