Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
 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);
 }