aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects/module.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/pink/objects/module.cpp')
-rw-r--r--engines/pink/objects/module.cpp19
1 files changed, 13 insertions, 6 deletions
diff --git a/engines/pink/objects/module.cpp b/engines/pink/objects/module.cpp
index 3d33c1625f..505b8fba11 100644
--- a/engines/pink/objects/module.cpp
+++ b/engines/pink/objects/module.cpp
@@ -25,20 +25,27 @@
namespace Pink {
+ModuleProxy::ModuleProxy(const Common::String &name)
+ : NamedObject(name)
+{}
-void Module::deserialize(Archive &archive){
+ModuleProxy::ModuleProxy() {}
+
+Module::Module(PinkEngine *game, const Common::String &name)
+ : NamedObject(name), _game(game), _page(nullptr)
+{}
+
+void Module::load(Archive &archive){
archive.mapObject(this);
NamedObject::deserialize(archive);
- archive.readString(); // skip directory
- //_invMgr.load(archive);
- // intro has 0 items so we will skip
- archive.readCount();
+ archive.readString(); // skip directory
+ _invMgr.deserialize(archive);
archive >> _pages;
}
-void Module::initPage(bool isLoadingSave, const Common::String *pageName) {
+void Module::init(bool isLoadingSave, const Common::String *pageName) {
// debugging original
// 0 0 - new game
// 0 1 - module changed