public void DeRegisterStateCommands(IConsoleCommandable cc) { foreach (string command in commandOwners[cc]) { commands.Remove(command); helps.Remove(command); } commandOwners.Remove(cc); }
public void RegisterStateCommands(IConsoleCommandable cc) { newCommandsState = cc; cc.RegisterCommands(this); newCommandsState = null; }