2020-08-23 17:14:54 +00:00
|
|
|
#pragma once
|
2020-08-21 02:10:14 +00:00
|
|
|
|
|
|
|
#include "CNShardServer.hpp"
|
2020-08-28 16:25:03 +00:00
|
|
|
#include "Player.hpp"
|
2020-08-21 02:10:14 +00:00
|
|
|
|
|
|
|
namespace ItemManager {
|
2020-09-14 13:20:55 +00:00
|
|
|
enum class SlotType {
|
|
|
|
EQUIP = 0,
|
|
|
|
INVENTORY = 1,
|
|
|
|
BANK = 3
|
2020-09-09 20:42:55 +00:00
|
|
|
};
|
2020-09-14 13:53:48 +00:00
|
|
|
void init();
|
2020-08-28 16:25:03 +00:00
|
|
|
|
2020-09-14 13:53:48 +00:00
|
|
|
void itemMoveHandler(CNSocket* sock, CNPacketData* data);
|
|
|
|
void itemDeleteHandler(CNSocket* sock, CNPacketData* data);
|
2020-08-21 20:09:52 +00:00
|
|
|
void itemGMGiveHandler(CNSocket* sock, CNPacketData* data);
|
2020-09-09 20:42:55 +00:00
|
|
|
//Bank
|
|
|
|
void itemBankOpenHandler(CNSocket* sock, CNPacketData* data);
|
2020-08-26 17:40:10 +00:00
|
|
|
void itemTradeOfferHandler(CNSocket* sock, CNPacketData* data);
|
|
|
|
//void itemTradeOfferCancel(CNSocket* sock, CNPacketData* data);
|
|
|
|
void itemTradeOfferAcceptHandler(CNSocket* sock, CNPacketData* data);
|
|
|
|
void itemTradeOfferRefusalHandler(CNSocket* sock, CNPacketData* data);
|
|
|
|
void itemTradeConfirmHandler(CNSocket* sock, CNPacketData* data);
|
|
|
|
void itemTradeConfirmCancelHandler(CNSocket* sock, CNPacketData* data);
|
|
|
|
void itemTradeRegisterItemHandler(CNSocket* sock, CNPacketData* data);
|
|
|
|
void itemTradeUnregisterItemHandler(CNSocket* sock, CNPacketData* data);
|
|
|
|
void itemTradeRegisterCashHandler(CNSocket* sock, CNPacketData* data);
|
2020-08-27 02:35:13 +00:00
|
|
|
void itemTradeChatHandler(CNSocket* sock, CNPacketData* data);
|
2020-08-28 16:25:03 +00:00
|
|
|
void chestOpenHandler(CNSocket* sock, CNPacketData* data);
|
|
|
|
|
|
|
|
int findFreeSlot(Player *plr);
|
2020-08-21 02:10:14 +00:00
|
|
|
}
|