32 virtual std::string
my_name() {
return "Mapgen Lua Kernel"; }
A config object defines a single node in a WML file, with access to child nodes.
int intf_get_variable(lua_State *L)
virtual uint32_t get_random_seed()
void run_generator(const char *prog, const config &generator)
virtual std::string my_name()
User-visible name of the lua kernel that they are talking to.
void user_config(const char *prog, const config &generator)
std::string create_map(const char *prog, const config &generator, utils::optional< uint32_t > seed)
config create_scenario(const char *prog, const config &generator, utils::optional< uint32_t > seed)
mapgen_lua_kernel(const config *vars)
std::mt19937 & get_default_rng()
utils::optional< uint32_t > random_seed_
int intf_get_all_vars(lua_State *L)
utils::optional< std::mt19937 > default_rng_
rng * generator
This generator is automatically synced during synced context.