|
|
@@ -30,11 +30,11 @@ namespace TechbloxModdingAPI.Blocks |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return ((bool)(BlockEngine.GetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "engineOn"))); |
|
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).engineOn; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
BlockEngine.SetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "engineOn", value); |
|
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).engineOn = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@@ -45,11 +45,11 @@ namespace TechbloxModdingAPI.Blocks |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return ((int)(BlockEngine.GetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "currentGear"))); |
|
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentGear; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
BlockEngine.SetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "currentGear", value); |
|
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentGear = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@@ -60,11 +60,11 @@ namespace TechbloxModdingAPI.Blocks |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return ((float)(BlockEngine.GetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "gearChangeCountdown"))); |
|
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).gearChangeCountdown; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
BlockEngine.SetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "gearChangeCountdown", value); |
|
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).gearChangeCountdown = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@@ -75,11 +75,11 @@ namespace TechbloxModdingAPI.Blocks |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return ((float)(BlockEngine.GetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "currentRpmAV"))); |
|
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentRpmAV; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
BlockEngine.SetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "currentRpmAV", value); |
|
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentRpmAV = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@@ -90,11 +90,11 @@ namespace TechbloxModdingAPI.Blocks |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return ((float)(BlockEngine.GetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "currentRpmLV"))); |
|
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentRpmLV; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
BlockEngine.SetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "currentRpmLV", value); |
|
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentRpmLV = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@@ -105,11 +105,11 @@ namespace TechbloxModdingAPI.Blocks |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return ((float)(BlockEngine.GetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "targetRpmAV"))); |
|
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).targetRpmAV; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
BlockEngine.SetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "targetRpmAV", value); |
|
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).targetRpmAV = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@@ -120,11 +120,11 @@ namespace TechbloxModdingAPI.Blocks |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return ((float)(BlockEngine.GetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "targetRpmLV"))); |
|
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).targetRpmLV; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
BlockEngine.SetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "targetRpmLV", value); |
|
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).targetRpmLV = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@@ -135,11 +135,11 @@ namespace TechbloxModdingAPI.Blocks |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return ((float)(BlockEngine.GetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "currentTorque"))); |
|
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentTorque; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
BlockEngine.SetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "currentTorque", value); |
|
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentTorque = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@@ -150,11 +150,11 @@ namespace TechbloxModdingAPI.Blocks |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return ((float)(BlockEngine.GetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "totalWheelVelocityAV"))); |
|
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).totalWheelVelocityAV; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
BlockEngine.SetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "totalWheelVelocityAV", value); |
|
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).totalWheelVelocityAV = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@@ -165,11 +165,11 @@ namespace TechbloxModdingAPI.Blocks |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return ((float)(BlockEngine.GetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "totalWheelVelocityLV"))); |
|
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).totalWheelVelocityLV; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
BlockEngine.SetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "totalWheelVelocityLV", value); |
|
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).totalWheelVelocityLV = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@@ -180,11 +180,11 @@ namespace TechbloxModdingAPI.Blocks |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return ((int)(BlockEngine.GetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "totalWheelCount"))); |
|
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).totalWheelCount; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
BlockEngine.SetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "totalWheelCount", value); |
|
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).totalWheelCount = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@@ -195,11 +195,11 @@ namespace TechbloxModdingAPI.Blocks |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return ((bool)(BlockEngine.GetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "lastGearUpInput"))); |
|
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).lastGearUpInput; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
BlockEngine.SetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "lastGearUpInput", value); |
|
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).lastGearUpInput = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@@ -210,11 +210,11 @@ namespace TechbloxModdingAPI.Blocks |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return ((bool)(BlockEngine.GetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "lastGearDownInput"))); |
|
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).lastGearDownInput; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
BlockEngine.SetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "lastGearDownInput", value); |
|
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).lastGearDownInput = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@@ -225,11 +225,11 @@ namespace TechbloxModdingAPI.Blocks |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return ((float)(BlockEngine.GetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "manualToAutoGearCoolOffCounter"))); |
|
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).manualToAutoGearCoolOffCounter; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
BlockEngine.SetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "manualToAutoGearCoolOffCounter", value); |
|
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).manualToAutoGearCoolOffCounter = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@@ -240,11 +240,11 @@ namespace TechbloxModdingAPI.Blocks |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return ((float)(BlockEngine.GetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "load"))); |
|
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).load; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
BlockEngine.SetBlockInfo(this, HarmonyLib.AccessTools.TypeByName("Techblox.EngineBlock.EngineBlockComponent"), "load", value); |
|
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).load = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|