mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-21 11:26:53 +01:00
44 lines
820 B
C++
44 lines
820 B
C++
#ifndef GROUND_CLUTTER_H
|
|
#define GROUND_CLUTTER_H
|
|
|
|
|
|
#include "core/object/resource.h"
|
|
|
|
#include "modules/modules_enabled.gen.h"
|
|
|
|
#ifdef MODULE_TEXTURE_PACKER_ENABLED
|
|
#include "../../texture_packer/texture_packer.h"
|
|
#endif
|
|
|
|
#ifdef MODULE_VOXELMAN_ENABLED
|
|
#include "../../voxelman/meshers/voxel_mesher.h"
|
|
#endif
|
|
|
|
class VoxelChunk;
|
|
class VoxelMesher;
|
|
|
|
class GroundClutter : public Resource {
|
|
GDCLASS(GroundClutter, Resource);
|
|
|
|
public:
|
|
#ifdef MODULE_VOXELMAN_ENABLED
|
|
bool should_spawn(Ref<VoxelChunk> chunk, int x, int y, int z);
|
|
|
|
void add_meshes_to(Ref<VoxelMesher> mesher, Ref<VoxelChunk> chunk, int x, int y, int z);
|
|
#endif
|
|
|
|
#ifdef MODULE_TEXTURE_PACKER_ENABLED
|
|
void add_textures_to(Ref<TexturePacker> packer);
|
|
#endif
|
|
|
|
GroundClutter();
|
|
~GroundClutter();
|
|
|
|
private:
|
|
static void _bind_methods();
|
|
|
|
private:
|
|
};
|
|
|
|
#endif
|