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.

107 lines
3.3KB

  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 MaxVelocity property. May not be saved.
  38. /// </summary>
  39. public float MaxVelocity
  40. {
  41. get
  42. {
  43. return BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigReadOnlyStruct>(this).maxVelocity;
  44. }
  45. set
  46. {
  47. BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigReadOnlyStruct>(this).maxVelocity = value;
  48. }
  49. }
  50. /// <summary>
  51. /// Gets or sets the WheelRig's SteerAngle property. Tweakable stat.
  52. /// </summary>
  53. [TestValue(0f)] // Can be 0 for no steer variant
  54. public float SteerAngle
  55. {
  56. get
  57. {
  58. return BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableTweakableStruct>(this).steerAngle;
  59. }
  60. set
  61. {
  62. BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableTweakableStruct>(this).steerAngle = value;
  63. }
  64. }
  65. /// <summary>
  66. /// Gets or sets the WheelRig's VelocityForMinAngle property. May not be saved.
  67. /// </summary>
  68. [TestValue(0f)]
  69. public float VelocityForMinAngle
  70. {
  71. get
  72. {
  73. return BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableReadOnlyStruct>(this).velocityForMinAngle;
  74. }
  75. set
  76. {
  77. BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableReadOnlyStruct>(this).velocityForMinAngle = value;
  78. }
  79. }
  80. /// <summary>
  81. /// Gets or sets the WheelRig's MinSteerAngleFactor property. May not be saved.
  82. /// </summary>
  83. [TestValue(0f)]
  84. public float MinSteerAngleFactor
  85. {
  86. get
  87. {
  88. return BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableReadOnlyStruct>(this).minSteerAngleFactor;
  89. }
  90. set
  91. {
  92. BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableReadOnlyStruct>(this).minSteerAngleFactor = value;
  93. }
  94. }
  95. }
  96. }