2022-01-31 21:23:39 +00:00
|
|
|
#ifndef VOXEL_DATA_BLOCK_ENTER_INFO_H
|
|
|
|
#define VOXEL_DATA_BLOCK_ENTER_INFO_H
|
|
|
|
|
|
|
|
#include <core/object/ref_counted.h>
|
|
|
|
|
|
|
|
namespace zylann::voxel {
|
|
|
|
|
|
|
|
class VoxelDataBlock;
|
2022-02-15 21:49:20 +00:00
|
|
|
|
|
|
|
namespace gd {
|
2022-01-31 21:23:39 +00:00
|
|
|
class VoxelBuffer;
|
2022-02-15 21:49:20 +00:00
|
|
|
}
|
2022-01-31 21:23:39 +00:00
|
|
|
|
|
|
|
// Information sent with data block entering notifications.
|
|
|
|
// It is a class for script API convenience.
|
|
|
|
// You may neither create this object on your own, nor keep a reference to it.
|
|
|
|
class VoxelDataBlockEnterInfo : public Object {
|
|
|
|
GDCLASS(VoxelDataBlockEnterInfo, Object)
|
|
|
|
public:
|
|
|
|
int network_peer_id = -1;
|
2022-06-04 02:44:00 +01:00
|
|
|
Vector3i block_position;
|
2022-01-31 21:23:39 +00:00
|
|
|
VoxelDataBlock *voxel_block = nullptr;
|
|
|
|
|
|
|
|
private:
|
|
|
|
int _b_get_network_peer_id() const;
|
2022-02-15 21:49:20 +00:00
|
|
|
Ref<gd::VoxelBuffer> _b_get_voxels() const;
|
2022-01-31 21:23:39 +00:00
|
|
|
Vector3i _b_get_position() const;
|
|
|
|
int _b_get_lod_index() const;
|
|
|
|
bool _b_are_voxels_edited() const;
|
|
|
|
//int _b_viewer_id() const;
|
|
|
|
|
|
|
|
static void _bind_methods();
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace zylann::voxel
|
|
|
|
|
|
|
|
#endif // VOXEL_DATA_BLOCK_ENTER_INFO_H
|