Esempio n. 1
0
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", {} )
Esempio n. 2
0
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", {} )
Esempio n. 3
0
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", {})
Esempio n. 4
0
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", {})
Esempio n. 5
0
def setup():
    KBEngine.addWatcher("players", "UINT32", countPlayers)
    KBEngine.addWatcher("rooms", "UINT32", countRooms)
Esempio n. 6
0
	def onBootStart(self, bootstrapIdx):
		"""
		virtual method.
		被引导时触发
		"""
		KBEngine.addWatcher("players", "UINT32", countPlayers)
Esempio n. 7
0
def setup():
	KBEngine.addWatcher("players", "UINT32", countPlayers)
	pass