From 8f75589971d70b2ca749d5389a332e6761213a5b Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 20 Jun 2019 22:20:59 -0700 Subject: GLK: ALAN2: Remove all prototype ifdef blocks --- engines/glk/alan2/types.cpp | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 engines/glk/alan2/types.cpp (limited to 'engines/glk/alan2/types.cpp') 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 -- cgit v1.2.3