| | |
| | | SyncTaofaInfo(curPlayer)
|
| | | return
|
| | |
|
| | | def OnFamilyMemberLeave(family, leavePlayerID, leavePlayer=None):
|
| | | def OnFamilyMemberLeave(family, leavePlayerID):
|
| | | ## 公会成员删除,针对公会的处理
|
| | | familyAction = DBDataMgr.GetFamilyActionMgr().GetFamilyAction(family.GetID(), ActionType)
|
| | | actionData = familyAction.GetActionDataByValue1(leavePlayerID, False)
|
| | | if not actionData:
|
| | | return
|
| | | memInfo = PlayerViewCache.GetPlayerBaseViewInfo(leavePlayerID, leavePlayer)
|
| | | memInfo = PlayerViewCache.GetPlayerBaseViewInfo(leavePlayerID)
|
| | | actionData.GetUserDict().update({"info":memInfo})
|
| | | PlayerFamily.SendFamilyAction([actionData])
|
| | | return
|
| | |
| | | SyncTaofaInfo(curPlayer)
|
| | | return
|
| | |
|
| | | def OnPlayerEnterFamily(curPlayer):
|
| | | def OnCrossPlayerEnterFamily(crossPlayer):
|
| | | ## 玩家进入新公会
|
| | | familyID = curPlayer.GetFamilyID()
|
| | | PlayerFamily.SendFamilyActionInfo(curPlayer, familyID, ActionType)
|
| | | familyID = crossPlayer.GetFamilyID()
|
| | | PlayerFamily.SendFamilyActionInfo(crossPlayer, familyID, ActionType)
|
| | | return
|
| | |
|
| | | #def RefreshFamilyBuZhenInfo(family):
|