diff options
author | Bendegúz Nagy | 2016-07-19 18:04:14 +0200 |
---|---|---|
committer | Bendegúz Nagy | 2016-08-26 23:02:22 +0200 |
commit | 11704d0c509c1fc5af73c22bd64be60572ff4b8c (patch) | |
tree | adc925a33b19b7feb6509eb8c882a7a33ffb3aa7 /engines/dm/timeline.cpp | |
parent | bd9fa3eb87a08dd7ba6387ac7c2d911a040cd9c4 (diff) | |
download | scummvm-rg350-11704d0c509c1fc5af73c22bd64be60572ff4b8c.tar.gz scummvm-rg350-11704d0c509c1fc5af73c22bd64be60572ff4b8c.tar.bz2 scummvm-rg350-11704d0c509c1fc5af73c22bd64be60572ff4b8c.zip |
DM: Add savegame functions
Diffstat (limited to 'engines/dm/timeline.cpp')
-rw-r--r-- | engines/dm/timeline.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/engines/dm/timeline.cpp b/engines/dm/timeline.cpp index 3858ad512e..afeb577eeb 100644 --- a/engines/dm/timeline.cpp +++ b/engines/dm/timeline.cpp @@ -1087,4 +1087,23 @@ T0255002: _vm->_championMan->f283_viAltarRebirth(event->_priority); } } + +void Timeline::save3_eventsPart(Common::OutSaveFile* file) { + for (uint16 i = 0; i < _g369_eventMaxCount; ++i) { + TimelineEvent *event = &_g370_events[i]; + file->writeSint32BE(event->_mapTime); + file->writeByte(event->_type); + file->writeByte(event->_priority); + file->writeByte(event->_B._location._mapX); // writing bytes of the union I think should preserve the union's identity + file->writeByte(event->_B._location._mapY); + file->writeUint16BE(event->_C.A._cell); // writing bytes of the union I think should preserve the union's identity + file->writeUint16BE(event->_C.A._effect); + } +} + +void Timeline::save4_timelinePart(Common::OutSaveFile* file) { + for (uint16 i = 0; i < _g369_eventMaxCount; ++i) + file->writeUint16BE(_g371_timeline[i]); +} + } |