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.

384 lines
12KB

  1. namespace TechbloxModdingAPI.Blocks
  2. {
  3. using RobocraftX.Common;
  4. using Svelto.ECS;
  5. public class Engine : SignalingBlock
  6. {
  7. /// <summary>
  8. /// Constructs a(n) Engine object representing an existing block.
  9. /// </summary>
  10. public Engine(EGID egid) :
  11. base(egid)
  12. {
  13. }
  14. /// <summary>
  15. /// Constructs a(n) Engine object representing an existing block.
  16. /// </summary>
  17. public Engine(uint id) :
  18. base(new EGID(id, CommonExclusiveGroups.ENGINE_BLOCK_BUILD_GROUP))
  19. {
  20. }
  21. /*
  22. /// <summary>
  23. /// Gets or sets the Engine's On property. May not be saved.
  24. /// </summary>
  25. public bool On
  26. {
  27. get
  28. {
  29. return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).engineOn;
  30. }
  31. set
  32. {
  33. Techblox.BlockColours.BlockColoursCompositionRoot
  34. BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).engineOn = value;
  35. }
  36. }
  37. /// <summary>
  38. /// Gets or sets the Engine's CurrentGear property. May not be saved.
  39. /// </summary>
  40. public int CurrentGear
  41. {
  42. get
  43. {
  44. return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentGear;
  45. }
  46. set
  47. {
  48. BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentGear = value;
  49. }
  50. }
  51. /// <summary>
  52. /// Gets or sets the Engine's GearChangeCountdown property. May not be saved.
  53. /// </summary>
  54. public float GearChangeCountdown
  55. {
  56. get
  57. {
  58. return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).gearChangeCountdown;
  59. }
  60. set
  61. {
  62. BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).gearChangeCountdown = value;
  63. }
  64. }
  65. /// <summary>
  66. /// Gets or sets the Engine's CurrentRpmAV property. May not be saved.
  67. /// </summary>
  68. public float CurrentRpmAV
  69. {
  70. get
  71. {
  72. return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentRpmAV;
  73. }
  74. set
  75. {
  76. BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentRpmAV = value;
  77. }
  78. }
  79. /// <summary>
  80. /// Gets or sets the Engine's CurrentRpmLV property. May not be saved.
  81. /// </summary>
  82. public float CurrentRpmLV
  83. {
  84. get
  85. {
  86. return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentRpmLV;
  87. }
  88. set
  89. {
  90. BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentRpmLV = value;
  91. }
  92. }
  93. /// <summary>
  94. /// Gets or sets the Engine's TargetRpmAV property. May not be saved.
  95. /// </summary>
  96. public float TargetRpmAV
  97. {
  98. get
  99. {
  100. return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).targetRpmAV;
  101. }
  102. set
  103. {
  104. BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).targetRpmAV = value;
  105. }
  106. }
  107. /// <summary>
  108. /// Gets or sets the Engine's TargetRpmLV property. May not be saved.
  109. /// </summary>
  110. public float TargetRpmLV
  111. {
  112. get
  113. {
  114. return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).targetRpmLV;
  115. }
  116. set
  117. {
  118. BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).targetRpmLV = value;
  119. }
  120. }
  121. /// <summary>
  122. /// Gets or sets the Engine's CurrentTorque property. May not be saved.
  123. /// </summary>
  124. public float CurrentTorque
  125. {
  126. get
  127. {
  128. return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentTorque;
  129. }
  130. set
  131. {
  132. BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentTorque = value;
  133. }
  134. }
  135. /// <summary>
  136. /// Gets or sets the Engine's TotalWheelVelocityAV property. May not be saved.
  137. /// </summary>
  138. public float TotalWheelVelocityAV
  139. {
  140. get
  141. {
  142. return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).totalWheelVelocityAV;
  143. }
  144. set
  145. {
  146. BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).totalWheelVelocityAV = value;
  147. }
  148. }
  149. /// <summary>
  150. /// Gets or sets the Engine's TotalWheelVelocityLV property. May not be saved.
  151. /// </summary>
  152. public float TotalWheelVelocityLV
  153. {
  154. get
  155. {
  156. return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).totalWheelVelocityLV;
  157. }
  158. set
  159. {
  160. BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).totalWheelVelocityLV = value;
  161. }
  162. }
  163. /// <summary>
  164. /// Gets or sets the Engine's TotalWheelCount property. May not be saved.
  165. /// </summary>
  166. public int TotalWheelCount
  167. {
  168. get
  169. {
  170. return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).totalWheelCount;
  171. }
  172. set
  173. {
  174. BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).totalWheelCount = value;
  175. }
  176. }
  177. /// <summary>
  178. /// Gets or sets the Engine's LastGearUpInput property. May not be saved.
  179. /// </summary>
  180. public bool LastGearUpInput
  181. {
  182. get
  183. {
  184. return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).lastGearUpInput;
  185. }
  186. set
  187. {
  188. BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).lastGearUpInput = value;
  189. }
  190. }
  191. /// <summary>
  192. /// Gets or sets the Engine's LastGearDownInput property. May not be saved.
  193. /// </summary>
  194. public bool LastGearDownInput
  195. {
  196. get
  197. {
  198. return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).lastGearDownInput;
  199. }
  200. set
  201. {
  202. BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).lastGearDownInput = value;
  203. }
  204. }
  205. /// <summary>
  206. /// Gets or sets the Engine's ManualToAutoGearCoolOffCounter property. May not be saved.
  207. /// </summary>
  208. public float ManualToAutoGearCoolOffCounter
  209. {
  210. get
  211. {
  212. return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).manualToAutoGearCoolOffCounter;
  213. }
  214. set
  215. {
  216. BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).manualToAutoGearCoolOffCounter = value;
  217. }
  218. }
  219. /// <summary>
  220. /// Gets or sets the Engine's Load property. May not be saved.
  221. /// </summary>
  222. public float Load
  223. {
  224. get
  225. {
  226. return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).load;
  227. }
  228. set
  229. {
  230. BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).load = value;
  231. }
  232. }
  233. /// <summary>
  234. /// Gets or sets the Engine's Power property. Tweakable stat.
  235. /// </summary>
  236. public float Power
  237. {
  238. get
  239. {
  240. return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockTweakableComponent>(this).power;
  241. }
  242. set
  243. {
  244. BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockTweakableComponent>(this).power = value;
  245. }
  246. }
  247. /// <summary>
  248. /// Gets or sets the Engine's AutomaticGears property. Tweakable stat.
  249. /// </summary>
  250. public bool AutomaticGears
  251. {
  252. get
  253. {
  254. return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockTweakableComponent>(this).automaticGears;
  255. }
  256. set
  257. {
  258. BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockTweakableComponent>(this).automaticGears = value;
  259. }
  260. }
  261. /// <summary>
  262. /// Gets or sets the Engine's GearChangeTime property. May not be saved.
  263. /// </summary>
  264. public float GearChangeTime
  265. {
  266. get
  267. {
  268. return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockReadonlyComponent>(this).gearChangeTime;
  269. }
  270. set
  271. {
  272. BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockReadonlyComponent>(this).gearChangeTime = value;
  273. }
  274. }
  275. /// <summary>
  276. /// Gets or sets the Engine's MinRpm property. May not be saved.
  277. /// </summary>
  278. public float MinRpm
  279. {
  280. get
  281. {
  282. return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockReadonlyComponent>(this).minRpm;
  283. }
  284. set
  285. {
  286. BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockReadonlyComponent>(this).minRpm = value;
  287. }
  288. }
  289. /// <summary>
  290. /// Gets or sets the Engine's MaxRpm property. May not be saved.
  291. /// </summary>
  292. public float MaxRpm
  293. {
  294. get
  295. {
  296. return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockReadonlyComponent>(this).maxRpm;
  297. }
  298. set
  299. {
  300. BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockReadonlyComponent>(this).maxRpm = value;
  301. }
  302. }
  303. /// <summary>
  304. /// Gets the Engine's GearDownRpms property. May not be saved.
  305. /// </summary>
  306. public float[] GearDownRpms
  307. {
  308. get
  309. {
  310. return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockReadonlyComponent>(this).gearDownRpms.ToManagedArray<float>();
  311. }
  312. }
  313. /// <summary>
  314. /// Gets or sets the Engine's GearUpRpm property. May not be saved.
  315. /// </summary>
  316. public float GearUpRpm
  317. {
  318. get
  319. {
  320. return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockReadonlyComponent>(this).gearUpRpm;
  321. }
  322. set
  323. {
  324. BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockReadonlyComponent>(this).gearUpRpm = value;
  325. }
  326. }
  327. /// <summary>
  328. /// Gets or sets the Engine's MaxRpmChange property. May not be saved.
  329. /// </summary>
  330. public float MaxRpmChange
  331. {
  332. get
  333. {
  334. return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockReadonlyComponent>(this).maxRpmChange;
  335. }
  336. set
  337. {
  338. BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockReadonlyComponent>(this).maxRpmChange = value;
  339. }
  340. }
  341. /// <summary>
  342. /// Gets or sets the Engine's ManualToAutoGearCoolOffTime property. May not be saved.
  343. /// </summary>
  344. public float ManualToAutoGearCoolOffTime
  345. {
  346. get
  347. {
  348. return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockReadonlyComponent>(this).manualToAutoGearCoolOffTime;
  349. }
  350. set
  351. {
  352. BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockReadonlyComponent>(this).manualToAutoGearCoolOffTime = value;
  353. }
  354. }*/
  355. }
  356. }