Tramway SDK
Classes | Functions
tram::Script Namespace Reference

Classes

struct  Language
 

Functions

void SetGlobal (name_t name, value_t value)
 
value_t GetGlobal (name_t name)
 
void SetFunction (name_t name, std::vector< Type > parameters, value_t(*function)(valuearray_t))
 
value_t CallFunction (name_t name, std::vector< Value > parameters)
 
void SetLanguage (Language lang)
 
void LoadScript (const char *path)
 
void Init ()
 

Function Documentation

◆ CallFunction()

value_t tram::Script::CallFunction ( name_t  name,
std::vector< Value parameters 
)

◆ GetGlobal()

value_t tram::Script::GetGlobal ( name_t  name)

◆ Init()

void tram::Script::Init ( )

◆ LoadScript()

void tram::Script::LoadScript ( const char *  path)

◆ SetFunction()

void tram::Script::SetFunction ( name_t  name,
std::vector< Type parameters,
value_t(*)(valuearray_t function 
)

◆ SetGlobal()

void tram::Script::SetGlobal ( name_t  name,
value_t  value 
)

◆ SetLanguage()

void tram::Script::SetLanguage ( Language  lang)