diff options
Diffstat (limited to 'engines/composer/composer.h')
-rw-r--r-- | engines/composer/composer.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/engines/composer/composer.h b/engines/composer/composer.h index e9682424c5..5b44bf346a 100644 --- a/engines/composer/composer.h +++ b/engines/composer/composer.h @@ -150,11 +150,17 @@ struct OldScript { }; class ComposerEngine : public Engine { - template <typename T> - friend void sync(Common::Serializer &ser, T &data, Common::Serializer::Version minVersion, Common::Serializer::Version maxVersion); protected: Common::Error run(); + template <typename T> + void syncArray(Common::Serializer &ser, Common::Array<T> &data, Common::Serializer::Version minVersion = 0, Common::Serializer::Version maxVersion = Common::Serializer::kLastVersion); + template <typename T> + void syncList(Common::Serializer &ser, Common::List<T> &data, Common::Serializer::Version minVersion = 0, Common::Serializer::Version maxVersion = Common::Serializer::kLastVersion); + template <typename T> + void syncListReverse(Common::Serializer &ser, Common::List<T> &data, Common::Serializer::Version minVersion = 0, Common::Serializer::Version maxVersion = Common::Serializer::kLastVersion); + template <typename T> + void sync(Common::Serializer &ser, T &data, Common::Serializer::Version minVersion, Common::Serializer::Version maxVersion); bool canLoadGameStateCurrently() { return true; } Common::Error loadGameState(int slot); bool canSaveGameStateCurrently() { return true; } @@ -183,7 +189,7 @@ private: Audio::QueuingAudioStream *_audioStream; uint16 _currSoundPriority; - uint32 _currentTime, _lastTime; + uint32 _currentTime, _lastTime, _timeDelta; bool _needsUpdate; Common::Array<Common::Rect> _dirtyRects; |