Tramway SDK v0.1.1
Classes | Functions
tram::ScriptableType Namespace Reference

Classes

struct  ScriptableTypeInfo
 

Functions

void Register (name_t base_type, Entity *(*constr_func)(name_t new_type, const SharedEntityData &, const ValueArray &), void(*destr_func)(Entity *))
 
EntityMake (name_t base_type, name_t new_type, const SharedEntityData &data, const ValueArray &array)
 
void Yeet (Entity *yeetable)
 

Function Documentation

◆ Make()

Entity * tram::ScriptableType::Make ( name_t  base_type,
name_t  new_type,
const SharedEntityData data,
const ValueArray array 
)

◆ Register()

void tram::ScriptableType::Register ( name_t  base_type,
Entity *(*)(name_t new_type, const SharedEntityData &, const ValueArray &)  constr_func,
void(*)(Entity *)  destr_func 
)

◆ Yeet()

void tram::ScriptableType::Yeet ( Entity yeetable)