aboutsummaryrefslogtreecommitdiff
path: root/engines/sludge/variable.h
diff options
context:
space:
mode:
authorSimei Yin2018-05-31 19:33:57 +0200
committerSimei Yin2018-05-31 23:15:09 +0200
commit56f0821876b20da1c20afde9799bb22829cc537d (patch)
tree0cf0adb042647ed22d59aa7895b182c40b284477 /engines/sludge/variable.h
parent2ab7665e56b303e7d5311b4d88945cd2007bee3e (diff)
downloadscummvm-rg350-56f0821876b20da1c20afde9799bb22829cc537d.tar.gz
scummvm-rg350-56f0821876b20da1c20afde9799bb22829cc537d.tar.bz2
scummvm-rg350-56f0821876b20da1c20afde9799bb22829cc537d.zip
SLUDGE: Move save/loadVariable() to struct Variable
Diffstat (limited to 'engines/sludge/variable.h')
-rw-r--r--engines/sludge/variable.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/sludge/variable.h b/engines/sludge/variable.h
index 33810514d6..c78976afa6 100644
--- a/engines/sludge/variable.h
+++ b/engines/sludge/variable.h
@@ -76,6 +76,10 @@ struct Variable {
void unlinkVar();
void setVariable(VariableType vT, int value);
+
+ // Load & save
+ bool save(Common::WriteStream *stream);
+ bool load(Common::SeekableReadStream *stream);
};
struct VariableStack {
@@ -120,9 +124,6 @@ bool makeFastArraySize(Variable &to, int size);
Variable *fastArrayGetByIndex(FastArrayHandler *vS, uint theIndex);
// load & save
-bool saveVariable(Variable *from, Common::WriteStream *stream);
-bool loadVariable(Variable *to, Common::SeekableReadStream *stream);
-
void saveStack(VariableStack *vs, Common::WriteStream *stream);
VariableStack *loadStack(Common::SeekableReadStream *stream, VariableStack **last);
bool saveStackRef(StackHandler *vs, Common::WriteStream *stream);