OpenTTD Source 20250206-master-g6089ed8059
|
The Squirrel convert routines. More...
Functions | |
template<typename Tcls , typename Tmethod , ScriptType Ttype> | |
SQInteger | DefSQNonStaticCallback (HSQUIRRELVM vm) |
A general template for all non-static method callbacks from Squirrel. | |
template<typename Tcls , typename Tmethod , ScriptType Ttype> | |
SQInteger | DefSQAdvancedNonStaticCallback (HSQUIRRELVM vm) |
A general template for all non-static advanced method callbacks from Squirrel. | |
template<typename Tcls , typename Tmethod > | |
SQInteger | DefSQStaticCallback (HSQUIRRELVM vm) |
A general template for all function/static method callbacks from Squirrel. | |
template<typename Tcls , typename Tmethod > | |
SQInteger | DefSQAdvancedStaticCallback (HSQUIRRELVM vm) |
A general template for all static advanced method callbacks from Squirrel. | |
template<typename Tcls > | |
static SQInteger | DefSQDestructorCallback (SQUserPointer p, SQInteger) |
A general template for the destructor of SQ instances. | |
template<typename Tcls , typename Tmethod , int Tnparam> | |
SQInteger | DefSQConstructorCallback (HSQUIRRELVM vm) |
A general template to handle creating of instance with any amount of params. | |
template<typename Tcls > | |
SQInteger | DefSQAdvancedConstructorCallback (HSQUIRRELVM vm) |
A general template to handle creating of an instance with a complex constructor. | |
The Squirrel convert routines.
|
inline |
A general template to handle creating of an instance with a complex constructor.
Definition at line 388 of file squirrel_helper.hpp.
|
inline |
A general template for all non-static advanced method callbacks from Squirrel.
In here the function_proc is recovered, and the SQCall is called that can handle this exact amount of params.
Definition at line 274 of file squirrel_helper.hpp.
References Squirrel::GetInstance().
|
inline |
A general template for all static advanced method callbacks from Squirrel.
In here the function_proc is recovered, and the SQCall is called that can handle this exact amount of params.
Definition at line 336 of file squirrel_helper.hpp.
|
inline |
A general template to handle creating of instance with any amount of params.
It creates the instance in C++, and it sets all the needed settings in SQ to register the instance.
Definition at line 369 of file squirrel_helper.hpp.
|
static |
A general template for the destructor of SQ instances.
This is needed here as it has to be in the same scope as DefSQConstructorCallback.
Definition at line 356 of file squirrel_helper.hpp.
|
inline |
A general template for all non-static method callbacks from Squirrel.
In here the function_proc is recovered, and the SQCall is called that can handle this exact amount of params.
Definition at line 232 of file squirrel_helper.hpp.
References Squirrel::GetInstance().
|
inline |
A general template for all function/static method callbacks from Squirrel.
In here the function_proc is recovered, and the SQCall is called that can handle this exact amount of params.
Definition at line 312 of file squirrel_helper.hpp.