Kind of working save now, but does have problems with dead things.

This commit is contained in:
Zed A. Shaw 2024-11-06 15:06:10 -05:00
parent 99d56b246c
commit b2ed598c1f
5 changed files with 24 additions and 7 deletions

View file

@ -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);