Its me again.
I am asking how instances work in ENGIMA, are they classes, structs or something else?
I am asking how instances work in ENGIMA, are they classes, structs or something else?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
//include.h
#include "../../var4.h"
#include <functional>
#include <luastate.h>
namespace enigma_user{
template<typename FuncType> variant luaF_execute_file(string filepath,FuncType f);
}
lua_execute_file(filename)
--filename = Thats the name + path to the Lua script
--What the function needs: It needs a lua script with a variable called "returner".
--What the function returns: It returns the variable "returner" from the Lua script, if the function cant find the variable "returner" or its not a string/integer the function will return "ERROR! UNKNOW RETURNER TYPE OR ERROR IN SCRIPT"
lua_execute_string(code)
--code = What do you think?
--What the function does: For now it does nothing... but I am trying to let the function do the same as lua_execute_file()