3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/DirtyFlag.h"
7#include "mc/client/gui/GameEventNotification.h"
8#include "mc/client/gui/screens/controllers/BlockScreenController.h"
9#include "mc/deps/core/utility/pub_sub/Subscription.h"
10#include "mc/world/level/BlockPos.h"
11#include "mc/world/level/levelgen/structure/StructureEditorData.h"
12#include "mc/world/level/levelgen/structure/StructureTelemetryClientData.h"
22namespace Json {
class Value; }
28 enum class FilePickerType : uchar {
36 ::ll::TypedStorage<4, 12, ::BlockPos const> mBlockPos;
37 ::ll::TypedStorage<1, 1, bool> mAnimationModeDropdownActive;
38 ::ll::TypedStorage<1, 1, bool> mRedstoneDropdownActive;
39 ::ll::TypedStorage<1, 1, bool> mModeDropDownActive;
40 ::ll::TypedStorage<1, 1, bool> mTextBoxEditing;
41 ::ll::TypedStorage<1, 1, bool> mExportCompleted;
42 ::ll::TypedStorage<1, 1, bool> mExportSucceeded;
43 ::ll::TypedStorage<1, 1, bool> mRenderedStructure;
44 ::ll::TypedStorage<1, 1, bool> mIsExporting;
45 ::ll::TypedStorage<1, 1, bool> mIsImporting;
46 ::ll::TypedStorage<1, 1, bool> mNeedsBindsUpdate;
47 ::ll::TypedStorage<1, 1, bool> mMirrorX;
48 ::ll::TypedStorage<1, 1, bool> mMirrorZ;
49 ::ll::TypedStorage<1, 1, bool> mStructureExists;
50 ::ll::TypedStorage<1, 1, bool> mHasOpened;
51 ::ll::TypedStorage<1, 1, bool> mTrigger3dExport;
52 ::ll::TypedStorage<1, 1, bool const> m3DExportSupport;
53 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::MinecraftglTFExporter>> mglTFExporter;
54 ::ll::TypedStorage<8, 216, ::StructureEditorData> mStructureEditorData;
55 ::ll::TypedStorage<8, 8, ::StructureTemplate*> mImportingStructureTemplate;
56 ::ll::TypedStorage<4, 16, ::StructureTelemetryClientData> mTelemetryClientData;
57 ::ll::TypedStorage<8, 32, ::std::string> mAnimationTimeString;
58 ::ll::TypedStorage<8, 32, ::std::string> mSeedString;
59 ::ll::TypedStorage<1, 1, bool> mShouldUseFilteredMessage;
60 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mProfanityToggleSubscription;
65 StructureEditorScreenController();
70 virtual ~StructureEditorScreenController() =
default;
72 virtual void onOpen() ;
74 virtual void onLeave() ;
76 virtual ::ui::DirtyFlag tick() ;
78 virtual void addStaticScreenVars(::Json::Value& globalVars) ;
80 virtual ::ui::DirtyFlag handleGameEventNotification(::ui::GameEventNotification notification) ;
82 virtual ::std::string _getButtonADescription() ;
88 MCAPI StructureEditorScreenController(
89 ::std::shared_ptr<::ClientInstanceScreenModel> model,
91 ::BlockPos
const& pos,
92 ::ActorUniqueID uniqueId
95 MCAPI
void _filePicker(::StructureEditorScreenController::FilePickerType op);
97 MCAPI ::std::string _getTextEditValue(::TextEditScreenEventData& textEditEvent)
const;
99 MCAPI
void _initiateFileGeneration();
101 MCAPI
void _setSeedFromString();
107 MCAPI
static float _getTextEditValueAsFloat(::TextEditScreenEventData& textEditEvent);
109 MCAPI
static int _getTextEditValueAsInt(::TextEditScreenEventData& textEditEvent);
116 ::std::shared_ptr<::ClientInstanceScreenModel> model,
118 ::BlockPos
const& pos,
119 ::ActorUniqueID uniqueId
126 MCAPI
void $onOpen();
128 MCAPI
void $onLeave();
130 MCAPI ::ui::DirtyFlag $tick();
132 MCAPI
void $addStaticScreenVars(::Json::Value& globalVars);
134 MCAPI ::ui::DirtyFlag $handleGameEventNotification(::ui::GameEventNotification notification);
136 MCFOLD ::std::string $_getButtonADescription();
Definition BlockScreenController.h:5
Definition ClientInstanceScreenModel.h:5
Definition MinecraftglTFExporter.h:5
Definition StructureEditorScreenController.h:5
Definition StructureTemplate.h:34
Definition ActorUniqueID.h:5
Definition TextEditScreenEventData.h:5