예제 #1
0
 public void DeRegisterStateCommands(IConsoleCommandable cc)
 {
     foreach (string command in commandOwners[cc])
     {
         commands.Remove(command);
         helps.Remove(command);
     }
     commandOwners.Remove(cc);
 }
예제 #2
0
 public void RegisterStateCommands(IConsoleCommandable cc)
 {
     newCommandsState = cc;
     cc.RegisterCommands(this);
     newCommandsState = null;
 }
예제 #3
0
 public void DeRegisterStateCommands(IConsoleCommandable cc)
 {
     foreach (string command in commandOwners[cc])
     {
         commands.Remove(command);
         helps.Remove(command);
     }
     commandOwners.Remove(cc);
 }
예제 #4
0
 public void RegisterStateCommands(IConsoleCommandable cc)
 {
     newCommandsState = cc;
     cc.RegisterCommands(this);
     newCommandsState = null;
 }