초기커밋
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
|
||||
namespace GameServer;
|
||||
|
||||
public class NotifyDeletePartyInviteSendHandler
|
||||
{
|
||||
public async Task recvDeletePartyInviteSend(ServerMessage.Types.GS2GS_NTF_DELETE_PARTY_INVITE_SEND notify)
|
||||
{
|
||||
var result = new Result();
|
||||
|
||||
// 1. party 체크
|
||||
var global_party = GameServerApp.getServerLogic().findGlobalEntity<GlobalParty>();
|
||||
ArgumentNullException.ThrowIfNull(global_party);
|
||||
|
||||
var party = global_party.getParty(notify.PartyGuid);
|
||||
ArgumentNullException.ThrowIfNull(party);
|
||||
|
||||
// 2. send list 삭제
|
||||
var party_send_action = party.getEntityAction<GlobalPartyInvitePartySendAction>();
|
||||
ArgumentNullException.ThrowIfNull(party_send_action);
|
||||
result = await party_send_action.deleteInvitePartySend(notify.InviteUserGuid);
|
||||
if (result.isFail())
|
||||
{
|
||||
Log.getLogger().error(result.toBasicString());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user