LeviLamina
Loading...
Searching...
No Matches
Cells.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/container/small_vector.h"
7#include "mc/deps/voxel_shapes/JoinOperation.h"
8#include "mc/platform/brstd/function_ref.h"
9
10// auto generated forward declare list
11// clang-format off
12namespace VoxelShapes { class AxesPermutation; }
13namespace VoxelShapes { class IndexMerger; }
14namespace VoxelShapes { struct SerializableCells; }
15// clang-format on
16
17namespace VoxelShapes {
18
19class Cells {
20public:
21 // member variables
22 // NOLINTBEGIN
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 Cells& operator=(Cells const&);
32 Cells(Cells const&);
33 Cells();
34
35public:
36 // member functions
37 // NOLINTBEGIN
38 MCNAPI void forEachBox(
40 void(schar, schar, schar, schar, schar, schar) const,
41 void(schar, schar, schar, schar, schar, schar)> consumer,
42 bool mergeNeighbors
43 ) const;
44
45 MCNAPI ::VoxelShapes::Cells& operator=(::VoxelShapes::Cells&&);
46
47 MCNAPI ::VoxelShapes::Cells reverseAxes(bool reverseX, bool reverseY, bool reverseZ) const;
48
49 MCNAPI ::VoxelShapes::Cells rotate(::VoxelShapes::AxesPermutation const& rotation) const;
50 // NOLINTEND
51
52public:
53 // static functions
54 // NOLINTBEGIN
55 MCNAPI static ::VoxelShapes::Cells fromSerializable(::VoxelShapes::SerializableCells const& serializable);
56
57 MCNAPI static ::VoxelShapes::Cells join(
58 ::VoxelShapes::Cells const& first,
59 ::VoxelShapes::Cells const& second,
60 ::VoxelShapes::IndexMerger const& xMerger,
61 ::VoxelShapes::IndexMerger const& yMerger,
62 ::VoxelShapes::IndexMerger const& zMerger,
63 ::VoxelShapes::JoinOperation operation
64 );
65 // NOLINTEND
66};
67
68} // namespace VoxelShapes
Definition AxesPermutation.h:12
Definition Cells.h:19
static MCAPI ::VoxelShapes::Cells fromSerializable(::VoxelShapes::SerializableCells const &serializable)
MCAPI::VoxelShapes::Cells & operator=(::VoxelShapes::Cells &&)
static MCAPI ::VoxelShapes::Cells join(::VoxelShapes::Cells const &first, ::VoxelShapes::Cells const &second, ::VoxelShapes::IndexMerger const &xMerger, ::VoxelShapes::IndexMerger const &yMerger, ::VoxelShapes::IndexMerger const &zMerger, ::VoxelShapes::JoinOperation operation)
MCAPI::VoxelShapes::Cells reverseAxes(bool reverseX, bool reverseY, bool reverseZ) const
MCAPI::VoxelShapes::Cells rotate(::VoxelShapes::AxesPermutation const &rotation) const
MCAPI void forEachBox(::brstd::function_ref< void(schar, schar, schar, schar, schar, schar) const, void(schar, schar, schar, schar, schar, schar)> consumer, bool mergeNeighbors) const
Definition IndexMerger.h:10
Definition function_ref.h:60
Definition SerializableCells.h:7
Definition Alias.h:14