Leviathan  0.8.0.0
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

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

Definition at line 50 of file ScriptTypeResolver.h.

Member Function Documentation

◆ Get()

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

Definition at line 52 of file ScriptTypeResolver.h.

53  {
54  static int cached = ResolveProxy(TypeToAngelScriptTypeString<T>::Type(), resolver);
55  return cached;
56  }
DLLEXPORT int ResolveProxy(const char *type, ScriptExecutor *resolver)
static constexpr const char * Type()

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