| 14 | |
| 15 | struct DataInit { |
| 16 | DataInit() { |
| 17 | for (int i = 0; i < 4; ++i) { |
| 18 | lcf::Data::actors.push_back({}); |
| 19 | lcf::Data::actors.back().ID = i + 1; |
| 20 | lcf::Data::actors.back().Setup(true); |
| 21 | } |
| 22 | lcf::rpg::SaveInventory inventory; |
| 23 | inventory.party.push_back(3); |
| 24 | |
| 25 | Main_Data::game_actors = std::make_unique<Game_Actors>(); |
| 26 | Main_Data::game_party = std::make_unique<Game_Party>(); |
| 27 | Main_Data::game_party->SetupFromSave(std::move(inventory)); |
| 28 | Main_Data::game_variables = std::make_unique<Game_Variables>(Game_Variables::min_2k3, Game_Variables::max_2k3); |
| 29 | Main_Data::game_variables->SetWarning(0); |
| 30 | } |
| 31 | ~DataInit() { |
| 32 | lcf::Data::actors.clear(); |
| 33 | Main_Data::game_party.reset(); |
nothing calls this directly
no test coverage detected