aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/pink/objects/sequences/sequencer.cpp13
-rw-r--r--engines/pink/objects/sequences/sequencer.h3
2 files changed, 15 insertions, 1 deletions
diff --git a/engines/pink/objects/sequences/sequencer.cpp b/engines/pink/objects/sequences/sequencer.cpp
index 37947d6e4b..8facfe32e9 100644
--- a/engines/pink/objects/sequences/sequencer.cpp
+++ b/engines/pink/objects/sequences/sequencer.cpp
@@ -127,4 +127,17 @@ SequenceActorState *Sequencer::findSequenceActorState(const Common::String &name
return nullptr;
}
+void Sequencer::loadState(Archive &archive) {
+ Sequence *sequence = findSequence(archive.readString());
+ authorSequence(sequence, 1);
+}
+
+void Sequencer::saveState(Archive &archive) {
+ Common::String sequenceName;
+ if (_context)
+ sequenceName = _context->_sequence->getName();
+ archive.writeString(sequenceName);
+ // add pokus specific
+}
+
} // End of namespace Pink
diff --git a/engines/pink/objects/sequences/sequencer.h b/engines/pink/objects/sequences/sequencer.h
index 5f4bebde9c..d34775aec4 100644
--- a/engines/pink/objects/sequences/sequencer.h
+++ b/engines/pink/objects/sequences/sequencer.h
@@ -54,7 +54,8 @@ public:
void restartSequence();
void skipToLastSubSequence();
-
+ void loadState(Archive &archive);
+ void saveState(Archive &archive);
public:
void updateTimers();