#!/usr/bin/python
|
# -*- coding: GBK -*-
|
#-------------------------------------------------------------------------------
|
#
|
##@package GM.Commands.ExitFB
|
#
|
# @todo:Í˳ö¸±±¾
|
# @author hxp
|
# @date 2017-10-25
|
# @version 1.0
|
#
|
# ÏêϸÃèÊö: Í˳ö¸±±¾
|
#
|
#-------------------------------------------------------------------------------
|
#"""Version = 2017-10-25 18:00"""
|
#-------------------------------------------------------------------------------
|
|
import GameWorld
|
import ChPlayer
|
import PlayerControl
|
import PlayerFB
|
|
## GMÃüÁîÖ´ÐÐÈë¿Ú
|
# @param curPlayer µ±Ç°Íæ¼Ò
|
# @param paramList ²ÎÊýÁбí []
|
# @return None
|
# @remarks º¯ÊýÏêϸ˵Ã÷.
|
def OnExec(curPlayer, paramList):
|
tick = GameWorld.GetGameWorld().GetTick()
|
|
if PlayerControl.GetCustomMapID(curPlayer):
|
PlayerFB.DoExitCustomScene(curPlayer)
|
return
|
|
isAll = paramList[0] if paramList else 0
|
if isAll:
|
copyMapPlayerManager = GameWorld.GetMapCopyPlayerManager()
|
for i in xrange(copyMapPlayerManager.GetPlayerCount()):
|
player = copyMapPlayerManager.GetPlayerByIndex(i)
|
if player == None or player.IsEmpty():
|
continue
|
ChPlayer.__Func_ExitFB(player, tick)
|
return
|
ChPlayer.__Func_ExitFB(curPlayer, tick)
|
return
|
|