2021-03-13 02:09:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
2021-03-17 19:07:40 +00:00
|
|
|
#include "core/Core.hpp"
|
|
|
|
#include "servers/CNShardServer.hpp"
|
2021-03-15 14:48:27 +00:00
|
|
|
|
2021-03-16 22:29:13 +00:00
|
|
|
#include "Items.hpp"
|
2021-03-15 14:48:27 +00:00
|
|
|
#include "PlayerManager.hpp"
|
2021-03-13 02:09:36 +00:00
|
|
|
|
|
|
|
struct VendorListing {
|
2021-06-20 14:15:02 +00:00
|
|
|
int sort, type, id;
|
|
|
|
|
|
|
|
// when validating a listing, we don't really care about the sorting index
|
|
|
|
bool operator==(const VendorListing& other) const {
|
|
|
|
return type == other.type && id == other.id;
|
|
|
|
}
|
2021-03-13 02:09:36 +00:00
|
|
|
};
|
|
|
|
|
2021-04-16 17:28:59 +00:00
|
|
|
namespace Vendors {
|
2021-03-13 02:09:36 +00:00
|
|
|
extern std::map<int32_t, std::vector<VendorListing>> VendorTables;
|
2021-03-15 14:48:27 +00:00
|
|
|
|
|
|
|
void init();
|
|
|
|
}
|