#include "scripting/lua_formula_bridge.hpp"
#include "boost/variant/static_visitor.hpp"
#include "scripting/game_lua_kernel.hpp"
#include "scripting/lua_api.hpp"
#include "scripting/lua_common.hpp"
#include "lua/lauxlib.h"
#include "lua/lua.h"
#include "formula/callable_objects.hpp"
#include "formula/formula.hpp"
#include "variable.hpp"
#include "resources.hpp"
#include "units/map.hpp"
Go to the source code of this file.
Classes | |
class | lua_callable |
Functions | |
void | luaW_pushfaivariant (lua_State *L, variant val) |
variant | luaW_tofaivariant (lua_State *L, int i) |
static int | impl_formula_collect (lua_State *L) |
static int | impl_formula_tostring (lua_State *L) |
Definition at line 266 of file lua_formula_bridge.cpp.
References lua_touserdata().
Referenced by lua_formula_bridge::register_metatables().
Definition at line 273 of file lua_formula_bridge.cpp.
References lua_pushlstring(), lua_touserdata(), and lua_formula_bridge::fwrapper::str().
Referenced by lua_formula_bridge::register_metatables().
Definition at line 115 of file lua_formula_bridge.cpp.
References variant::as_callable(), variant::as_decimal(), variant::as_int(), variant::as_list(), variant::as_map(), variant::as_string(), unit_map::find(), game_logic::FORMULA_WRITE_ONLY, game_logic::formula_callable::get_inputs(), unit::get_location(), getunitKey, variant::is_callable(), variant::is_decimal(), variant::is_int(), variant::is_list(), variant::is_map(), variant::is_null(), variant::is_string(), lua_newtable, lua_newuserdata(), lua_pushinteger(), lua_pushlightuserdata(), lua_pushlstring(), lua_pushnil(), lua_pushnumber(), lua_pushstring(), lua_rawget(), lua_rawlen(), LUA_REGISTRYINDEX, lua_setmetatable(), lua_settable(), luaW_pushlocation(), game_logic::formula_callable::query_value(), unit::side(), variant::try_convert(), unit::underlying_id(), and resources::units.
Referenced by lua_formula_bridge::intf_eval_formula().
Definition at line 173 of file lua_formula_bridge.cpp.
References variant::DECIMAL_VARIANT, vconfig::get_parsed_config(), LUA_TBOOLEAN, LUA_TNUMBER, lua_tointeger, lua_tonumber, lua_tostring, LUA_TSTRING, LUA_TTABLE, LUA_TUSERDATA, lua_type(), luaW_tolocation(), luaW_totstring(), luaW_tounit(), luaW_tovconfig(), t_string::str(), and vconfig::unconstructed_vconfig().
Referenced by lua_callable::get_value().