LeviLamina
Loading...
Searching...
No Matches
EditorProjectRegionManagerServiceProvider.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/game_refs/WeakRef.h"
7#include "mc/deps/scripting/runtime/Result_deprecated.h"
8
9// auto generated forward declare list
10// clang-format off
11class Dimension;
12struct Bounds;
13struct DimensionType;
14namespace Bedrock::PubSub { class Subscription; }
15namespace Editor { class ProjectRegion; }
16namespace Editor { struct ProjectRegionConfig; }
17namespace Editor { struct ProjectRegionManagerChunkProcessingState; }
18namespace mce { class UUID; }
19// clang-format on
20
21namespace Editor::Services {
22
24public:
25 // virtual functions
26 // NOLINTBEGIN
28
29 virtual ::WeakRef<::Editor::ProjectRegion> createRegion(
30 ::Dimension& dimension,
32 ::std::optional<uint64> ownerId
33 ) = 0;
34
35 virtual ::std::vector<::WeakRef<::Editor::ProjectRegion>> getAllRegions() const = 0;
36
37 virtual ::Scripting::Result_deprecated<void> destroyRegion(::mce::UUID const& id) = 0;
38
39 virtual ::WeakRef<::Editor::ProjectRegion> getRegion(::mce::UUID const& id) const = 0;
40
41 virtual ::Scripting::Result_deprecated<void> regenerateRegion(
42 ::DimensionType dimensionType,
43 ::std::vector<::Bounds> const& boundsList,
44 bool regenerateWorldWithExcludedBounds
45 ) = 0;
46
47 virtual ::Scripting::Result_deprecated<void>
48 pruneRegion(::DimensionType dimensionType, ::std::vector<::Bounds> const& boundsList) = 0;
49
50 virtual bool isProcessingChunks() const = 0;
51
52 virtual ::std::optional<::Editor::ProjectRegionManagerChunkProcessingState> getChunkProcessingState() const = 0;
53
54 virtual ::Bedrock::PubSub::Subscription registerChunkProcessingChangeListener(
56 callback
57 ) = 0;
58 // NOLINTEND
59
60public:
61 // virtual function thunks
62 // NOLINTBEGIN
63
64 // NOLINTEND
65};
66
67} // namespace Editor::Services
Definition Subscription.h:10
Definition Dimension.h:89
Definition ProjectRegion.h:28
Definition EditorProjectRegionManagerServiceProvider.h:23
Definition Result_deprecated.h:8
Definition UUID.h:7
Definition Bounds.h:8
Definition DimensionType.h:5
Definition ProjectRegionConfig.h:7
Definition ProjectRegionManagerChunkProcessingState.h:7