} // method: Str

        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        protected override DotLispInterpreterBase MakeInterp(object self)
        {
            var v = new CycInterpreter();

            v.Intern("*SELF*", self);
            return(v);
        } // method: newInterpreter
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);
 }
Esempio n. 3
0
        } // method: Str


        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        protected override DotLispInterpreterBase MakeInterp(object self)
        {
            var v = new CycInterpreter();
            v.Intern("*SELF*", self);
            return v;
        } // method: newInterpreter