public LandingGear() : base("LandingGear", "IMyLandingGear") { _lockAction = new TerminalAction(this, TerminalAction.Lock); _unlockAction = new TerminalAction(this, TerminalAction.Unlock); _toggleLockAction = new TerminalAction(this, TerminalAction.SwitchLock); }
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); }
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); }