public CycWorldModule(BotClient _parent) : base(_parent) { CycInterpreter newCycInterpreter = new CycInterpreter(); MushDLR223.ScriptEngines.ScriptManager.AddInterpreter(newCycInterpreter); newCycInterpreter.Self = _parent; client = _parent; bool startIt = false; lock (oneInstanceLock) if (CycModule == null) { CycModule = this; startIt = true; } else { DLRConsole.DebugWriteLine("\n\n\nStaring more than one CycModule?!"); } if (startIt) { InitInstance(); // InvokeGUI(InitInstance); } }
public CycWorldModule(BotClient _parent) : base(_parent) { CycInterpreter newCycInterpreter = new CycInterpreter(); MushDLR223.ScriptEngines.ScriptManager.AddInterpreter(newCycInterpreter); newCycInterpreter.Self = _parent; client = _parent; bool startIt = false; lock (oneInstanceLock) if (CycModule == null) { CycModule = this; startIt = true; } else { DLRConsole.DebugWriteLine("\n\n\nStaring more than one CycModule?!"); } if (startIt) InitInstance();// InvokeGUI(InitInstance); }