|
|
@@ -1,35 +1,212 @@ |
|
|
|
using RobocraftX.Common; |
|
|
|
using Svelto.ECS; |
|
|
|
using Techblox.EngineBlock; |
|
|
|
//------------------------------------------------------------------------------ |
|
|
|
// <auto-generated> |
|
|
|
// Ezt a kódot eszköz generálta. |
|
|
|
// Futásidejű verzió:4.0.30319.42000 |
|
|
|
// |
|
|
|
// Ennek a fájlnak a módosítása helytelen viselkedést eredményezhet, és elvész, ha |
|
|
|
// a kódot újragenerálják. |
|
|
|
// </auto-generated> |
|
|
|
//------------------------------------------------------------------------------ |
|
|
|
|
|
|
|
namespace TechbloxModdingAPI.Blocks |
|
|
|
{ |
|
|
|
public class Engine : SignalingBlock |
|
|
|
using RobocraftX.Common; |
|
|
|
using Svelto.ECS; |
|
|
|
|
|
|
|
|
|
|
|
public class Engine : Block |
|
|
|
{ |
|
|
|
public Engine(EGID id) : base(id) |
|
|
|
|
|
|
|
/// Engine constructor |
|
|
|
private Engine(EGID egid) : |
|
|
|
base(egid) |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
public Engine(uint id) : base(new EGID(id, CommonExclusiveGroups.ENGINE_BLOCK_BUILD_GROUP)) |
|
|
|
|
|
|
|
/// Engine constructor |
|
|
|
private Engine(uint id) : |
|
|
|
base(new EGID(id, CommonExclusiveGroups.ENGINE_BLOCK_BUILD_GROUP)) |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
public bool On |
|
|
|
|
|
|
|
private bool EngineOn |
|
|
|
{ |
|
|
|
get => BlockEngine.GetBlockInfo<EngineBlockComponent>(this).engineOn; |
|
|
|
set => BlockEngine.GetBlockInfo<EngineBlockComponent>(this).engineOn = value; |
|
|
|
get |
|
|
|
{ |
|
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).engineOn; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).engineOn = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public float CurrentTorque |
|
|
|
|
|
|
|
private int CurrentGear |
|
|
|
{ |
|
|
|
get => BlockEngine.GetBlockInfo<EngineBlockComponent>(this).currentTorque; |
|
|
|
set => BlockEngine.GetBlockInfo<EngineBlockComponent>(this).currentTorque = value; |
|
|
|
get |
|
|
|
{ |
|
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentGear; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentGear = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public int CurrentGear |
|
|
|
|
|
|
|
private float GearChangeCountdown |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).gearChangeCountdown; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).gearChangeCountdown = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private float CurrentRpmAV |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentRpmAV; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentRpmAV = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private float CurrentRpmLV |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentRpmLV; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentRpmLV = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private float TargetRpmAV |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).targetRpmAV; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).targetRpmAV = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private float TargetRpmLV |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).targetRpmLV; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).targetRpmLV = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private float CurrentTorque |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentTorque; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentTorque = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private float TotalWheelVelocityAV |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).totalWheelVelocityAV; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).totalWheelVelocityAV = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private float TotalWheelVelocityLV |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).totalWheelVelocityLV; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).totalWheelVelocityLV = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private int TotalWheelCount |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).totalWheelCount; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).totalWheelCount = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private bool LastGearUpInput |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).lastGearUpInput; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).lastGearUpInput = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private bool LastGearDownInput |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).lastGearDownInput; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).lastGearDownInput = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private float ManualToAutoGearCoolOffCounter |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).manualToAutoGearCoolOffCounter; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).manualToAutoGearCoolOffCounter = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private float Load |
|
|
|
{ |
|
|
|
get => BlockEngine.GetBlockInfo<EngineBlockComponent>(this).currentGear; |
|
|
|
set => BlockEngine.GetBlockInfo<EngineBlockComponent>(this).currentGear = value; |
|
|
|
get |
|
|
|
{ |
|
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).load; |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).load = value; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |