7#include <unordered_map>
32 std::unordered_map<std::string, PointabilityType>
nodes;
33 std::unordered_map<std::string, PointabilityType>
node_groups;
36 std::unordered_map<std::string, PointabilityType>
objects;
42 std::optional<PointabilityType>
matchNode(
const std::string &name,
44 std::optional<PointabilityType>
matchObject(
const std::string &name,
59 const std::unordered_map<std::string, PointabilityType> &pointable_groups);
61 const std::unordered_map<std::string, PointabilityType> &map);
63 std::unordered_map<std::string, PointabilityType> &map);
std::unordered_map< std::string, int > ItemGroupList
Definition itemgroup.h:10
PointabilityType
Definition pointabilities.h:13
Definition pointabilities.h:30
std::unordered_map< std::string, PointabilityType > objects
Definition pointabilities.h:36
std::optional< PointabilityType > matchObject(const std::string &name, const ItemGroupList &groups) const
Definition pointabilities.cpp:52
static void serializePointabilityType(std::ostream &os, PointabilityType pointable_type)
Definition pointabilities.cpp:27
std::unordered_map< std::string, PointabilityType > nodes
Definition pointabilities.h:32
static void serializeTypeMap(std::ostream &os, const std::unordered_map< std::string, PointabilityType > &map)
Definition pointabilities.cpp:91
static std::string toStringPointabilityType(PointabilityType pointable_type)
Definition pointabilities.cpp:32
static void deSerializeTypeMap(std::istream &is, std::unordered_map< std::string, PointabilityType > &map)
Definition pointabilities.cpp:101
void serialize(std::ostream &os) const
Definition pointabilities.cpp:113
std::optional< PointabilityType > matchNode(const std::string &name, const ItemGroupList &groups) const
Definition pointabilities.cpp:45
void deSerialize(std::istream &is)
Definition pointabilities.cpp:122
std::optional< PointabilityType > matchPlayer(const ItemGroupList &groups) const
Definition pointabilities.cpp:59
static PointabilityType deSerializePointabilityType(std::istream &is)
Definition pointabilities.cpp:11
std::unordered_map< std::string, PointabilityType > object_groups
Definition pointabilities.h:37
std::unordered_map< std::string, PointabilityType > node_groups
Definition pointabilities.h:33
static std::optional< PointabilityType > matchGroups(const ItemGroupList &groups, const std::unordered_map< std::string, PointabilityType > &pointable_groups)
Definition pointabilities.cpp:64