namespace TechbloxModdingAPI.Blocks
{
using RobocraftX.Common;
using Svelto.ECS;
public class Engine : SignalingBlock
{
///
/// Constructs a(n) Engine object representing an existing block.
///
public Engine(EGID egid) :
base(egid)
{
}
///
/// Constructs a(n) Engine object representing an existing block.
///
public Engine(uint id) :
base(new EGID(id, CommonExclusiveGroups.ENGINE_BLOCK_BUILD_GROUP))
{
}
///
/// Gets or sets the Engine's On property. May not be saved.
///
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);
}
}
///
/// Gets or sets the Engine's CurrentGear property. May not be saved.
///
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);
}
}
///
/// Gets or sets the Engine's GearChangeCountdown property. May not be saved.
///
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);
}
}
///
/// Gets or sets the Engine's CurrentRpmAV property. May not be saved.
///
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);
}
}
///
/// Gets or sets the Engine's CurrentRpmLV property. May not be saved.
///
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);
}
}
///
/// Gets or sets the Engine's TargetRpmAV property. May not be saved.
///
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);
}
}
///
/// Gets or sets the Engine's TargetRpmLV property. May not be saved.
///
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);
}
}
///
/// Gets or sets the Engine's CurrentTorque property. May not be saved.
///
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);
}
}
///
/// Gets or sets the Engine's TotalWheelVelocityAV property. May not be saved.
///
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);
}
}
///
/// Gets or sets the Engine's TotalWheelVelocityLV property. May not be saved.
///
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);
}
}
///
/// Gets or sets the Engine's TotalWheelCount property. May not be saved.
///
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);
}
}
///
/// Gets or sets the Engine's LastGearUpInput property. May not be saved.
///
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);
}
}
///
/// Gets or sets the Engine's LastGearDownInput property. May not be saved.
///
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);
}
}
///
/// Gets or sets the Engine's ManualToAutoGearCoolOffCounter property. May not be saved.
///
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);
}
}
///
/// Gets or sets the Engine's Load property. May not be saved.
///
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);
}
}
///
/// Gets or sets the Engine's Power property. Tweakable stat.
///
public float Power
{
get
{
return BlockEngine.GetBlockInfo(this).power;
}
set
{
BlockEngine.GetBlockInfo(this).power = value;
}
}
///
/// Gets or sets the Engine's AutomaticGears property. Tweakable stat.
///
public bool AutomaticGears
{
get
{
return BlockEngine.GetBlockInfo(this).automaticGears;
}
set
{
BlockEngine.GetBlockInfo(this).automaticGears = value;
}
}
///
/// Gets or sets the Engine's GearChangeTime property. May not be saved.
///
public float GearChangeTime
{
get
{
return BlockEngine.GetBlockInfo(this).gearChangeTime;
}
set
{
BlockEngine.GetBlockInfo(this).gearChangeTime = value;
}
}
///
/// Gets or sets the Engine's MinRpm property. May not be saved.
///
public float MinRpm
{
get
{
return BlockEngine.GetBlockInfo(this).minRpm;
}
set
{
BlockEngine.GetBlockInfo(this).minRpm = value;
}
}
///
/// Gets or sets the Engine's MaxRpm property. May not be saved.
///
public float MaxRpm
{
get
{
return BlockEngine.GetBlockInfo(this).maxRpm;
}
set
{
BlockEngine.GetBlockInfo(this).maxRpm = value;
}
}
///
/// Gets the Engine's GearDownRpms property. May not be saved.
///
public float[] GearDownRpms
{
get
{
return BlockEngine.GetBlockInfo(this).gearDownRpms.ToManagedArray();
}
}
///
/// Gets or sets the Engine's GearUpRpm property. May not be saved.
///
public float GearUpRpm
{
get
{
return BlockEngine.GetBlockInfo(this).gearUpRpm;
}
set
{
BlockEngine.GetBlockInfo(this).gearUpRpm = value;
}
}
///
/// Gets or sets the Engine's MaxRpmChange property. May not be saved.
///
public float MaxRpmChange
{
get
{
return BlockEngine.GetBlockInfo(this).maxRpmChange;
}
set
{
BlockEngine.GetBlockInfo(this).maxRpmChange = value;
}
}
///
/// Gets or sets the Engine's ManualToAutoGearCoolOffTime property. May not be saved.
///
public float ManualToAutoGearCoolOffTime
{
get
{
return BlockEngine.GetBlockInfo(this).manualToAutoGearCoolOffTime;
}
set
{
BlockEngine.GetBlockInfo(this).manualToAutoGearCoolOffTime = value;
}
}
}
}