초기커밋
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
namespace GameServer;
|
||||
|
||||
public class NotifyChangePartyServerHandler
|
||||
{
|
||||
public async Task recvChangePartyServer(ServerMessage.Types.ChangePartyServerNameNoti notify)
|
||||
{
|
||||
var global_party = GameServerApp.getServerLogic().findGlobalEntity<GlobalParty>();
|
||||
ArgumentNullException.ThrowIfNull(global_party);
|
||||
|
||||
var party = global_party.getParty(notify.PartyGuid);
|
||||
ArgumentNullException.ThrowIfNull(party);
|
||||
|
||||
var server_action = party.getEntityAction<GlobalPartyDetailServerAction>();
|
||||
ArgumentNullException.ThrowIfNull(server_action);
|
||||
|
||||
if (notify.IsAddition == BoolType.True)
|
||||
{
|
||||
await server_action.addPartyServer(notify.ServerName);
|
||||
}
|
||||
else
|
||||
{
|
||||
await server_action.deletePartyServer(notify.ServerName);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user