def onBaseAppReady(bootstrapIdx): """ KBEngine method. baseapp已经准备好了 @param bootstrapIdx: 当前baseapp的启动顺序 @type bootstrapIdx: INT32 """ INFO_MSG('onBaseAppReady: bootstrapIdx=%s' % bootstrapIdx) KBEngine.addWatcher("players", "UINT32", countPlayers) if bootstrapIdx == 1: # 创建spacemanager KBEngine.createBaseLocally( "Spaces", {} )
def onBaseAppReady(bootstrapIdx): """ KBEngine method. baseapp已经准备好了 @param isBootstrap: 是否是第一个baseapp启动 @type isBootstrap: bool """ INFO_MSG('onBaseAppReady: bootstrapIdx=%s' % bootstrapIdx) KBEngine.addWatcher("scripts/countPlayers", "UINT32", countPlayers) if bootstrapIdx == 1: # 创建spacemanager KBEngine.createBaseLocally( "Spaces", {} )
def onBaseAppReady(bootstrapIdx): """ KBEngine method. baseapp已经准备好了 @param isBootstrap: 是否是第一个baseapp启动 @type isBootstrap: bool """ INFO_MSG('onBaseAppReady: bootstrapIdx=%s' % bootstrapIdx) KBEngine.addWatcher("scripts/countPlayers", "UINT32", countPlayers) if bootstrapIdx == 1: # 创建spacemanager KBEngine.createBaseLocally("Spaces", {})
def onBaseAppReady(bootstrapIdx): """ KBEngine method. baseapp已经准备好了 @param bootstrapIdx: 当前baseapp的启动顺序 @type bootstrapIdx: INT32 """ INFO_MSG('onBaseAppReady: bootstrapIdx=%s' % bootstrapIdx) KBEngine.addWatcher("players", "UINT32", countPlayers) if bootstrapIdx == 1: # 创建spacemanager KBEngine.createBaseLocally("Spaces", {})
def setup(): KBEngine.addWatcher("players", "UINT32", countPlayers) KBEngine.addWatcher("rooms", "UINT32", countRooms)
def onBootStart(self, bootstrapIdx): """ virtual method. 被引导时触发 """ KBEngine.addWatcher("players", "UINT32", countPlayers)
def setup(): KBEngine.addWatcher("players", "UINT32", countPlayers) pass