Пример #1
0
 // maybe we shoould make this class abstract to force people to implement
 virtual public void Dispose()
 {
     _instance = null;
 }
Пример #2
0
 /// <summary>
 /// For simple creation of new commands
 /// </summary>
 /// <param name="inst"></param>
 /// <param name="exec"></param>
 public METAboltCommand(METAboltInstance inst, CommandExecuteDelegate exec)
 {
     _instance = inst;
     _execute  = exec;
 }
Пример #3
0
 virtual public void StartCommand(METAboltInstance inst)
 {
     _instance = inst;
 }
Пример #4
0
 /// <summary>
 /// for subclasses (they should override Execute)
 /// </summary>
 /// <param name="name"></param>
 /// <summary>
 /// For simple creation of new commands
 /// </summary>
 /// <param name="inst"></param>
 public METAboltCommand(METAboltInstance inst)
 {
     _instance = inst;
     _execute  = null;
 }