초기커밋
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user