2021-03-13 02:09:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
2021-03-17 19:07:40 +00:00
|
|
|
#include "core/Core.hpp"
|
2021-03-15 14:48:27 +00:00
|
|
|
|
2022-07-16 23:19:40 +00:00
|
|
|
#include <vector>
|
|
|
|
#include <map>
|
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();
|
|
|
|
}
|