diff options
author | Matthew Stewart | 2018-06-05 04:18:14 -0400 |
---|---|---|
committer | Eugene Sandulenko | 2018-08-09 08:37:30 +0200 |
commit | 84a30e4dce6bdaf3d40656342e53b5dcd12746be (patch) | |
tree | 32476f0e810340b5947ab44ad9b7059a391ecce0 /engines/startrek/common.cpp | |
parent | c17bef8285086d438a03fcff6ae5f3d15b5532e8 (diff) | |
download | scummvm-rg350-84a30e4dce6bdaf3d40656342e53b5dcd12746be.tar.gz scummvm-rg350-84a30e4dce6bdaf3d40656342e53b5dcd12746be.tar.bz2 scummvm-rg350-84a30e4dce6bdaf3d40656342e53b5dcd12746be.zip |
STARTREK: Preliminary saving/loading
Diffstat (limited to 'engines/startrek/common.cpp')
-rw-r--r-- | engines/startrek/common.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/startrek/common.cpp b/engines/startrek/common.cpp index cef01c5fae..a742860c32 100644 --- a/engines/startrek/common.cpp +++ b/engines/startrek/common.cpp @@ -19,6 +19,9 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#include "common/rect.h" +#include "common/serializer.h" + #include "startrek/common.h" namespace StarTrek { @@ -32,4 +35,11 @@ Common::Rect getRectEncompassing(Common::Rect r1, Common::Rect r2) { return Common::Rect(l,t,r,b); } +void serializeRect(Common::Rect rect, Common::Serializer &ser) { + ser.syncAsSint16LE(rect.left); + ser.syncAsSint16LE(rect.top); + ser.syncAsSint16LE(rect.right); + ser.syncAsSint16LE(rect.bottom); +} + } |