public virtual bool View( Person sender, EventArgs e, lit::Command c, string input) => View();
/** `Shut()` : **`bool`** * * Closes the door, the higher-level command. **/ public bool Shut( Person sender, EventArgs e, lit::Command c, string input) { ShutEvent?.Invoke(sender,e,c,input); if (dirTarget==dirInit) { lit::Terminal.Log( "<cmd>The</cmd> {Name} <cmd>is already closed.</cmd>"); return false; } return this.Shut(); }
public bool Kill( adv::Person sender, EventArgs e, lit::Command c, string input) => Kill();
/** `Open()` : **`Parse`** * * This is the callback for the `Open` command, which * calls all subscribers when `this` is `Open()`-ed. **/ public bool Open( Person sender, EventArgs e, lit::Command c, string input) { OpenEvent?.Invoke(sender,e,c,input); if (IsOpen) { lit::Terminal.Log( $"<cmd>The</cmd> {Name} <cmd>is already opened.</cmd>"); return false; } else if (IsLocked) return sender.Unlock(this); else return this.Open(); }