Leviathan game engine
Leviathan::AngelScriptTypeIDResolver< T > Struct Template Reference

#include <ScriptTypeResolver.h>

Static Public Member Functions

static int Get (ScriptExecutor *resolver)

Detailed Description

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

Helper for querying each type for their corresponding angelscript type once

This will entirely break if there can be multiple script executors in use

Definition at line 44 of file ScriptTypeResolver.h.

Member Function Documentation

◆ Get()

template<class T >
static int Leviathan::AngelScriptTypeIDResolver< T >::Get ( ScriptExecutor resolver)

Definition at line 46 of file ScriptTypeResolver.h.

47  {
48  static int cached = ResolveProxy(TypeToAngelScriptTypeString<T>::Type(), resolver,
49  std::is_const_v<std::remove_pointer_t<T>>);
50  return cached;
51  }
DLLEXPORT int ResolveProxy(const char *type, ScriptExecutor *resolver, bool constversion)
static constexpr const char * Type()

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