Lighting is now in its own class using the new Pathing class. This should allow me to make it more consistent and possibly make Pathing more efficient.

This commit is contained in:
Zed A. Shaw 2024-12-01 17:54:43 -05:00
parent e05335b153
commit 3f7a9cc124
18 changed files with 209 additions and 257 deletions

View file

@ -17,6 +17,7 @@ inline void extract(DinkyECS::World &world, std::map<DinkyECS::Entity, CompT> &i
}
void save::to_file(fs::path path, DinkyECS::World &world, Map &map) {
/*
SaveData save_data;
tser::BinaryArchive archive;
@ -35,6 +36,7 @@ void save::to_file(fs::path path, DinkyECS::World &world, Map &map) {
std::ofstream out(path, std::ios::binary);
out << archive_view;
out.flush();
*/
}
template<typename CompT>
@ -71,8 +73,10 @@ void save::from_file(fs::path path, DinkyECS::World &world_out, Map &map_out) {
inject<Tile>(world_out, save_data.tile);
inject<Inventory>(world_out, save_data.inventory);
/*
map_out = Map(save_data.map.input_map,
save_data.map.walls, save_data.map.limit);
*/
save::load_configs(world_out);
}