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