23 lines
539 B
C++
23 lines
539 B
C++
#pragma once
|
|
|
|
#include "df/building_type.h"
|
|
|
|
#include <tuple>
|
|
#include <string>
|
|
|
|
namespace DFHack {
|
|
class color_ostream;
|
|
}
|
|
|
|
// building type, subtype, custom
|
|
struct BuildingTypeKey : public std::tuple<df::building_type, int16_t, int32_t> {
|
|
BuildingTypeKey(df::building_type type, int16_t subtype, int32_t custom);
|
|
BuildingTypeKey(DFHack::color_ostream &out, const std::string & serialized);
|
|
|
|
std::string serialize() const;
|
|
};
|
|
|
|
struct BuildingTypeKeyHash {
|
|
std::size_t operator() (const BuildingTypeKey & key) const;
|
|
};
|