4#ifndef TRAM_SDK_FRAMEWORK_SCRIPT_H
5#define TRAM_SDK_FRAMEWORK_SCRIPT_H
Generic, type-safe union.
Definition: value.h:18
std::vector< Type > parameters
Definition: lua.cpp:156
Definition: script.cpp:23
void SetGlobal(name_t name, value_t value)
Definition: script.cpp:34
void Init()
Definition: script.cpp:58
void SetFunction(name_t name, std::vector< Type > parameters, value_t(*function)(valuearray_t))
Definition: script.cpp:42
void SetLanguage(Language lang)
Definition: script.cpp:50
value_t GetGlobal(name_t name)
Definition: script.cpp:38
void LoadScript(const char *path)
Definition: script.cpp:54
value_t CallFunction(name_t name, std::vector< Value > parameters)
Definition: script.cpp:46
Value value_t
Definition: value.h:346
ValueArray valuearray_t
Definition: value.h:347
UID name_t
Definition: uid.h:40
name_t name
Definition: script.h:19
void(* load_script)(const char *path)
Definition: script.h:26
void(* set_global)(name_t name, value_t value)
Definition: script.h:22
void(* set_function)(name_t name, std::vector< Type > parameters, value_t(*function)(valuearray_t))
Definition: script.h:23
value_t(* call_function)(name_t name, std::vector< Value > parameters)
Definition: script.h:24
value_t(* get_global)(name_t name)
Definition: script.h:21