aboutsummaryrefslogtreecommitdiff
path: root/engines/wage/script.h
diff options
context:
space:
mode:
authorD G Turner2011-06-01 02:16:39 +0100
committerEugene Sandulenko2015-12-27 15:39:52 +0100
commit624c4018736f93b499597f78b6dabed7e08d1016 (patch)
treedcbe67a554f3ff464a46b726ea4143a9856f2366 /engines/wage/script.h
parent57b464b2e9c8d5e8aff0d5c35e1f8fcb1ef2ae90 (diff)
downloadscummvm-rg350-624c4018736f93b499597f78b6dabed7e08d1016.tar.gz
scummvm-rg350-624c4018736f93b499597f78b6dabed7e08d1016.tar.bz2
scummvm-rg350-624c4018736f93b499597f78b6dabed7e08d1016.zip
WAGE: Change Script Object to use Common::SeekableReadStream.
This replaces the use of (byte* data, int dataSize) type buffer. Also, some replacements of code in world object to incorporate. Still not compilable. Signed-off-by: Eugene Sandulenko <sev@scummvm.org>
Diffstat (limited to 'engines/wage/script.h')
-rw-r--r--engines/wage/script.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/wage/script.h b/engines/wage/script.h
index a5288d66da..7f7ea0df07 100644
--- a/engines/wage/script.h
+++ b/engines/wage/script.h
@@ -55,19 +55,17 @@ namespace Wage {
class Script {
public:
- Script(byte *data, int dataSize) : _data(data), _dataSize(dataSize) {}
+ Script(Common::SeekableReadStream *data) : _data(data) {}
~Script();
private:
- byte *_data;
- int _dataSize;
+ Common::SeekableReadStream *_data;
WageEngine *_callbacks;
World *_world;
int _loopCount;
String *_inputText;
Designed *_inputClick;
- int _index;
bool _evalResult;
bool _handled;