#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 chunk, int x, int y, int z); void add_meshes_to(Ref mesher, Ref chunk, int x, int y, int z); #endif #ifdef MODULE_TEXTURE_PACKER_ENABLED void add_textures_to(Ref packer); #endif GroundClutter(); ~GroundClutter(); private: static void _bind_methods(); private: }; #endif