32 lines
953 B
C#
32 lines
953 B
C#
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<GlobalParty>();
|
|
ArgumentNullException.ThrowIfNull(global_party);
|
|
|
|
var party = global_party.getParty(notify.PartyGuid);
|
|
if (null == party) return;
|
|
|
|
var party_member_action = party.getEntityAction<GlobalPartyDetailMemberAction>();
|
|
ArgumentNullException.ThrowIfNull(party_member_action);
|
|
|
|
_ = await party_member_action.clearSummonMemberAsync(notify.MemberUserGuid, false);
|
|
}
|
|
} |