diff --git a/libsavepy/GameTypes/Save.cpp b/libsavepy/GameTypes/Save.cpp index c7647399..d968661d 100644 --- a/libsavepy/GameTypes/Save.cpp +++ b/libsavepy/GameTypes/Save.cpp @@ -32,6 +32,18 @@ void init_GameTypes_Save(py::module_& m) { .def("parentReference", &s::SaveActor::parentReference) .def("childReferences", &s::SaveActor::childReferences); + py::class_(m, "PerLevelData") + .def(py::init<>()) + .def_readwrite("level_name", &s::SaveGame::PerLevelData::level_name) + .def_readwrite("save_objects", &s::SaveGame::PerLevelData::save_objects) + .def_readwrite("destroyed_actors_TOC", &s::SaveGame::PerLevelData::destroyed_actors_TOC) + .def_readwrite("destroyed_actors", &s::SaveGame::PerLevelData::destroyed_actors); + + py::class_(m, "PersistentAndRuntimeData") + .def(py::init<>()) + .def_readwrite("save_objects", &s::SaveGame::PersistentAndRuntimeData::save_objects) + .def_readwrite("destroyed_actors", &s::SaveGame::PersistentAndRuntimeData::destroyed_actors_TOC); + py::class_(m, "SaveGame") .def(py::init()) .def("save", &s::SaveGame::save)