LuaWorldGenerator
classWorld generator assembled from Lua defined biomes and heights
- load-only Usable only while mods load. The game seals these members once loading finishes, so a call or a write from a running world raises an error.
Fields
| Name | Type | Description | |
|---|---|---|---|
| biome_family | BiomeFamily | Biome family selecting the surface biome | |
| height | HeightGenerator | Height generator for the terrain surface | |
Standard members (5)
These members are available on all classes of this kind.
| LuaWorldGenerator.cast(object) | Trying to cast Object into LuaWorldGenerator |
| LuaWorldGenerator.get_class() | Return LuaWorldGenerator class object |
| LuaWorldGenerator.find(name) | Looks LuaWorldGenerator up in db, nil when there is none |
| LuaWorldGenerator.get(name) | Takes LuaWorldGenerator from db, reports a miss to the log |
| LuaWorldGenerator.reg(name, spec) load-only | Register a new LuaWorldGenerator static object, or take the registered one of that name |
Inherited from WorldGenerator (3)
- ore_list Ore deposits this world places; its nearest tier is seeded around the spawn
- stone_source Item a drill takes anywhere away from a deposit
- water_source Fluid a pump takes anywhere away from a deposit
Inherited from Prototype (2)
- name read-only Object name
- Prototype:is_valid() Returns false once the underlying engine object has been destroyed
Inherited from Object (1)
- Object:get_class() Class of this object