using Google.Protobuf; using Google.Protobuf.WellKnownTypes; using ServerCore; using ServerBase; using ServerCommon; using ServerCommon.BusinessLogDomain; using MetaAssets; namespace GameServer; public class NotifyClearPartySummonHandler { public async Task recvClearPartySummon(ServerMessage.Types.GS2GS_NTF_CLEAR_PARTY_SUMMON notify) { var server_logic = GameServerApp.getServerLogic(); ArgumentNullException.ThrowIfNull(server_logic); var global_party = server_logic.findGlobalEntity(); ArgumentNullException.ThrowIfNull(global_party); var party = global_party.getParty(notify.PartyGuid); if (null == party) return; var party_member_action = party.getEntityAction(); ArgumentNullException.ThrowIfNull(party_member_action); _ = await party_member_action.clearSummonMemberAsync(notify.MemberUserGuid, false); } }