ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <script_engine.h>

Inheritance diagram for Wintermute::ScEngine:
Collaboration diagram for Wintermute::ScEngine:

List of all members.

Classes

class  CScCachedScript

Public Member Functions

bool clearGlobals (bool includingNatives=false)
bool tickUnbreakable ()
bool removeFinishedScripts ()
bool isValidScript (ScScript *script)
bool resumeAll ()
bool pauseAll ()
void editorCleanup ()
bool resetObject (BaseObject *Object)
bool resetScript (ScScript *script)
bool emptyScriptCache ()
bytegetCompiledScript (const char *filename, uint32 *outSize, bool ignoreCache=false)
bool cleanup ()
int getNumScripts (int *running=nullptr, int *waiting=nullptr, int *persistent=nullptr)
bool tick ()
ScScriptrunScript (const char *filename, BaseScriptHolder *owner=nullptr)
bool isRunningScript (const char *filename)
 ScEngine (BaseGame *inGame)
 ~ScEngine () override
void enableProfiling ()
void disableProfiling ()
bool getIsProfiling ()
void addScriptTime (const char *filename, uint32 Time)
void dumpStats ()

Static Public Member Functions

static byteloadFile (void *data, char *filename, uint32 *size)
static void closeFile (void *data, byte *buffer)
static void parseElement (void *data, int line, int type, void *elementData)

Public Attributes

ScScript_currentScript
ScValue_globals
BaseArray< ScScript * > _scripts

Static Public Attributes

static const bool _compilerAvailable = false

Private Types

typedef Common::HashMap
< Common::String, uint32
ScriptTimes

Private Attributes

CScCachedScript_cachedScripts [MAX_CACHED_SCRIPTS]
bool _isProfiling
uint32 _profilingStartTime
ScriptTimes _scriptTimes

Detailed Description

Definition at line 43 of file script_engine.h.


Member Typedef Documentation


Constructor & Destructor Documentation

Wintermute::ScEngine::ScEngine ( BaseGame inGame  ) 

Definition at line 44 of file script_engine.cpp.

Wintermute::ScEngine::~ScEngine (  )  [override]

Definition at line 92 of file script_engine.cpp.


Member Function Documentation

void Wintermute::ScEngine::addScriptTime ( const char *  filename,
uint32  Time 
)

Definition at line 586 of file script_engine.cpp.

bool Wintermute::ScEngine::cleanup (  ) 

Definition at line 102 of file script_engine.cpp.

bool Wintermute::ScEngine::clearGlobals ( bool  includingNatives = false  ) 

Definition at line 580 of file script_engine.cpp.

void Wintermute::ScEngine::closeFile ( void *  data,
byte buffer 
) [static]

Definition at line 132 of file script_engine.cpp.

void Wintermute::ScEngine::disableProfiling (  ) 

Definition at line 612 of file script_engine.cpp.

void Wintermute::ScEngine::dumpStats (  ) 

Definition at line 623 of file script_engine.cpp.

void Wintermute::ScEngine::editorCleanup (  ) 

Definition at line 536 of file script_engine.cpp.

bool Wintermute::ScEngine::emptyScriptCache (  ) 

Definition at line 482 of file script_engine.cpp.

void Wintermute::ScEngine::enableProfiling (  ) 

Definition at line 598 of file script_engine.cpp.

byte * Wintermute::ScEngine::getCompiledScript ( const char *  filename,
uint32 outSize,
bool  ignoreCache = false 
)

Definition at line 199 of file script_engine.cpp.

bool Wintermute::ScEngine::getIsProfiling (  )  [inline]

Definition at line 102 of file script_engine.h.

int Wintermute::ScEngine::getNumScripts ( int *  running = nullptr,
int *  waiting = nullptr,
int *  persistent = nullptr 
)

Definition at line 434 of file script_engine.cpp.

bool Wintermute::ScEngine::isRunningScript ( const char *  filename  ) 

Definition at line 188 of file script_engine.cpp.

bool Wintermute::ScEngine::isValidScript ( ScScript script  ) 

Definition at line 570 of file script_engine.cpp.

byte * Wintermute::ScEngine::loadFile ( void *  data,
char *  filename,
uint32 size 
) [static]

Definition at line 126 of file script_engine.cpp.

void Wintermute::ScEngine::parseElement ( void *  data,
int  line,
int  type,
void *  elementData 
) [static]

Definition at line 138 of file script_engine.cpp.

bool Wintermute::ScEngine::pauseAll (  ) 

Definition at line 548 of file script_engine.cpp.

bool Wintermute::ScEngine::removeFinishedScripts (  ) 

Definition at line 416 of file script_engine.cpp.

bool Wintermute::ScEngine::resetObject ( BaseObject Object  ) 

Definition at line 494 of file script_engine.cpp.

bool Wintermute::ScEngine::resetScript ( ScScript script  ) 

Definition at line 510 of file script_engine.cpp.

bool Wintermute::ScEngine::resumeAll (  ) 

Definition at line 560 of file script_engine.cpp.

ScScript * Wintermute::ScEngine::runScript ( const char *  filename,
BaseScriptHolder owner = nullptr 
)

Definition at line 143 of file script_engine.cpp.

bool Wintermute::ScEngine::tick (  ) 

Definition at line 274 of file script_engine.cpp.

bool Wintermute::ScEngine::tickUnbreakable (  ) 

Definition at line 390 of file script_engine.cpp.


Member Data Documentation

CScCachedScript* Wintermute::ScEngine::_cachedScripts[MAX_CACHED_SCRIPTS] [private]

Definition at line 111 of file script_engine.h.

const bool Wintermute::ScEngine::_compilerAvailable = false [static]

Definition at line 90 of file script_engine.h.

Definition at line 112 of file script_engine.h.

Definition at line 116 of file script_engine.h.


The documentation for this class was generated from the following files:


Generated on Sat Sep 26 2020 05:04:15 for ResidualVM by doxygen 1.7.1
curved edge   curved edge