diff options
author | Paul Gilbert | 2019-06-20 22:20:59 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-06-22 14:40:50 -0700 |
commit | 8f75589971d70b2ca749d5389a332e6761213a5b (patch) | |
tree | 4ddb7bba2a1040c5b563b89b75ae823182c08a91 /engines/glk/alan2/types.cpp | |
parent | ad1cecaeac5d54b0973d6c7edce8181cb965ff68 (diff) | |
download | scummvm-rg350-8f75589971d70b2ca749d5389a332e6761213a5b.tar.gz scummvm-rg350-8f75589971d70b2ca749d5389a332e6761213a5b.tar.bz2 scummvm-rg350-8f75589971d70b2ca749d5389a332e6761213a5b.zip |
GLK: ALAN2: Remove all prototype ifdef blocks
Diffstat (limited to 'engines/glk/alan2/types.cpp')
-rw-r--r-- | engines/glk/alan2/types.cpp | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/engines/glk/alan2/types.cpp b/engines/glk/alan2/types.cpp new file mode 100644 index 0000000000..8419e33ff4 --- /dev/null +++ b/engines/glk/alan2/types.cpp @@ -0,0 +1,45 @@ +/* ScummVM - Graphic Adventure Engine + * + * ScummVM is the legal property of its developers, whose names + * are too numerous to list here. Please refer to the COPYRIGHT + * file distributed with this source distribution. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + */ + +#include "glk/alan2/types.h" + +namespace Glk { +namespace Alan2 { + +void CurVars::synchronize(Common::Serializer &s) { + s.syncAsSint32LE(vrb); + s.syncAsSint32LE(obj); + s.syncAsSint32LE(loc); + s.syncAsSint32LE(act); + s.syncAsSint32LE(tick); + s.syncAsSint32LE(score); + s.syncAsSint32LE(visits); +} + +void EvtqElem::synchronize(Common::Serializer &s) { + s.syncAsSint32LE(time); + s.syncAsSint32LE(event); + s.syncAsSint32LE(where); +}; + +} // End of namespace Alan2 +} // End of namespace Glk |