OpenTTD Source  20241108-master-g80f628063a
squirrel_helper.hpp File Reference

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

#include "squirrel.hpp"
#include "../core/alloc_func.hpp"
#include "../economy_type.h"
#include "../string_func.h"
#include "../tile_type.h"
#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< Money >
 
struct  SQConvert::Return< TileIndex >
 
struct  SQConvert::Return< bool >
 
struct  SQConvert::Return< char * >
 
struct  SQConvert::Return< const char * >
 
struct  SQConvert::Return< void * >
 
struct  SQConvert::Return< HSQOBJECT >
 
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< Money >
 
struct  SQConvert::Param< bool >
 
struct  SQConvert::Param< const char * >
 
struct  SQConvert::Param< void * >
 
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

 SQConvert
 The Squirrel convert routines.
 

Functions

template<class CL , ScriptType ST>
const char * GetClassName ()
 
template<typename Tcls , typename Tmethod , ScriptType Ttype>
SQInteger SQConvert::DefSQNonStaticCallback (HSQUIRRELVM vm)
 A general template for all non-static method callbacks from Squirrel. More...
 
template<typename Tcls , typename Tmethod , ScriptType Ttype>
SQInteger SQConvert::DefSQAdvancedNonStaticCallback (HSQUIRRELVM vm)
 A general template for all non-static advanced method callbacks from Squirrel. More...
 
template<typename Tcls , typename Tmethod >
SQInteger SQConvert::DefSQStaticCallback (HSQUIRRELVM vm)
 A general template for all function/static method callbacks from Squirrel. More...
 
template<typename Tcls , typename Tmethod >
SQInteger SQConvert::DefSQAdvancedStaticCallback (HSQUIRRELVM vm)
 A general template for all static advanced method callbacks from Squirrel. More...
 
template<typename Tcls >
static SQInteger SQConvert::DefSQDestructorCallback (SQUserPointer p, SQInteger)
 A general template for the destructor of SQ instances. More...
 
template<typename Tcls , typename Tmethod , int Tnparam>
SQInteger SQConvert::DefSQConstructorCallback (HSQUIRRELVM vm)
 A general template to handle creating of instance with any amount of params. More...
 
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.