aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/script.h
diff options
context:
space:
mode:
authorRobert Špalek2009-11-08 21:26:04 +0000
committerRobert Špalek2009-11-08 21:26:04 +0000
commitabbb3dccd7fa909d1746b00a88eb55494514334f (patch)
tree09a8369306bf9ad3e8a0079fd94a74634579543b /engines/draci/script.h
parentd5bff15b228d229336b0822cd5b7d6b99213db92 (diff)
downloadscummvm-rg350-abbb3dccd7fa909d1746b00a88eb55494514334f.tar.gz
scummvm-rg350-abbb3dccd7fa909d1746b00a88eb55494514334f.tar.bz2
scummvm-rg350-abbb3dccd7fa909d1746b00a88eb55494514334f.zip
Items put into inventory are placed correctly.
Also, named correctly GPL2 parameter types. This fixes all FIXMEs svn-id: r45762
Diffstat (limited to 'engines/draci/script.h')
-rw-r--r--engines/draci/script.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/draci/script.h b/engines/draci/script.h
index d145172240..0681172a81 100644
--- a/engines/draci/script.h
+++ b/engines/draci/script.h
@@ -53,12 +53,19 @@ typedef int (Script::*GPLFunctionHandler)(int) const;
* subnumber.
*/
+enum GPL2ParameterType {
+ kGPL2Num = 1,
+ kGPL2Str = 2,
+ kGPL2Ident = 3,
+ kGPL2Math = 4
+};
+
struct GPL2Command {
byte _number;
byte _subNumber;
const char *_name;
uint16 _numParams;
- int _paramTypes[kMaxParams];
+ GPL2ParameterType _paramTypes[kMaxParams];
GPLHandler _handler;
};