You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using RobocraftX.Common;
- using Svelto.ECS;
- using Techblox.EngineBlock;
-
- namespace TechbloxModdingAPI.Blocks
- {
- public class Engine : SignalingBlock
- {
- public Engine(EGID id) : base(id)
- {
- }
-
- public Engine(uint id) : base(new EGID(id, CommonExclusiveGroups.ENGINE_BLOCK_BUILD_GROUP))
- {
- }
-
- public bool On
- {
- get => BlockEngine.GetBlockInfo<EngineBlockComponent>(this).engineOn;
- set => BlockEngine.GetBlockInfo<EngineBlockComponent>(this).engineOn = value;
- }
-
- public int TorqueDirection
- {
- get => BlockEngine.GetBlockInfo<EngineBlockComponent>(this).torqueDirection;
- set => BlockEngine.GetBlockInfo<EngineBlockComponent>(this).torqueDirection = value;
- }
-
- public int CurrentGear
- {
- get => BlockEngine.GetBlockInfo<EngineBlockComponent>(this).currentGear;
- set => BlockEngine.GetBlockInfo<EngineBlockComponent>(this).currentGear = value;
- }
- }
- }
|