OpenTTD Source: src/script/squirrel_helper.hpp File Reference

OpenTTD Source 15.3

Data Structures | Namespaces | Functions
squirrel_helper.hpp File Reference

declarations and parts of the implementation of the class for convert code More...

`#include "squirrel.hpp"`
`#include "../string_func.h"`
`#include "../tile_type.h"`
`#include "../core/convertible_through_base.hpp"`
`#include "squirrel_helper_type.hpp"`

Go to the source code of this file.

## Data Structures
struct | SQConvert::Return< uint8_t >
struct | SQConvert::Return< uint16_t >
struct | SQConvert::Return< uint32_t >
struct | SQConvert::Return< int8_t >
struct | SQConvert::Return< int16_t >
struct | SQConvert::Return< int32_t >
struct | SQConvert::Return< int64_t >
struct | SQConvert::Return< TileIndex >
struct | SQConvert::Return< bool >
struct | SQConvert::Return< char * >
struct | SQConvert::Return< const char * >
struct | SQConvert::Return< HSQOBJECT >
struct | SQConvert::Return< T >
struct | SQConvert::Return< std::optional< std::string > >
struct | SQConvert::Param< uint8_t >
struct | SQConvert::Param< uint16_t >
struct | SQConvert::Param< uint32_t >
struct | SQConvert::Param< int8_t >
struct | SQConvert::Param< int16_t >
struct | SQConvert::Param< int32_t >
struct | SQConvert::Param< int64_t >
struct | SQConvert::Param< TileIndex >
struct | SQConvert::Param< bool >
struct | SQConvert::Param< const char * >
struct | SQConvert::Param< T >
struct | SQConvert::Param< const std::string & >
struct | SQConvert::Param< Array< Titem > && >
struct | SQConvert::HelperT< Tretval(*)(Targs...)>
| The real C++ caller for functions. More...
struct | SQConvert::HelperT< Tretval(Tcls::*)(Targs...)>
| The real C++ caller for methods. More...

## Namespaces
namespace | SQConvert
| The Squirrel convert routines.

## Functions
template<class CL , ScriptType ST>
SQInteger | PushClassName (HSQUIRRELVM)
template<typename Tcls , typename Tmethod , ScriptType Ttype>
SQInteger | SQConvert::DefSQNonStaticCallback (HSQUIRRELVM vm)
| A general template for all non-static method callbacks from Squirrel.
template<typename Tcls , typename Tmethod , ScriptType Ttype>
SQInteger | SQConvert::DefSQAdvancedNonStaticCallback (HSQUIRRELVM vm)
| A general template for all non-static advanced method callbacks from Squirrel.
template<typename Tcls , typename Tmethod >
SQInteger | SQConvert::DefSQStaticCallback (HSQUIRRELVM vm)
| A general template for all function/static method callbacks from Squirrel.
template<typename Tcls , typename Tmethod >
SQInteger | SQConvert::DefSQAdvancedStaticCallback (HSQUIRRELVM vm)
| A general template for all static advanced method callbacks from Squirrel.
template<typename Tcls >
static SQInteger | SQConvert::DefSQDestructorCallback (SQUserPointer p, SQInteger)
| A general template for the destructor of SQ instances.
template<typename Tcls , typename Tmethod >
SQInteger | SQConvert::DefSQConstructorCallback (HSQUIRRELVM vm)
| A general template to handle creating of instance with any amount of params.
template<typename Tcls >
SQInteger | SQConvert::DefSQAdvancedConstructorCallback (HSQUIRRELVM vm)
| A general template to handle creating of an instance with a complex constructor.

## Detailed Description

declarations and parts of the implementation of the class for convert code

Definition in file squirrel_helper.hpp.