Files
2025-05-01 07:23:28 +09:00

33 lines
1.1 KiB
C#

using ServerCore; using ServerBase;
using BEACON_GUID = System.String;
namespace GameServer
{
public static class BeaconShopNotifyHelper
{
public static bool send_S2C_NTF_BEACON_SHOP_REFRESH(this Player player, BEACON_GUID beaconGuid, BoolType hasBeaconShopItem)
{
var noti_packet = makeAckBeaconShopRefreshPacket(beaconGuid, hasBeaconShopItem);
if (false == GameServerApp.getServerLogic().onSendPacket(player, noti_packet))
{
return false;
}
return true;
}
public static ClientToGame makeAckBeaconShopRefreshPacket(BEACON_GUID beaconGuid, BoolType hasBeaconShopItem)
{
var noti_packet = new ClientToGame();
noti_packet.Message = new();
noti_packet.Message.NtfBeaconShopRefresh = new();
noti_packet.Message.NtfBeaconShopRefresh.BeaconGuid = beaconGuid;
noti_packet.Message.NtfBeaconShopRefresh.HasBeaconShopItem = hasBeaconShopItem;
return noti_packet;
}
}
}