aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/hotspots.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mads/hotspots.cpp')
-rw-r--r--engines/mads/hotspots.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/engines/mads/hotspots.cpp b/engines/mads/hotspots.cpp
index 02617e92c7..560726bda6 100644
--- a/engines/mads/hotspots.cpp
+++ b/engines/mads/hotspots.cpp
@@ -34,6 +34,10 @@ DynamicHotspot::DynamicHotspot() {
_cursor = CURSOR_NONE;
}
+void DynamicHotspot::synchronize(Common::Serializer &s) {
+
+}
+
/*------------------------------------------------------------------------*/
DynamicHotspots::DynamicHotspots(MADSEngine *vm) : _vm(vm) {
@@ -142,6 +146,20 @@ void DynamicHotspots::refresh() {
}
}
+void DynamicHotspots::synchronize(Common::Serializer &s) {
+ int count = _entries.size();
+ s.syncAsSint16LE(count);
+
+ if (s.isSaving()) {
+ for (int i = 0; i < count; ++i)
+ _entries[i].synchronize(s);
+ } else {
+ DynamicHotspot rec;
+ rec.synchronize(s);
+ _entries.push_back(rec);
+ }
+}
+
/*------------------------------------------------------------------------*/
Hotspot::Hotspot() {