| #!/usr/bin/python  | 
| # -*- coding: GBK -*-  | 
| #-------------------------------------------------------------------------------  | 
| #  | 
| ##@package Player.RemoteQuery.GY_Query_OpenFBEx  | 
| #  | 
| # @todo:¿ªÆô¸±±¾Ïß·  | 
| # @author hxp  | 
| # @date 2022-09-21  | 
| # @version 1.0  | 
| #  | 
| # ÏêϸÃèÊö: ¿ªÆô¸±±¾Ïß·  | 
| #  | 
| #-------------------------------------------------------------------------------  | 
| #"""Version = 2022-09-21 21:30"""  | 
| #-------------------------------------------------------------------------------  | 
|   | 
| import GameWorld  | 
| import IPY_GameWorld  | 
|   | 
| #Â߼ʵÏÖ  | 
| ## ÇëÇóÂß¼  | 
| #  @param query_Type ÇëÇóÀàÐÍ  | 
| #  @param query_ID ÇëÇóµÄÍæ¼ÒID  | 
| #  @param paramList ·¢°üÃüÁî  | 
| #  @param tick µ±Ç°Ê±¼ä  | 
| #  @return "True" or "False" or ""  | 
| #  @remarks º¯ÊýÏêϸ˵Ã÷.  | 
| def DoLogic(query_Type, query_ID, paramList, tick):  | 
|       | 
|     gameWorldManager = GameWorld.GetGameWorld()  | 
|     maxCopyCount = gameWorldManager.GetGameWorldCount()  | 
|     GameWorld.Log("GY_Query_OpenFBEx! maxCopyCount=%s, paramList=%s" % (maxCopyCount, paramList))  | 
|       | 
|     for copyMapID, propertyID in paramList:  | 
|         if copyMapID >= maxCopyCount:  | 
|             GameWorld.ErrLog("GY_Query_OpenFBEx ÐéÄâ·ÖÏß²»´æÔÚ! copyMapID=%s, propertyID=%s, maxCopyCount=%s"   | 
|                              % (copyMapID, propertyID, maxCopyCount))  | 
|             continue  | 
|           | 
|         tagGameWorld = IPY_GameWorld.IPY_GameWorld(copyMapID)  | 
|         if tagGameWorld.GetOpenState() != IPY_GameWorld.fbosClosed:  | 
|             GameWorld.ErrLog("GY_Query_OpenFBEx ÐéÄâ·ÖÏßÒѾÊÇ¿ªÆô״̬! copyMapID=%s, propertyID=%s, GetPropertyID=%s"   | 
|                              % (copyMapID, propertyID, tagGameWorld.GetPropertyID()))  | 
|             continue  | 
|           | 
|         if tagGameWorld.GetFBFirstOpen():  | 
|             GameWorld.ErrLog("GY_Query_OpenFBEx ÐéÄâ·ÖÏßÒѾÔÚ¿ªÆôÖÐ! copyMapID=%s, propertyID=%s, GetPropertyID=%s"   | 
|                              % (copyMapID, propertyID, tagGameWorld.GetPropertyID()))  | 
|             continue  | 
|           | 
|         GameWorld.Log("GY_Query_OpenFBEx copyMapID=%s, propertyID=%s" % (copyMapID, propertyID))  | 
|         tagGameWorld.SetFBFirstOpen(1) # ¿ªÆô¸±±¾  | 
|         tagGameWorld.SetPropertyID(propertyID)  | 
|           | 
|     return ''  | 
|   | 
|                   | 
| #---------------------------------------------------------------------  | 
| #Ö´Ðнá¹û  | 
| ## Ö´Ðнá¹û  | 
| #  @param curPlayer ·¢³öÇëÇóµÄÍæ¼Ò  | 
| #  @param callFunName ¹¦ÄÜÃû³Æ  | 
| #  @param funResult ²éѯµÄ½á¹û  | 
| #  @param tick µ±Ç°Ê±¼ä  | 
| #  @return None  | 
| #  @remarks º¯ÊýÏêϸ˵Ã÷.  | 
| def DoResult(curPlayer, callFunName, funResult, tick):  | 
|     return  | 
|   | 
|   |