def OnStartUp(self, config_file): # 移除json的钩子,因为 ujson不支持separators关键字,会在couchbase sdk中调用时报错 import script.common.initscript as init_script init_script.HOOK_MODULES.pop('json', None) import couchbase._bootstrap reload(couchbase._bootstrap) CAppBase.OnStartUp(self, config_file) self.init_thread_pool()
def OnStartUp(self, conf_file): # 移除json的钩子,因为ujson不支持separators关键字,会在couchbase sdk中调用时报错 import script.common.initscript as init_script init_script.HOOK_MODULES.pop('json', None) import couchbase._bootstrap reload(couchbase._bootstrap) CAppBase.OnStartUp(self, conf_file) self.InitThreadPool() # 初始化战斗常量配置数据 masters_global.init_battle_config_const_value()
def OnStartUp(self, conf_file): CAppBase.OnStartUp(self, conf_file) # 启动定时器并注册事件 self.RegTick(self._sec_tick, None, 1000) self._register_sec_tick_handler(self.battle_manager.battle_sec_timer) self.RegTick(self._battle_sync_tick, None, 200)
def OnStartUp(self, config_file): CAppBase.OnStartUp(self, config_file)
def OnStartUp(self, conf_file): CAppBase.OnStartUp(self, conf_file) # 启动回写定时器 self.RegTick(self._write_back_timer, None, 5000)
def OnStartUp(self, confFile): CAppBase.OnStartUp(self, confFile) self.start_net_client()
def OnStartUp(self, conf_file): CAppBase.OnStartUp(self, conf_file) # 启动在线人数日志定时器并注册事件 self.RegTick(self._timer_online_num_log, None, 300000)