static MyHandDrill() { m_sounds = new MyDrillBase.Sounds() { IdleLoop = new MySoundPair("ToolPlayDrillIdle"), MetalLoop = new MySoundPair("ToolPlayDrillMetal"), RockLoop = new MySoundPair("ToolPlayDrillRock") }; }
static MyShipDrill() { var useConvSystem = new MyTerminalControlOnOffSwitch<MyShipDrill>("UseConveyor", MySpaceTexts.Terminal_UseConveyorSystem); useConvSystem.Getter = (x) => (x as IMyInventoryOwner).UseConveyorSystem; useConvSystem.Setter = (x, v) => MySyncConveyors.SendChangeUseConveyorSystemRequest(x.EntityId, v); useConvSystem.EnableToggleAction(); MyTerminalControlFactory.AddControl(useConvSystem); m_sounds = new MyDrillBase.Sounds() { IdleLoop = new MySoundPair("ToolShipDrillIdle"), MetalLoop = new MySoundPair("ToolShipDrillMetal"), RockLoop = new MySoundPair("ToolShipDrillRock"), }; }