Leviathan  0.8.0.0
Leviathan game engine
Leviathan::TypeToAngelScriptTypeString< T > Struct Template Reference

Converts type to AngelScript type string. More...

#include <ScriptTypeResolver.h>

Static Public Member Functions

static constexpr const char * Type ()
 

Detailed Description

template<class T>
struct Leviathan::TypeToAngelScriptTypeString< T >

Converts type to AngelScript type string.

Definition at line 35 of file ScriptTypeResolver.h.

Member Function Documentation

◆ Type()

template<class T >
static constexpr const char* Leviathan::TypeToAngelScriptTypeString< T >::Type ( )
inlinestatic

Definition at line 36 of file ScriptTypeResolver.h.

37  {
38  if constexpr(std::is_pointer_v<T>) {
39  return std::remove_pointer_t<T>::ANGELSCRIPT_TYPE;
40  } else {
41 
42  return T::ANGELSCRIPT_TYPE;
43  }
44  }

The documentation for this struct was generated from the following file: