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.

102 lines
3.2KB

  1. namespace TechbloxModdingAPI.Blocks
  2. {
  3. using RobocraftX.Common;
  4. using Svelto.ECS;
  5. public class WheelRig : SignalingBlock
  6. {
  7. /// <summary>
  8. /// Constructs a(n) WheelRig object representing an existing block.
  9. /// </summary>
  10. public WheelRig(EGID egid) :
  11. base(egid)
  12. {
  13. }
  14. /// <summary>
  15. /// Constructs a(n) WheelRig object representing an existing block.
  16. /// </summary>
  17. public WheelRig(uint id) :
  18. base(new EGID(id, CommonExclusiveGroups.WHEELRIG_BLOCK_BUILD_GROUP))
  19. {
  20. }
  21. /// <summary>
  22. /// Gets or sets the WheelRig's BrakingStrength property. Tweakable stat.
  23. /// </summary>
  24. public float BrakingStrength
  25. {
  26. get
  27. {
  28. return BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigTweakableStruct>(this).brakingStrength;
  29. }
  30. set
  31. {
  32. BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigTweakableStruct>(this).brakingStrength = value;
  33. }
  34. }
  35. /// <summary>
  36. /// Gets or sets the WheelRig's MaxVelocity property. May not be saved.
  37. /// </summary>
  38. public float MaxVelocity
  39. {
  40. get
  41. {
  42. return BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigReadOnlyStruct>(this).maxVelocity;
  43. }
  44. set
  45. {
  46. BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigReadOnlyStruct>(this).maxVelocity = value;
  47. }
  48. }
  49. /// <summary>
  50. /// Gets or sets the WheelRig's SteerAngle property. Tweakable stat.
  51. /// </summary>
  52. public float SteerAngle
  53. {
  54. get
  55. {
  56. return BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableTweakableStruct>(this).steerAngle;
  57. }
  58. set
  59. {
  60. BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableTweakableStruct>(this).steerAngle = value;
  61. }
  62. }
  63. /// <summary>
  64. /// Gets or sets the WheelRig's VelocityForMinAngle property. May not be saved.
  65. /// </summary>
  66. public float VelocityForMinAngle
  67. {
  68. get
  69. {
  70. return BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableReadOnlyStruct>(this).velocityForMinAngle;
  71. }
  72. set
  73. {
  74. BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableReadOnlyStruct>(this).velocityForMinAngle = value;
  75. }
  76. }
  77. /// <summary>
  78. /// Gets or sets the WheelRig's MinSteerAngleFactor property. May not be saved.
  79. /// </summary>
  80. public float MinSteerAngleFactor
  81. {
  82. get
  83. {
  84. return BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableReadOnlyStruct>(this).minSteerAngleFactor;
  85. }
  86. set
  87. {
  88. BlockEngine.GetBlockInfo<Techblox.WheelRigBlock.WheelRigSteerableReadOnlyStruct>(this).minSteerAngleFactor = value;
  89. }
  90. }
  91. }
  92. }