コード例 #1
0
ファイル: kbengine.py プロジェクト: 321543223/kbengine
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", {} )
コード例 #2
0
ファイル: kbengine.py プロジェクト: cngamedes/kbengine
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", {} )
コード例 #3
0
ファイル: kbengine.py プロジェクト: yyow3193/kbengine
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", {})
コード例 #4
0
ファイル: kbengine.py プロジェクト: wolf0931/kbengine
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", {})
コード例 #5
0
def setup():
    KBEngine.addWatcher("players", "UINT32", countPlayers)
    KBEngine.addWatcher("rooms", "UINT32", countRooms)
コード例 #6
0
ファイル: Watcher.py プロジェクト: Anehta/kbengine
	def onBootStart(self, bootstrapIdx):
		"""
		virtual method.
		被引导时触发
		"""
		KBEngine.addWatcher("players", "UINT32", countPlayers)
コード例 #7
0
ファイル: Watcher.py プロジェクト: scrong1/job_root
def setup():
	KBEngine.addWatcher("players", "UINT32", countPlayers)
	pass