초기커밋
This commit is contained in:
46
GameServer/Contents/ItemFunction/Helper/ItemNotifyHelper.cs
Normal file
46
GameServer/Contents/ItemFunction/Helper/ItemNotifyHelper.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user