示例#1
0
        public static bool Initialize(LogicEntry logic)
        {
            logicEntry = logic;

            if (logicEntry.Initialize() == false)
            {
                return(false);
            }

            return(true);
        }
示例#2
0
        public static bool DestroyLogic()
        {
            if (logicEntry == null)
            {
                return(false);
            }

            logicEntry.Dispose();
            logicEntry = null;

            return(true);
        }
示例#3
0
        public override bool CreateLogicSystem(LogicEntry logicEntry)
        {
            if (LogicHandler.Initialize(logicEntry) == false)
            {
                return(false);
            }

            IsLogicEnd = false;

            Task.Factory.StartNew(new Action(LogicThreadProcess));
            Task.Factory.StartNew(new Action(RPCThreadProcess));

            return(true);
        }
示例#4
0
 public static void SetLogic(LogicEntry logic)
 {
     logicEntry = logic;
 }
 public abstract bool CreateLogicSystem(LogicEntry logicEntry);