// maybe we shoould make this class abstract to force people to implement virtual public void Dispose() { _instance = null; }
/// <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; }
virtual public void StartCommand(METAboltInstance inst) { _instance = inst; }
/// <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; }