| #!/usr/bin/python  | 
| # -*- coding: GBK -*-  | 
| #-------------------------------------------------------------------------------  | 
| #  | 
| ##@package Player.RemoteQuery.GY_Query_OpenFB  | 
| #  | 
| # @todo:¿ªÆô¸±±¾Ïß·  | 
| # @author hxp  | 
| # @date 2019-04-11  | 
| # @version 1.0  | 
| #  | 
| # ÏêϸÃèÊö: ¿ªÆô¸±±¾Ïß·  | 
| #  | 
| #-------------------------------------------------------------------------------  | 
| #"""Version = 2019-04-11 14:30"""  | 
| #-------------------------------------------------------------------------------  | 
|   | 
| import GameWorld  | 
| import IPY_GameWorld  | 
| import PyGameData  | 
|   | 
|   | 
| #Â߼ʵÏÖ  | 
| ## ÇëÇóÂß¼  | 
| #  @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):  | 
|     copyMapID, propertyID, funcLineDataCache = paramList  | 
|       | 
|     gameWorldManager = GameWorld.GetGameWorld()  | 
|     maxCopyCount = gameWorldManager.GetGameWorldCount()  | 
|     if copyMapID >= maxCopyCount:  | 
|         GameWorld.ErrLog("GY_Query_OpenFB ÐéÄâ·ÖÏß²»´æÔÚ! copyMapID=%s, propertyID=%s, maxCopyCount=%s"   | 
|                          % (copyMapID, propertyID, maxCopyCount))  | 
|         return  | 
|       | 
|     tagGameWorld = IPY_GameWorld.IPY_GameWorld(copyMapID)  | 
|     if tagGameWorld.GetOpenState() != IPY_GameWorld.fbosClosed:  | 
|         GameWorld.ErrLog("GY_Query_OpenFB ÐéÄâ·ÖÏßÒѾÊÇ¿ªÆô״̬! copyMapID=%s, propertyID=%s,  GetPropertyID=%s"   | 
|                          % (copyMapID, propertyID, tagGameWorld.GetPropertyID()))  | 
|         return  | 
|       | 
|     if tagGameWorld.GetFBFirstOpen():  | 
|         GameWorld.ErrLog("GY_Query_OpenFB ÐéÄâ·ÖÏßÒѾÔÚ¿ªÆôÖÐ! copyMapID=%s, propertyID=%s,  GetPropertyID=%s"   | 
|                          % (copyMapID, propertyID, tagGameWorld.GetPropertyID()))  | 
|         return  | 
|       | 
|     GameWorld.Log("GY_Query_OpenFB copyMapID=%s, propertyID=%s" % (copyMapID, propertyID))  | 
|     tagGameWorld.SetFBFirstOpen(1) # ¿ªÆô¸±±¾  | 
|     tagGameWorld.SetPropertyID(propertyID)  | 
|     if funcLineDataCache:  | 
|         mapID = gameWorldManager.GetRealMapID()  | 
|         key = (mapID, copyMapID)  | 
|         PyGameData.g_crossFuncLineDataCache[key] = funcLineDataCache  | 
|     return ''  | 
|   | 
|                   | 
| #---------------------------------------------------------------------  | 
| #Ö´Ðнá¹û  | 
| ## Ö´Ðнá¹û  | 
| #  @param curPlayer ·¢³öÇëÇóµÄÍæ¼Ò  | 
| #  @param callFunName ¹¦ÄÜÃû³Æ  | 
| #  @param funResult ²éѯµÄ½á¹û  | 
| #  @param tick µ±Ç°Ê±¼ä  | 
| #  @return None  | 
| #  @remarks º¯ÊýÏêϸ˵Ã÷.  | 
| def DoResult(curPlayer, callFunName, funResult, tick):  | 
|     return  | 
|   | 
|   |