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; }
protected virtual void initLuaRealm(LuaAppRealm lua) { }
private void createLuaRealm() { luaRealm = createLuaAppRealm(); luaRealm.timer = new LuaTimer(); luaRealm.open(); luaRealm.enablePrintLog(); luaRealm.createApp(_appType, _pathList, _bootList); initLuaRealm(luaRealm); }