초기커밋

This commit is contained in:
2025-05-01 07:20:41 +09:00
commit 98bb2e3c5c
2747 changed files with 646947 additions and 0 deletions

View File

@@ -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);
}
}
}