LeviLamina
Loading...
Searching...
No Matches
ExtrudeUtils.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/editor/ContiguousSelectionType.h"
7#include "mc/legacy/facing/Name.h"
8
9// auto generated forward declare list
10// clang-format off
12class Player;
13class Vec3;
14// clang-format on
15
16namespace Editor::BlockUtils {
17
19public:
20 // static functions
21 // NOLINTBEGIN
22 MCNAPI static ::std::vector<::Vec3> GetFacePreviewPositions(
23 ::Player const& player,
24 int size,
25 ::Facing::Name const& selectionDirection,
26 ::Vec3 const& extrudeLocation,
27 bool checkForAdjacentFaceBlocks,
28 ::Editor::BlockUtils::ContiguousSelectionType const& contiguousSelectionType,
29 ::std::vector<::std::string> const& contiguousSelectionBlockList,
30 bool isShrink,
31 int layerCount
32 );
33
34 MCNAPI static ::CompoundBlockVolume generatePreviewExtrudePositions(
35 ::Player const& player,
36 ::CompoundBlockVolume& selection,
37 ::Facing::Name const& selectionDirection,
38 ::Editor::BlockUtils::ContiguousSelectionType const& contiguousSelectionType,
39 ::std::vector<::std::string> const& contiguousSelectionBlockList,
40 bool isShrink,
41 int layerCount
42 );
43
44 MCNAPI static void growSelection(
45 ::Player const& player,
46 ::CompoundBlockVolume& selection,
47 int layerCount,
48 ::Facing::Name const& selectionDirection
49 );
50
51 MCNAPI static void quickExtrude(
52 ::Player const& player,
53 int size,
54 ::Facing::Name const& selectionDirection,
55 ::Vec3 const& extrudeLocation,
56 bool checkForAdjacentFaceBlocks,
57 ::Editor::BlockUtils::ContiguousSelectionType const& contiguousSelectionType,
58 ::std::vector<::std::string> const& contiguousSelectionBlockList,
59 bool isGrowing,
60 int layerCount
61 );
62
63 MCNAPI static void shrinkSelection(
64 ::Player const& player,
65 ::CompoundBlockVolume& selection,
66 int layerCount,
67 ::Facing::Name const& selectionDirection,
68 ::Editor::BlockUtils::ContiguousSelectionType const& contiguousSelectionType,
69 ::std::vector<::std::string> const& contiguousSelectionBlockList
70 );
71 // NOLINTEND
72};
73
74} // namespace Editor::BlockUtils
Definition CompoundBlockVolume.h:16
Definition ExtrudeUtils.h:18
static MCAPI void quickExtrude(::Player const &player, int size, ::Facing::Name const &selectionDirection, ::Vec3 const &extrudeLocation, bool checkForAdjacentFaceBlocks, ::Editor::BlockUtils::ContiguousSelectionType const &contiguousSelectionType, ::std::vector<::std::string > const &contiguousSelectionBlockList, bool isGrowing, int layerCount)
static MCAPI ::std::vector<::Vec3 > GetFacePreviewPositions(::Player const &player, int size, ::Facing::Name const &selectionDirection, ::Vec3 const &extrudeLocation, bool checkForAdjacentFaceBlocks, ::Editor::BlockUtils::ContiguousSelectionType const &contiguousSelectionType, ::std::vector<::std::string > const &contiguousSelectionBlockList, bool isShrink, int layerCount)
static MCAPI void growSelection(::Player const &player, ::CompoundBlockVolume &selection, int layerCount, ::Facing::Name const &selectionDirection)
static MCAPI void shrinkSelection(::Player const &player, ::CompoundBlockVolume &selection, int layerCount, ::Facing::Name const &selectionDirection, ::Editor::BlockUtils::ContiguousSelectionType const &contiguousSelectionType, ::std::vector<::std::string > const &contiguousSelectionBlockList)
static MCAPI ::CompoundBlockVolume generatePreviewExtrudePositions(::Player const &player, ::CompoundBlockVolume &selection, ::Facing::Name const &selectionDirection, ::Editor::BlockUtils::ContiguousSelectionType const &contiguousSelectionType, ::std::vector<::std::string > const &contiguousSelectionBlockList, bool isShrink, int layerCount)
Definition Player.h:119
Definition Vec3.h:10