28 #ifndef WINTERMUTE_SCENGINE_H 29 #define WINTERMUTE_SCENGINE_H 31 #include "engines/wintermute/persistent.h" 32 #include "engines/wintermute/coll_templ.h" 33 #include "engines/wintermute/base/base.h" 37 #define MAX_CACHED_SCRIPTS 20 41 class BaseScriptHolder;
48 _buffer =
new byte[size];
50 memcpy(_buffer, buffer, size);
69 bool clearGlobals(
bool includingNatives =
false);
70 bool tickUnbreakable();
71 bool removeFinishedScripts();
72 bool isValidScript(
ScScript *script);
80 bool emptyScriptCache();
81 byte *getCompiledScript(
const char *filename, uint32 *outSize,
bool ignoreCache =
false);
84 int getNumScripts(
int *running =
nullptr,
int *waiting =
nullptr,
int *persistent =
nullptr);
88 bool isRunningScript(
const char *filename);
89 static const bool _compilerAvailable =
false;
93 static byte *loadFile(
void *data,
char *filename, uint32 *size);
94 static void closeFile(
void *data, byte *buffer);
95 static void parseElement(
void *data,
int line,
int type,
void *elementData);
99 void enableProfiling();
100 void disableProfiling();
101 bool getIsProfiling() {
105 void addScriptTime(
const char *filename, uint32 Time);
112 uint32 _profilingStartTime;
115 ScriptTimes _scriptTimes;
Definition: base_game.h:76
Definition: script_value.h:42
virtual uint32 getMillis(bool skipRecord=false)=0
Definition: script_engine.h:44
Definition: base_script_holder.h:37
Definition: coll_templ.h:63
Definition: script_engine.h:42
Definition: base_object.h:49
Definition: achievements_tables.h:27