OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4ScriptStandaloneStubs.cpp File Reference
#include "C4Include.h"
#include "script/C4Aul.h"
#include "script/C4AulDebug.h"
#include "config/C4Config.h"
#include "object/C4Def.h"
#include "script/C4PropList.h"
#include "control/C4Record.h"
#include "config/C4Reloc.h"
#include "object/C4ObjectList.h"
Include dependency graph for C4ScriptStandaloneStubs.cpp:

Go to the source code of this file.

Functions

C4Effect ** FnGetEffectsFor (C4PropList *pTarget)
 
bool EraseItemSafe (const char *szFilename)
 
void AddDbgRec (C4RecordChunkType, const void *, int)
 
void RecordRandom (uint32_t range, uint32_t val)
 

Variables

C4StringTable Strings
 
C4AulScriptEngine ScriptEngine
 
C4Config Config
 
C4Reloc Reloc
 

Function Documentation

void AddDbgRec ( C4RecordChunkType  ,
const void *  ,
int   
)

Definition at line 64 of file C4ScriptStandaloneStubs.cpp.

References Control, and C4GameControl::DbgRec().

64 {}

Here is the call graph for this function:

bool EraseItemSafe ( const char *  szFilename)

Definition at line 63 of file C4ScriptStandaloneStubs.cpp.

63 {return false;}
C4Effect** FnGetEffectsFor ( C4PropList pTarget)

Definition at line 40 of file C4ScriptStandaloneStubs.cpp.

References GameScript, C4PropList::GetObject(), C4Value::getPropList(), C4AulScriptEngine::GetPropList(), C4AulScriptEngine::pGlobalEffects, C4GameScriptHost::pScenarioEffects, C4GameScriptHost::ScenPropList, and ScriptEngine.

41 {
42  if (pTarget == ScriptEngine.GetPropList())
44  if (pTarget == GameScript.ScenPropList.getPropList())
46  if (pTarget) throw C4AulExecError("Only global and scenario effects are supported");
48 }
C4PropListStatic * GetPropList()
Definition: C4Aul.h:153
C4GameScriptHost GameScript
C4AulScriptEngine ScriptEngine
C4Value ScenPropList
Definition: C4ScriptHost.h:163
C4Effect * pScenarioEffects
Definition: C4ScriptHost.h:165
C4Effect * pGlobalEffects
Definition: C4Aul.h:146
C4PropList * getPropList() const
Definition: C4Value.h:116

Here is the call graph for this function:

void RecordRandom ( uint32_t  range,
uint32_t  val 
)

Definition at line 66 of file C4ScriptStandaloneStubs.cpp.

Referenced by Random().

66 { }

Here is the caller graph for this function:

Variable Documentation

C4Config Config

Definition at line 51 of file C4ScriptStandaloneStubs.cpp.

C4Reloc Reloc

Definition at line 59 of file C4ScriptStandaloneStubs.cpp.

C4AulScriptEngine ScriptEngine

Definition at line 37 of file C4ScriptStandaloneStubs.cpp.

C4StringTable Strings

Definition at line 36 of file C4ScriptStandaloneStubs.cpp.