示例#1
0
 public LandingGear()
     : base("LandingGear", "IMyLandingGear")
 {
     _lockAction       = new TerminalAction(this, TerminalAction.Lock);
     _unlockAction     = new TerminalAction(this, TerminalAction.Unlock);
     _toggleLockAction = new TerminalAction(this, TerminalAction.SwitchLock);
 }
示例#2
0
 public AbstractPiston()
     : base("Piston", "IMyPistonBase")
 {
     _resetVelocityAction    = new TerminalAction(this, TerminalAction.ResetVelocity);
     _increaseVelocityAction = new TerminalAction(this, TerminalAction.IncreaseVelocity);
     _decreaseVelocityAction = new TerminalAction(this, TerminalAction.DecreaseVelocity);
     _reverseAction          = new TerminalAction(this, TerminalAction.Reverse);
 }
示例#3
0
        protected EntityComponent(string name, string typename)
        {
            _name     = name;
            _typename = typename;

            _toggleAction = new TerminalAction(this, TerminalAction.OnOff);
            _onAction     = new TerminalAction(this, TerminalAction.OnOff_On);
            _offAction    = new TerminalAction(this, TerminalAction.OnOff_Off);
        }