|
- namespace TechbloxModdingAPI.Blocks
- {
- using RobocraftX.Common;
- using Svelto.ECS;
-
-
- public class Engine : SignalingBlock
- {
-
- /// <summary>
- /// Constructs a(n) Engine object representing an existing block.
- /// </summary>
- public Engine(EGID egid) :
- base(egid)
- {
- }
-
- /// <summary>
- /// Constructs a(n) Engine object representing an existing block.
- /// </summary>
- public Engine(uint id) :
- base(new EGID(id, CommonExclusiveGroups.ENGINE_BLOCK_BUILD_GROUP))
- {
- }
-
- /// <summary>
- /// Gets or sets the Engine's On property. May not be saved.
- /// </summary>
- public bool On
- {
- get
- {
- return ((bool)(BlockEngine.GetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "engineOn")));
- }
- set
- {
- BlockEngine.SetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "engineOn", value);
- }
- }
-
- /// <summary>
- /// Gets or sets the Engine's CurrentGear property. May not be saved.
- /// </summary>
- public int CurrentGear
- {
- get
- {
- return ((int)(BlockEngine.GetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "currentGear")));
- }
- set
- {
- BlockEngine.SetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "currentGear", value);
- }
- }
-
- /// <summary>
- /// Gets or sets the Engine's GearChangeCountdown property. May not be saved.
- /// </summary>
- public float GearChangeCountdown
- {
- get
- {
- return ((float)(BlockEngine.GetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "gearChangeCountdown")));
- }
- set
- {
- BlockEngine.SetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "gearChangeCountdown", value);
- }
- }
-
- /// <summary>
- /// Gets or sets the Engine's CurrentRpmAV property. May not be saved.
- /// </summary>
- public float CurrentRpmAV
- {
- get
- {
- return ((float)(BlockEngine.GetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "currentRpmAV")));
- }
- set
- {
- BlockEngine.SetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "currentRpmAV", value);
- }
- }
-
- /// <summary>
- /// Gets or sets the Engine's CurrentRpmLV property. May not be saved.
- /// </summary>
- public float CurrentRpmLV
- {
- get
- {
- return ((float)(BlockEngine.GetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "currentRpmLV")));
- }
- set
- {
- BlockEngine.SetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "currentRpmLV", value);
- }
- }
-
- /// <summary>
- /// Gets or sets the Engine's TargetRpmAV property. May not be saved.
- /// </summary>
- public float TargetRpmAV
- {
- get
- {
- return ((float)(BlockEngine.GetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "targetRpmAV")));
- }
- set
- {
- BlockEngine.SetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "targetRpmAV", value);
- }
- }
-
- /// <summary>
- /// Gets or sets the Engine's TargetRpmLV property. May not be saved.
- /// </summary>
- public float TargetRpmLV
- {
- get
- {
- return ((float)(BlockEngine.GetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "targetRpmLV")));
- }
- set
- {
- BlockEngine.SetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "targetRpmLV", value);
- }
- }
-
- /// <summary>
- /// Gets or sets the Engine's CurrentTorque property. May not be saved.
- /// </summary>
- public float CurrentTorque
- {
- get
- {
- return ((float)(BlockEngine.GetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "currentTorque")));
- }
- set
- {
- BlockEngine.SetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "currentTorque", value);
- }
- }
-
- /// <summary>
- /// Gets or sets the Engine's TotalWheelVelocityAV property. May not be saved.
- /// </summary>
- public float TotalWheelVelocityAV
- {
- get
- {
- return ((float)(BlockEngine.GetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "totalWheelVelocityAV")));
- }
- set
- {
- BlockEngine.SetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "totalWheelVelocityAV", value);
- }
- }
-
- /// <summary>
- /// Gets or sets the Engine's TotalWheelVelocityLV property. May not be saved.
- /// </summary>
- public float TotalWheelVelocityLV
- {
- get
- {
- return ((float)(BlockEngine.GetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "totalWheelVelocityLV")));
- }
- set
- {
- BlockEngine.SetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "totalWheelVelocityLV", value);
- }
- }
-
- /// <summary>
- /// Gets or sets the Engine's TotalWheelCount property. May not be saved.
- /// </summary>
- public int TotalWheelCount
- {
- get
- {
- return ((int)(BlockEngine.GetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "totalWheelCount")));
- }
- set
- {
- BlockEngine.SetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "totalWheelCount", value);
- }
- }
-
- /// <summary>
- /// Gets or sets the Engine's LastGearUpInput property. May not be saved.
- /// </summary>
- public bool LastGearUpInput
- {
- get
- {
- return ((bool)(BlockEngine.GetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "lastGearUpInput")));
- }
- set
- {
- BlockEngine.SetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "lastGearUpInput", value);
- }
- }
-
- /// <summary>
- /// Gets or sets the Engine's LastGearDownInput property. May not be saved.
- /// </summary>
- public bool LastGearDownInput
- {
- get
- {
- return ((bool)(BlockEngine.GetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "lastGearDownInput")));
- }
- set
- {
- BlockEngine.SetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "lastGearDownInput", value);
- }
- }
-
- /// <summary>
- /// Gets or sets the Engine's ManualToAutoGearCoolOffCounter property. May not be saved.
- /// </summary>
- public float ManualToAutoGearCoolOffCounter
- {
- get
- {
- return ((float)(BlockEngine.GetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "manualToAutoGearCoolOffCounter")));
- }
- set
- {
- BlockEngine.SetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "manualToAutoGearCoolOffCounter", value);
- }
- }
-
- /// <summary>
- /// Gets or sets the Engine's Load property. May not be saved.
- /// </summary>
- public float Load
- {
- get
- {
- return ((float)(BlockEngine.GetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "load")));
- }
- set
- {
- BlockEngine.SetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "load", value);
- }
- }
-
- /// <summary>
- /// Gets or sets the Engine's Power property. Tweakable stat.
- /// </summary>
- public float Power
- {
- get
- {
- return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockTweakableComponent>(this).power;
- }
- set
- {
- BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockTweakableComponent>(this).power = value;
- }
- }
-
- /// <summary>
- /// Gets or sets the Engine's AutomaticGears property. Tweakable stat.
- /// </summary>
- public bool AutomaticGears
- {
- get
- {
- return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockTweakableComponent>(this).automaticGears;
- }
- set
- {
- BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockTweakableComponent>(this).automaticGears = value;
- }
- }
-
- /// <summary>
- /// Gets or sets the Engine's GearChangeTime property. May not be saved.
- /// </summary>
- public float GearChangeTime
- {
- get
- {
- return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockReadonlyComponent>(this).gearChangeTime;
- }
- set
- {
- BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockReadonlyComponent>(this).gearChangeTime = value;
- }
- }
-
- /// <summary>
- /// Gets or sets the Engine's MinRpm property. May not be saved.
- /// </summary>
- public float MinRpm
- {
- get
- {
- return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockReadonlyComponent>(this).minRpm;
- }
- set
- {
- BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockReadonlyComponent>(this).minRpm = value;
- }
- }
-
- /// <summary>
- /// Gets or sets the Engine's MaxRpm property. May not be saved.
- /// </summary>
- public float MaxRpm
- {
- get
- {
- return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockReadonlyComponent>(this).maxRpm;
- }
- set
- {
- BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockReadonlyComponent>(this).maxRpm = value;
- }
- }
-
- /// <summary>
- /// Gets the Engine's GearDownRpms property. May not be saved.
- /// </summary>
- public float[] GearDownRpms
- {
- get
- {
- return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockReadonlyComponent>(this).gearDownRpms.ToManagedArray<float>();
- }
- }
-
- /// <summary>
- /// Gets or sets the Engine's GearUpRpm property. May not be saved.
- /// </summary>
- public float GearUpRpm
- {
- get
- {
- return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockReadonlyComponent>(this).gearUpRpm;
- }
- set
- {
- BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockReadonlyComponent>(this).gearUpRpm = value;
- }
- }
-
- /// <summary>
- /// Gets or sets the Engine's MaxRpmChange property. May not be saved.
- /// </summary>
- public float MaxRpmChange
- {
- get
- {
- return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockReadonlyComponent>(this).maxRpmChange;
- }
- set
- {
- BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockReadonlyComponent>(this).maxRpmChange = value;
- }
- }
-
- /// <summary>
- /// Gets or sets the Engine's ManualToAutoGearCoolOffTime property. May not be saved.
- /// </summary>
- public float ManualToAutoGearCoolOffTime
- {
- get
- {
- return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockReadonlyComponent>(this).manualToAutoGearCoolOffTime;
- }
- set
- {
- BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockReadonlyComponent>(this).manualToAutoGearCoolOffTime = value;
- }
- }
- }
- }
|