aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/timer_node.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/zvision/timer_node.cpp')
-rw-r--r--engines/zvision/timer_node.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/zvision/timer_node.cpp b/engines/zvision/timer_node.cpp
index c9ef9d29d1..81468dbb0b 100644
--- a/engines/zvision/timer_node.cpp
+++ b/engines/zvision/timer_node.cpp
@@ -22,6 +22,8 @@
#include "common/scummsys.h"
+#include "common/stream.h"
+
#include "zvision/timer_node.h"
#include "zvision/zvision.h"
#include "zvision/script_manager.h"
@@ -43,4 +45,13 @@ bool TimerNode::process(uint32 deltaTimeInMillis) {
return false;
}
+void TimerNode::serialize(Common::WriteStream *stream) {
+ stream->writeUint32LE(_key);
+ stream->writeUint32LE(_timeLeft);
+}
+
+void TimerNode::deserialize(Common::SeekableReadStream *stream) {
+ _timeLeft = stream->readUint32LE();
+}
+
} // End of namespace ZVision