#!/usr/bin/python # -*- coding: GBK -*- #------------------------------------------------------------------------------- # ##@package GM.Commands.SetSkyTower # # @todo:ÌìÐÇËþ # @author hxp # @date 2023-09-27 # @version 1.0 # # ÏêϸÃèÊö: ÌìÐÇËþ # #------------------------------------------------------------------------------- #"""Version = 2023-09-27 03:00""" #------------------------------------------------------------------------------- import GameWorld import GameWorldSkyTower ## Âß¼­ÊµÏÖ ## GMÃüÁîÖ´ÐÐÈë¿Ú # @param curPlayer # @param cmdList ²ÎÊýÁбí # @return None def OnExec(curPlayer, cmdList): if not cmdList: return cmdType = cmdList[0] GameWorld.DebugLog("SetSkyTower %s" % cmdList) if cmdType == 2: floorID = cmdList[1] if len(cmdList) > 1 else 0 robotCount = cmdList[2] if len(cmdList) > 2 else 1 GameWorldSkyTower.GMAddRobotPassFloor(floorID, robotCount) elif cmdType == 4: GameWorldSkyTower.GMClearPassFloor() return