초기커밋

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,40 @@
using Google.Protobuf;
using Google.Protobuf.WellKnownTypes;
using ServerCore;
using ServerBase;
using ServerCommon;
using ServerCommon.BusinessLogDomain;
using MetaAssets;
namespace GameServer;
public class NotifyPartyMemberLocationHandler
{
public async Task recvPartyMemberLocationHandler(ServerMessage.Types.PartyMemberLocationNoti notify)
{
var party = GameServerApp.getServerLogic().findGlobalEntity<GlobalParty>()?.getParty(notify.PartyGuid);
ArgumentNullException.ThrowIfNull(party);
// 1. party member 정보 reload
var party_member_action = party.getEntityAction<GlobalPartyDetailMemberAction>();
ArgumentNullException.ThrowIfNull(party_member_action);
var result = await party_member_action.loadPartyMember();
if (result.isFail()) return;
// 2. 해당 멤버 정보 변경 전달 ( to Client )
var member = party_member_action.getMember(notify.PartyMemberGuid);
if (null == member) return;
var client_message = new ClientToGame();
client_message.Message = new();
client_message.Message.PartyMemberLocationNoti = new();
client_message.Message.PartyMemberLocationNoti.MemberGuid = notify.PartyMemberGuid;
client_message.Message.PartyMemberLocationNoti.LocationInfo = member.LocationInfo;
PartyHelper.BroadcastToClients(party, client_message, new List<string>());
}
}