|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383 |
- 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
- {
- Techblox.BlockColours.BlockColoursCompositionRoot
- 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;
- }
- }*/
- }
- }
|