Esempio n. 1
0
        public static LogicRuntimeMachine NewLogicRuntimeMachine(string fileName)
        {
            LogicObjectContainer container = LogicObjectDataController.GetDataFromFile(fileName);
            int id = GetId;
            LogicRuntimeMachine lom = new LogicRuntimeMachine(id, container);

            logicMachineDic.Add(id, lom);
            return(lom);
        }
 public LogicRuntimeMachine(int id, LogicObjectContainer data)
 {
     this.id   = id;
     this.data = data;
     for (int i = 0; i < data.internalValueList.Count; i++)
     {
         BaseValue bv = data.internalValueList[i];
         inValueEventDic.Add(bv.name, null);
     }
 }