Symphony Of Empires
lua_api.hpp File Reference
#include <lua.hpp>
#include <lualib.h>
#include <lauxlib.h>
#include <string>
#include <vector>
#include <exception>
Include dependency graph for lua_api.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 LuaAPI
 

Functions

int LuaAPI::register_new_table (lua_State *L, const std::string &name, const std::vector< luaL_Reg > meta, const std::vector< luaL_Reg > methods)
 
int LuaAPI::add_terrain_type (lua_State *L)
 
int LuaAPI::get_terrain_type (lua_State *L)
 
int LuaAPI::get_terrain_type_by_id (lua_State *L)
 
int LuaAPI::add_technology (lua_State *L)
 
int LuaAPI::get_technology (lua_State *L)
 
int LuaAPI::add_req_tech_to_tech (lua_State *L)
 
int LuaAPI::add_building_type (lua_State *L)
 
int LuaAPI::get_building_type (lua_State *L)
 
int LuaAPI::add_good (lua_State *L)
 
int LuaAPI::get_good (lua_State *L)
 
int LuaAPI::add_input_to_industry_type (lua_State *L)
 
int LuaAPI::add_output_to_industry_type (lua_State *L)
 
int LuaAPI::add_req_good_to_industry_type (lua_State *L)
 
int LuaAPI::add_req_technology_to_industry_type (lua_State *L)
 
int LuaAPI::add_nation (lua_State *L)
 
int LuaAPI::get_nation (lua_State *L)
 
int LuaAPI::get_nation_by_id (lua_State *L)
 
int LuaAPI::get_all_nations (lua_State *L)
 
int LuaAPI::switch_nation_soul (lua_State *L)
 
int LuaAPI::nation_declare_war_no_cb (lua_State *L)
 
int LuaAPI::get_provinces_owned_by_nation (lua_State *L)
 
int LuaAPI::get_provinces_with_nucleus_by_nation (lua_State *L)
 
int LuaAPI::set_nation_primary_language (lua_State *L)
 
int LuaAPI::set_nation_capital (lua_State *L)
 
int LuaAPI::add_accepted_language (lua_State *L)
 
int LuaAPI::add_accepted_religion (lua_State *L)
 
int LuaAPI::add_nation_client_hint (lua_State *L)
 
int LuaAPI::nation_declare_unjustified_war (lua_State *L)
 
int LuaAPI::get_nation_relation (lua_State *L)
 
int LuaAPI::set_nation_relation (lua_State *L)
 
int LuaAPI::add_province (lua_State *L)
 
int LuaAPI::update_province (lua_State *L)
 
int LuaAPI::get_province (lua_State *L)
 
int LuaAPI::get_province_by_id (lua_State *L)
 
int LuaAPI::province_add_unit (lua_State *L)
 
int LuaAPI::update_province_building (lua_State *L)
 
int LuaAPI::give_province_to (lua_State *L)
 
int LuaAPI::give_hard_province_to (lua_State *L)
 
int LuaAPI::get_province_owner (lua_State *L)
 
int LuaAPI::get_province_controller (lua_State *L)
 
int LuaAPI::get_province_neighbours (lua_State *L)
 
int LuaAPI::get_province_nuclei (lua_State *L)
 
int LuaAPI::add_province_pop (lua_State *L)
 
int LuaAPI::set_province_language (lua_State *L)
 
int LuaAPI::set_province_religion (lua_State *L)
 
int LuaAPI::rename_province (lua_State *L)
 
int LuaAPI::add_province_nucleus (lua_State *L)
 
int LuaAPI::add_province_owner (lua_State *L)
 
int LuaAPI::add_event (lua_State *L)
 
int LuaAPI::get_event (lua_State *L)
 
int LuaAPI::update_event (lua_State *L)
 
int LuaAPI::add_event_receivers (lua_State *L)
 
int LuaAPI::add_decision (lua_State *L)
 
int LuaAPI::add_pop_type (lua_State *L)
 
int LuaAPI::get_pop_type (lua_State *L)
 
int LuaAPI::get_pop_type_by_id (lua_State *L)
 
int LuaAPI::add_language (lua_State *L)
 
int LuaAPI::get_language (lua_State *L)
 
int LuaAPI::get_language_by_id (lua_State *L)
 
int LuaAPI::add_religion (lua_State *L)
 
int LuaAPI::get_religion (lua_State *L)
 
int LuaAPI::get_religion_by_id (lua_State *L)
 
int LuaAPI::add_unit_type (lua_State *L)
 
int LuaAPI::get_unit_type (lua_State *L)
 
int LuaAPI::add_req_good_unit_type (lua_State *L)
 
int LuaAPI::add_ideology (lua_State *L)
 
int LuaAPI::get_ideology (lua_State *L)
 
int LuaAPI::get_ideology_by_id (lua_State *L)
 
void LuaAPI::fire_event (lua_State *L, Nation &nation, Event &event, bool &is_multi, const std::string_view extra)
 
void LuaAPI::check_events (lua_State *L)
 
int LuaAPI::ui_call_builtin (lua_State *L)