Evospace  0.19.0
Modding API
 
Loading...
Searching...
No Matches
evo::lua_state Class Reference

Most basic lua state class. More...

Inheritance diagram for evo::lua_state:
evo::game_lua_state evo::mod_loading_lua_state evo::legacy_lua_state

Public Member Functions

bool run_code (std::string_view code, std::string_view code_path="")
 

Static Public Member Functions

static Classfind_class (const std::string &name)
 Find Unreal Engine Class.
 

Detailed Description

Most basic lua state class.

Definition at line 15 of file LuaState.h.

Member Function Documentation

◆ find_class()

static Class * evo::lua_state::find_class ( const std::string & name)
static

Find Unreal Engine Class.

lua syntax

get_class("name")
Parameters
Classname
Returns
Class object

◆ run_code()

bool evo::lua_state::run_code ( std::string_view code,
std::string_view code_path = "" )
Parameters
codestring with lua code; it will be running in all loaded context in this lua state
CodePathlabel in error log for this code fragment execution
Returns
true if there is no errors