382 lines
12 KiB
C#
382 lines
12 KiB
C#
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 BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).engineOn;
|
|
}
|
|
set
|
|
{
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).engineOn = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Engine's CurrentGear property. May not be saved.
|
|
/// </summary>
|
|
public int CurrentGear
|
|
{
|
|
get
|
|
{
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentGear;
|
|
}
|
|
set
|
|
{
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentGear = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Engine's GearChangeCountdown property. May not be saved.
|
|
/// </summary>
|
|
public float GearChangeCountdown
|
|
{
|
|
get
|
|
{
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).gearChangeCountdown;
|
|
}
|
|
set
|
|
{
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).gearChangeCountdown = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Engine's CurrentRpmAV property. May not be saved.
|
|
/// </summary>
|
|
public float CurrentRpmAV
|
|
{
|
|
get
|
|
{
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentRpmAV;
|
|
}
|
|
set
|
|
{
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentRpmAV = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Engine's CurrentRpmLV property. May not be saved.
|
|
/// </summary>
|
|
public float CurrentRpmLV
|
|
{
|
|
get
|
|
{
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentRpmLV;
|
|
}
|
|
set
|
|
{
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentRpmLV = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Engine's TargetRpmAV property. May not be saved.
|
|
/// </summary>
|
|
public float TargetRpmAV
|
|
{
|
|
get
|
|
{
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).targetRpmAV;
|
|
}
|
|
set
|
|
{
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).targetRpmAV = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Engine's TargetRpmLV property. May not be saved.
|
|
/// </summary>
|
|
public float TargetRpmLV
|
|
{
|
|
get
|
|
{
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).targetRpmLV;
|
|
}
|
|
set
|
|
{
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).targetRpmLV = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Engine's CurrentTorque property. May not be saved.
|
|
/// </summary>
|
|
public float CurrentTorque
|
|
{
|
|
get
|
|
{
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentTorque;
|
|
}
|
|
set
|
|
{
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).currentTorque = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Engine's TotalWheelVelocityAV property. May not be saved.
|
|
/// </summary>
|
|
public float TotalWheelVelocityAV
|
|
{
|
|
get
|
|
{
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).totalWheelVelocityAV;
|
|
}
|
|
set
|
|
{
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).totalWheelVelocityAV = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Engine's TotalWheelVelocityLV property. May not be saved.
|
|
/// </summary>
|
|
public float TotalWheelVelocityLV
|
|
{
|
|
get
|
|
{
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).totalWheelVelocityLV;
|
|
}
|
|
set
|
|
{
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).totalWheelVelocityLV = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Engine's TotalWheelCount property. May not be saved.
|
|
/// </summary>
|
|
public int TotalWheelCount
|
|
{
|
|
get
|
|
{
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).totalWheelCount;
|
|
}
|
|
set
|
|
{
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).totalWheelCount = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Engine's LastGearUpInput property. May not be saved.
|
|
/// </summary>
|
|
public bool LastGearUpInput
|
|
{
|
|
get
|
|
{
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).lastGearUpInput;
|
|
}
|
|
set
|
|
{
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).lastGearUpInput = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Engine's LastGearDownInput property. May not be saved.
|
|
/// </summary>
|
|
public bool LastGearDownInput
|
|
{
|
|
get
|
|
{
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).lastGearDownInput;
|
|
}
|
|
set
|
|
{
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).lastGearDownInput = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Engine's ManualToAutoGearCoolOffCounter property. May not be saved.
|
|
/// </summary>
|
|
public float ManualToAutoGearCoolOffCounter
|
|
{
|
|
get
|
|
{
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).manualToAutoGearCoolOffCounter;
|
|
}
|
|
set
|
|
{
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).manualToAutoGearCoolOffCounter = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Engine's Load property. May not be saved.
|
|
/// </summary>
|
|
public float Load
|
|
{
|
|
get
|
|
{
|
|
return BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).load;
|
|
}
|
|
set
|
|
{
|
|
BlockEngine.GetBlockInfo<Techblox.EngineBlock.EngineBlockComponent>(this).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;
|
|
}
|
|
}
|
|
}
|
|
}
|