Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
ScriptInterface.h File Reference
Include dependency graph for ScriptInterface.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ScriptInterface
 Abstraction around a SpiderMonkey JS::Realm. More...
 
struct  ScriptInterface::CmptPrivate
 
struct  ScriptInterface::CustomType
 

Namespaces

namespace  boost
 
namespace  boost::random
 

Macros

#define SCRIPT_INTERFACE_MAX_ARGS   8
 

Typedefs

using VfsPath = Path
 

Functions

 ERROR_GROUP (Scripting)
 
 ERROR_TYPE (Scripting, SetupFailed)
 
 ERROR_SUBGROUP (Scripting, LoadFile)
 
 ERROR_TYPE (Scripting_LoadFile, OpenFailed)
 
 ERROR_TYPE (Scripting_LoadFile, EvalErrors)
 
 ERROR_TYPE (Scripting, CallFunctionFailed)
 
 ERROR_TYPE (Scripting, DefineConstantFailed)
 
 ERROR_TYPE (Scripting, CreateObjectFailed)
 
 ERROR_TYPE (Scripting, TypeDoesNotExist)
 
 ERROR_SUBGROUP (Scripting, DefineType)
 
 ERROR_TYPE (Scripting_DefineType, AlreadyExists)
 
 ERROR_TYPE (Scripting_DefineType, CreationFailed)
 

Variables

thread_local std::shared_ptr< ScriptContextg_ScriptContext
 

Macro Definition Documentation

◆ SCRIPT_INTERFACE_MAX_ARGS

#define SCRIPT_INTERFACE_MAX_ARGS   8

Typedef Documentation

◆ VfsPath

using VfsPath = Path

Function Documentation

◆ ERROR_GROUP()

ERROR_GROUP ( Scripting  )

◆ ERROR_SUBGROUP() [1/2]

ERROR_SUBGROUP ( Scripting  ,
DefineType   
)

◆ ERROR_SUBGROUP() [2/2]

ERROR_SUBGROUP ( Scripting  ,
LoadFile   
)

◆ ERROR_TYPE() [1/9]

ERROR_TYPE ( Scripting  ,
CallFunctionFailed   
)

◆ ERROR_TYPE() [2/9]

ERROR_TYPE ( Scripting  ,
CreateObjectFailed   
)

◆ ERROR_TYPE() [3/9]

ERROR_TYPE ( Scripting  ,
DefineConstantFailed   
)

◆ ERROR_TYPE() [4/9]

ERROR_TYPE ( Scripting  ,
SetupFailed   
)

◆ ERROR_TYPE() [5/9]

ERROR_TYPE ( Scripting  ,
TypeDoesNotExist   
)

◆ ERROR_TYPE() [6/9]

ERROR_TYPE ( Scripting_DefineType  ,
AlreadyExists   
)

◆ ERROR_TYPE() [7/9]

ERROR_TYPE ( Scripting_DefineType  ,
CreationFailed   
)

◆ ERROR_TYPE() [8/9]

ERROR_TYPE ( Scripting_LoadFile  ,
EvalErrors   
)

◆ ERROR_TYPE() [9/9]

ERROR_TYPE ( Scripting_LoadFile  ,
OpenFailed   
)

Variable Documentation

◆ g_ScriptContext

thread_local std::shared_ptr<ScriptContext> g_ScriptContext
extern