diff options
Diffstat (limited to 'engines/wintermute/Base/BScriptHolder.h')
-rw-r--r-- | engines/wintermute/Base/BScriptHolder.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/wintermute/Base/BScriptHolder.h b/engines/wintermute/Base/BScriptHolder.h index dabaf52dd3..77f0f386cb 100644 --- a/engines/wintermute/Base/BScriptHolder.h +++ b/engines/wintermute/Base/BScriptHolder.h @@ -45,14 +45,14 @@ public: virtual void makeFreezable(bool freezable);
bool canHandleEvent(const char *eventName);
virtual bool canHandleMethod(const char *eventMethod);
- ERRORCODE cleanup();
- ERRORCODE removeScript(CScScript *script);
- ERRORCODE addScript(const char *filename);
- virtual ERRORCODE saveAsText(CBDynBuffer *buffer, int indent);
- virtual ERRORCODE listen(CBScriptHolder *param1, uint32 param2);
- ERRORCODE applyEvent(const char *eventName, bool unbreakable = false);
+ bool cleanup();
+ bool removeScript(CScScript *script);
+ bool addScript(const char *filename);
+ virtual bool saveAsText(CBDynBuffer *buffer, int indent);
+ virtual bool listen(CBScriptHolder *param1, uint32 param2);
+ bool applyEvent(const char *eventName, bool unbreakable = false);
void setFilename(const char *filename);
- ERRORCODE parseProperty(byte *buffer, bool complete = true);
+ bool parseProperty(byte *buffer, bool complete = true);
char *_filename;
bool _freezable;
bool _ready;
@@ -60,8 +60,8 @@ public: CBArray<CScScript *, CScScript *> _scripts;
// scripting interface
virtual CScValue *scGetProperty(const char *name);
- virtual ERRORCODE scSetProperty(const char *name, CScValue *value);
- virtual ERRORCODE scCallMethod(CScScript *script, CScStack *stack, CScStack *thisStack, const char *name);
+ virtual bool scSetProperty(const char *name, CScValue *value);
+ virtual bool scCallMethod(CScScript *script, CScStack *stack, CScStack *thisStack, const char *name);
virtual const char *scToString();
virtual void scDebuggerDesc(char *buf, int bufSize);
// IWmeObject
|