Kind of working save now, but does have problems with dead things.
This commit is contained in:
parent
99d56b246c
commit
b2ed598c1f
5 changed files with 24 additions and 7 deletions
3
save.hpp
3
save.hpp
|
@ -32,8 +32,9 @@ namespace save {
|
|||
std::map<DinkyECS::Entity, components::Position> position;
|
||||
std::map<DinkyECS::Entity, components::Motion> motion;
|
||||
std::map<DinkyECS::Entity, components::Combat> combat;
|
||||
std::map<DinkyECS::Entity, components::Tile> tile;
|
||||
|
||||
DEFINE_SERIALIZABLE(SaveData, facts, map, position, motion, combat);
|
||||
DEFINE_SERIALIZABLE(SaveData, facts, map, position, motion, combat, tile);
|
||||
};
|
||||
|
||||
void to_file(fs::path path, DinkyECS::World &world, Map &map);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue