초기커밋

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,35 @@
using ServerCommon;
using ServerCore; using ServerBase;
using static ClientToGameMessage.Types;
namespace GameServer
{
internal static class OwnedLandNotifyHelper
{
public static bool send_S2C_NTF_OWNED_LAND_INFOS(this Player player)
{
var owned_land_agent_action = player.getEntityAction<OwnedLandAgentAction>();
NullReferenceCheckHelper.throwIfNull(owned_land_agent_action, () => $"owned_land_agent_action is null !!! - {player.toBasicString()}");
var ntf_packet = new ClientToGame();
ntf_packet.Message = new ClientToGameMessage();
ntf_packet.Message.NtfOwnedLandInfos = new GS2C_NTF_OWNED_LAND_INFOS();
var owned_lands = owned_land_agent_action.getOwnedLands();
foreach (var owned_land in owned_lands)
{
var owned_land_attribute = owned_land.getEntityAttribute<OwnedLandAttribute>();
NullReferenceCheckHelper.throwIfNull(owned_land_attribute, () => $"owned_land_attribute is null !!! - {player.toBasicString()}");
ntf_packet.Message.NtfOwnedLandInfos.OwnedLandInfos.Add((int)owned_land_attribute.LandMetaId);
}
if (false == GameServerApp.getServerLogic().onSendPacket(player, ntf_packet))
{
return false;
}
return true;
}
}
}