mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu
This commit is contained in:
parent
6228d634fb
commit
4e1f50035e
153 changed files with 3725 additions and 3625 deletions
|
@ -20,16 +20,14 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#ifndef L_NOISE_H_
|
||||
#define L_NOISE_H_
|
||||
|
||||
extern "C" {
|
||||
#include <lua.h>
|
||||
#include <lauxlib.h>
|
||||
}
|
||||
|
||||
#include "lua_api/l_base.h"
|
||||
#include "irr_v3d.h"
|
||||
#include "noise.h"
|
||||
|
||||
class LuaPerlinNoise
|
||||
{
|
||||
/*
|
||||
LuaPerlinNoise
|
||||
*/
|
||||
class LuaPerlinNoise : public ModApiBase {
|
||||
private:
|
||||
int seed;
|
||||
int octaves;
|
||||
|
@ -62,10 +60,9 @@ public:
|
|||
};
|
||||
|
||||
/*
|
||||
PerlinNoiseMap
|
||||
*/
|
||||
class LuaPerlinNoiseMap
|
||||
{
|
||||
LuaPerlinNoiseMap
|
||||
*/
|
||||
class LuaPerlinNoiseMap : public ModApiBase {
|
||||
private:
|
||||
Noise *noise;
|
||||
static const char className[];
|
||||
|
@ -95,10 +92,7 @@ public:
|
|||
/*
|
||||
LuaPseudoRandom
|
||||
*/
|
||||
|
||||
|
||||
class LuaPseudoRandom
|
||||
{
|
||||
class LuaPseudoRandom : public ModApiBase {
|
||||
private:
|
||||
PseudoRandom m_pseudo;
|
||||
|
||||
|
@ -130,6 +124,4 @@ public:
|
|||
static void Register(lua_State *L);
|
||||
};
|
||||
|
||||
NoiseParams *read_noiseparams(lua_State *L, int index);
|
||||
|
||||
#endif /* L_NOISE_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue