コード例 #1
0
 public bool crreateTimer(LuaAppRealm app, int timerId, int delayTime, int fixTime)
 {
     Timer timer = new Timer();
     timer.Interval = delayTime;
     timer.Tick += timer_Tick;
     Info info = new Info();
     info.app = app;
     info.timerId = timerId;
     info.fixTime = fixTime;
     timer.Tag = info;
     timer.Start();
     return true;
 }
コード例 #2
0
 protected virtual void initLuaRealm(LuaAppRealm lua)
 {
 }
コード例 #3
0
        private void createLuaRealm()        
        {
            luaRealm = createLuaAppRealm();
            luaRealm.timer = new LuaTimer();

            luaRealm.open();
            luaRealm.enablePrintLog();

            luaRealm.createApp(_appType, _pathList, _bootList);

            initLuaRealm(luaRealm);
        }