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 34 of file ScriptTypeResolver.h.

Member Function Documentation

◆ Type()

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

Definition at line 35 of file ScriptTypeResolver.h.

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

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