mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add minetest.set_noiseparam_defaults() Lua API
This commit is contained in:
parent
c873164878
commit
3570f3e396
13 changed files with 368 additions and 270 deletions
|
@ -85,8 +85,11 @@ struct NoiseParams {
|
|||
|
||||
|
||||
// Convenience macros for getting/setting NoiseParams in Settings
|
||||
#define getNoiseParams(x, y) getStruct((x), "f,f,v3,s32,s32,f", &(y), sizeof(y))
|
||||
#define setNoiseParams(x, y) setStruct((x), "f,f,v3,s32,s32,f", &(y))
|
||||
|
||||
#define NOISEPARAMS_FMT_STR "f,f,v3,s32,s32,f"
|
||||
|
||||
#define getNoiseParams(x, y) getStruct((x), NOISEPARAMS_FMT_STR, &(y), sizeof(y))
|
||||
#define setNoiseParams(x, y) setStruct((x), NOISEPARAMS_FMT_STR, &(y))
|
||||
|
||||
class Noise {
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue