| | |
| | | import NetPackCommon
|
| | | import ShareDefine
|
| | | import ChConfig
|
| | | import copy
|
| | | #---------------------------------------------------------------------
|
| | |
|
| | | def OnLogin(curPlayer):
|
| | |
| | | def SWRHFBOver(familyID):
|
| | | if familyID not in PyGameData.g_swrhJoinRecord:
|
| | | PyGameData.g_swrhJoinRecord.append(familyID)
|
| | | |
| | | |
| | | NotifySWRHFamily(familyID)
|
| | | return
|
| | |
|
| | | def NotifySWRHFamily(familyID):
|
| | | #֪ͨ
|
| | | family = GameWorld.GetFamilyManager().FindFamily(familyID)
|
| | | if not family:
|
| | |
| | |
|
| | |
|
| | | def OnSWRHStateChange(dictName, isOpen):
|
| | | |
| | | copyJoinRecord = copy.deepcopy(PyGameData.g_swrhJoinRecord)
|
| | | PyGameData.g_swrhJoinRecord = []
|
| | |
|
| | | |
| | | if isOpen:
|
| | | for familyID in copyJoinRecord:
|
| | | NotifySWRHFamily(familyID)
|
| | | |
| | | return
|
| | |
|
| | | #是否在守卫人皇活动中
|
| | | def IsInFamilySWRH():return GameWorld.GetGameWorld().GetDictByKey(ShareDefine.Def_Notify_WorldKey_FBFuncState % ChConfig.Def_FBMapID_FamilyInvade) |
| | | def IsInFamilySWRH():return GameWorld.GetGameWorld().GetDictByKey(ShareDefine.Def_Notify_WorldKey_FBFuncState % ChConfig.Def_FBMapID_FamilyInvade)
|
| | |
|