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:
parent
e05335b153
commit
3f7a9cc124
18 changed files with 209 additions and 257 deletions
4
save.cpp
4
save.cpp
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue