Leviathan  0.8.0.0
Leviathan game engine
ScriptConversionHelpers.h File Reference
#include "Define.h"
#include "angelscript.h"
#include "add_on/scriptarray/scriptarray.h"
#include "ScriptExecutor.h"
#include <type_traits>
#include <vector>

Go to the source code of this file.

Namespaces

 Leviathan
 The access mask controls which registered functions and classes a script sees.
 

Functions

template<class T >
CScriptArray * Leviathan::ConvertVectorToASArray (const std::vector< T > &data, asIScriptEngine *engine, const char *arraytype=nullptr)
 Converts a std::vector to an AngelScript array. More...
 
template<class T >
CScriptArray * Leviathan::ConvertIteratorToASArray (T begin, T end, asIScriptEngine *engine, const char *arraytype=nullptr)
 Variant that converts from iterator range to an AngelScript array. More...