Load vendor tables

This commit is contained in:
Gent
2020-09-13 18:54:47 -04:00
parent 9cc5f3e4d5
commit f55cc8f36d
4 changed files with 43 additions and 46 deletions

View File

@@ -3,13 +3,20 @@
#include "CNShardServer.hpp"
#include "Player.hpp"
struct VendorListing {
int sort, type, iID, price;
};
namespace ItemManager {
enum class SlotType {
EQUIP = 0,
INVENTORY = 1,
BANK = 3
};
void init();
// hopefully this is fine since it's never modified after load
extern std::map<int32_t, std::vector<VendorListing>> VendorTables;
void init();
void itemMoveHandler(CNSocket* sock, CNPacketData* data);
void itemDeleteHandler(CNSocket* sock, CNPacketData* data);