47 lines
1011 B
C#
47 lines
1011 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using Google.Protobuf.WellKnownTypes;
|
|
|
|
|
|
using ServerCore; using ServerBase;
|
|
using ServerCommon;
|
|
|
|
|
|
using static ClientToGameMessage.Types;
|
|
|
|
|
|
using ITEM_GUID = System.String;
|
|
|
|
|
|
|
|
namespace GameServer
|
|
{
|
|
|
|
public static class ItemNotifyHelper
|
|
{
|
|
public static bool send_S2C_NTF_ITEM_DELETE(Player player, ITEM_GUID deletedItemGuid, ushort deletedCount)
|
|
{
|
|
var ntf_packet = new ClientToGame();
|
|
ntf_packet.Message = new ClientToGameMessage();
|
|
|
|
var ntf_msg = new GS2C_NTF_ITEM_DELETE();
|
|
ntf_packet.Message.NtfItemDelete = ntf_msg;
|
|
|
|
ntf_msg.DeletedItemGuid = deletedItemGuid;
|
|
ntf_msg.DeletedCount = deletedCount;
|
|
|
|
if (false == GameServerApp.getServerLogic().onSendPacket(player, ntf_packet))
|
|
{
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
}
|
|
}
|