1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-22 17:18:39 +00:00

Add Ore infrastructure and l_register_ore()

This commit is contained in:
kwolekr 2013-03-24 01:43:38 -04:00
parent f70378f7f5
commit 57cbb8bfd8
10 changed files with 248 additions and 17 deletions

View file

@ -269,6 +269,7 @@ NoiseParams *read_noiseparams(lua_State *L, int index)
np->scale = getfloatfield_default(L, index, "scale", 0.0);
lua_getfield(L, index, "spread");
np->spread = read_v3f(L, -1);
lua_pop(L, 1);
np->seed = getintfield_default(L, index, "seed", 0);
np->octaves = getintfield_default(L, index, "octaves", 0);
np->persist = getfloatfield_default(L, index, "persist", 0.0);
@ -276,6 +277,7 @@ NoiseParams *read_noiseparams(lua_State *L, int index)
return np;
}
/*
LuaPseudoRandom
*/