示例#1
0
        public WiredHandler(Room room)
        {
            this.actionStacks = new Hashtable();
            this.requestedTriggers = new Queue();
            this.requestingUpdates = new Queue();
            this.wireSlower = new WiredSolverInstance();

            this.room = room;
            this.conditionHandler = new ConditionHandler(room);
        }
示例#2
0
        public WiredHandler(Room room)
        {
            this.actionItems = new Hashtable();
            this.actionStacks = new Hashtable();
            this.requestedTriggers = new Queue();
            this.requestingUpdates = new Queue();
            this.wireSlower = new WiredSolverInstance();

            this.room = room;
            this.conditionHandler = new ConditionHandler(room);
            //form = new Form1();
            ////
            //Thread thread = new Thread(new ThreadStart(Init));
            //thread.Start();
        }
示例#3
0
 internal void Destroy()
 {
     if (actionStacks != null)
         actionStacks.Clear();
     requestedTriggers.Clear();
     requestingUpdates.Clear();
     if (wireSlower != null)
         wireSlower.Destroy();
     wireSlower = null;
     room = null;
 }
示例#4
0
 internal void Reset()
 {
     this.actionStacks.Clear();
     requestedTriggers.Clear();
     requestingUpdates.Clear();
     wireSlower = new WiredSolverInstance();
 }