HeightGenerator
classTerrain height built from a stack of noises
- 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.
Functions
HeightGenerator:add_noise(noise)
Add a noise generator to the height generator
| noise | NoiseGenerator | Noise generator to add |
Standard members (5)
Every class of this kind carries these.
| HeightGenerator.cast(object) | Trying to cast Object into HeightGenerator |
| HeightGenerator.get_class() | Return HeightGenerator class object |
| HeightGenerator.find(name) | Looks HeightGenerator up in db, nil when there is none |
| HeightGenerator.get(name) | Takes HeightGenerator from db, reports a miss to the log |
| HeightGenerator.reg(name) load-only | Register a new HeightGenerator static object |
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
Used by
- LuaWorldGenerator.height field