62 using LevelDataPublisherRefWrapper = ::std::reference_wrapper<
68 ::ll::TypedStorage<1, 5, ::AdventureSettings> mAdventureSettings;
69 ::ll::TypedStorage<8, 144, ::WorldTemplateLevelData> mWorldTemplateLevelData;
70 ::ll::TypedStorage<8, 192, ::GameRules> mGameRules;
71 ::ll::TypedStorage<8, 72, ::ExperimentStorage> mExperiments;
72 ::ll::TypedStorage<4, 240, ::Abilities> mDefaultAbilities;
73 ::ll::TypedStorage<8, 24, ::PermissionsHandler> mDefaultPermissions;
74 ::ll::TypedStorage<8, 32, ::std::string> mLevelName;
75 ::ll::TypedStorage<4, 4, ::StorageVersion> mStorageVersion;
76 ::ll::TypedStorage<8, 56, ::GameVersion> mMinCompatibleClientVersion;
77 ::ll::TypedStorage<4, 4, int> mNetworkVersion;
78 ::ll::TypedStorage<8, 24, ::SemVersion> mInventoryVersion;
79 ::ll::TypedStorage<8, 8, ::Tick> mCurrentTick;
80 ::ll::TypedStorage<1, 1, bool> mHasSpawnPos;
81 ::ll::TypedStorage<4, 12, ::BlockPos> mLimitedWorldOrigin;
82 ::ll::TypedStorage<4, 4, int> mOverworldTimeSetting;
83 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::WorldClockRegistry const>> mWorldClockRegistry;
84 ::ll::TypedStorage<8, 8, int64> mLastSaved;
85 ::ll::TypedStorage<4, 4, uint> mServerTickRange;
86 ::ll::TypedStorage<4, 4, float> mRainLevel;
87 ::ll::TypedStorage<4, 4, int> mRainTime;
88 ::ll::TypedStorage<4, 4, float> mLightningLevel;
89 ::ll::TypedStorage<4, 4, int> mLightningTime;
90 ::ll::TypedStorage<4, 4, int> mNetherScale;
91 ::ll::TypedStorage<8, 56, ::GameVersion> mLastOpenedWithVersion;
92 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::Difficulty> mGameDifficulty;
93 ::ll::TypedStorage<1, 1, bool> mForceGameType;
94 ::ll::TypedStorage<1, 1, bool> mIsHardcore;
95 ::ll::TypedStorage<1, 1, bool> mPlayerHasDied;
96 ::ll::TypedStorage<1, 1, bool> mSpawnMobs;
97 ::ll::TypedStorage<1, 1, bool> mAdventureModeOverridesEnabled;
98 ::ll::TypedStorage<8, 16, ::Json::Value> mFlatWorldOptions;
99 ::ll::TypedStorage<4, 4, uint> mWorldStartCount;
100 ::ll::TypedStorage<1, 1, bool> mAchievementsDisabled;
101 ::ll::TypedStorage<4, 4, ::Editor::WorldType> mEditorWorldType;
102 ::ll::TypedStorage<1, 1, bool> mAllowAnonymousBlockDropsInEditorWorlds;
103 ::ll::TypedStorage<4, 4, ::ServerEditorConnectionPolicy> mServerEditorConnectionPolicy;
104 ::ll::TypedStorage<1, 1, bool> mIsCreatedInEditor;
105 ::ll::TypedStorage<1, 1, bool> mIsExportedFromEditor;
106 ::ll::TypedStorage<1, 1, ::Editor::EditorLevelMigrationVersion> mEditorLevelMigrationVersion;
107 ::ll::TypedStorage<4, 4, ::EducationEditionOfferValue> mEducationEditionOffer;
108 ::ll::TypedStorage<8, 176, ::std::optional<::CloudSaveLevelInfo>> mCloudSaveInfo;
109 ::ll::TypedStorage<1, 1, bool> mEducationFeaturesEnabled;
110 ::ll::TypedStorage<1, 1, bool> mIsSingleUseWorld;
111 ::ll::TypedStorage<1, 1, bool> mConfirmedPlatformLockedContent;
112 ::ll::TypedStorage<1, 1, bool> mMultiplayerGameIntent;
113 ::ll::TypedStorage<1, 1, bool> mMultiplayerGame;
114 ::ll::TypedStorage<1, 1, bool> mLANBroadcastIntent;
115 ::ll::TypedStorage<1, 1, bool> mLANBroadcast;
116 ::ll::TypedStorage<4, 4, ::Social::GamePublishSetting> mXBLBroadcastIntent;
117 ::ll::TypedStorage<4, 4, ::Social::GamePublishSetting> mXBLBroadcastMode;
118 ::ll::TypedStorage<4, 4, ::Social::GamePublishSetting> mPlatformBroadcastIntent;
119 ::ll::TypedStorage<4, 4, ::Social::GamePublishSetting> mPlatformBroadcastMode;
120 ::ll::TypedStorage<1, 1, bool> mCheatsEnabled;
121 ::ll::TypedStorage<1, 1, bool> mCommandsEnabled;
122 ::ll::TypedStorage<1, 1, bool> mTexturePacksRequired;
123 ::ll::TypedStorage<1, 1, bool> mHasLockedBehaviorPack;
124 ::ll::TypedStorage<1, 1, bool> mHasLockedResourcePack;
125 ::ll::TypedStorage<1, 1, bool> mIsFromLockedTemplate;
126 ::ll::TypedStorage<1, 1, bool> mIsRandomSeedAllowed;
127 ::ll::TypedStorage<8, 32, ::std::string> mEducationProductId;
128 ::ll::TypedStorage<8, 32, ::std::string> mEducationCreatorId;
129 ::ll::TypedStorage<8, 32, ::std::string> mEducationCreatorWorldId;
130 ::ll::TypedStorage<8, 32, ::std::string> mEducationReferrerId;
131 ::ll::TypedStorage<1, 1, bool> mUseMsaGamertagsOnly;
132 ::ll::TypedStorage<1, 1, bool> mBonusChestEnabled;
133 ::ll::TypedStorage<1, 1, bool> mBonusChestSpawned;
134 ::ll::TypedStorage<1, 1, bool> mStartWithMapEnabled;
135 ::ll::TypedStorage<1, 1, bool> mMapsCenteredToOrigin;
136 ::ll::TypedStorage<1, 1, bool> mRequiresCopiedPackRemovalCheck;
137 ::ll::TypedStorage<1, 1, bool> mSpawnV1Villagers;
138 ::ll::TypedStorage<1, 1, bool> mPersonaDisabled;
139 ::ll::TypedStorage<1, 1, bool> mCustomSkinsDisabled;
140 ::ll::TypedStorage<1, 1, bool> mEmoteChatMuted;
141 ::ll::TypedStorage<1, 1, bool> mHasUncompleteWorldFileOnDisk;
142 ::ll::TypedStorage<1, 1, ::NetherWorldType> mNetherType;
143 ::ll::TypedStorage<8, 48, ::SpawnSettings> mSpawnSettings;
144 ::ll::TypedStorage<8, 64, ::std::unordered_map<::HashedString, ::LevelDataValue>> mValues;
145 ::ll::TypedStorage<8, 64, ::std::unordered_map<::HashedString, ::LevelDataValue>> mOverrides;
146 ::ll::TypedStorage<8, 32, ::std::string> mBiomeOverride;
147 ::ll::TypedStorage<4, 8, ::std::optional<::GeneratorType>> mDataDrivenGeneratorType;
148 ::ll::TypedStorage<1, 1, ::ChatRestrictionLevel> mChatRestrictionLevel;
153 mIsHardcoreSubscribers;
154 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnSaveLevelData;
161 ::std::less<::LevelDataProperty>,
162 ::std::vector<::LevelDataProperty>,
163 ::std::vector<::std::unique_ptr<
165 mLevelDataPropertiesPublishers;
166 ::ll::TypedStorage<4, 4, ::LevelDataType> mLevelDataType;
171 LevelData& operator=(LevelData
const&);
172 LevelData(LevelData
const&);
178 virtual ~LevelData() ;
180 virtual bool educationFeaturesEnabled()
const ;
182 virtual void setEducationFeaturesEnabled(
bool educationEnabled) ;
184 virtual bool isCodeBuilderEnabled()
const ;
186 virtual void setCodeBuilderEnabled(
bool codeBuilderEnabled) ;
188 virtual ::EducationEditionOffer getEducationEditionOffer()
const ;
190 virtual void setEducationEditionOffer(::EducationEditionOffer eduOffer) ;
200 MCNAPI
LevelData(
bool isEduMode, ::LevelDataType levelDataType);
204 ::std::string
const& levelName,
205 ::GeneratorType generatorVersion,
207 bool achievementsDisabled,
213 MCNAPI ::std::optional<::std::reference_wrapper<
215 _getLevelDataPropertyPublisher(::LevelDataProperty property)
const;
218 MCAPI ::LevelDataValue
const* _getValue(
::HashedString const& key)
const;
231 MCNAPI
void _resetDefaultAdvancedSettingsData(
bool isTrial);
233 MCNAPI
void _resetDefaultGeneralSettingsData();
235 MCNAPI
void _resetDefaultMultiplayerSettingsData(
bool isTrial);
237 MCNAPI
void _resetDefaultScriptingCodingSettingsData();
239 MCNAPI
void applyPolicyBasedSettings(
bool isTrialMode,
bool hasBehaviourPack);
242 MCAPI ::std::unique_ptr<::CompoundTag> createTag()
const;
246 MCAPI ::BaseGameVersion
const& getBaseGameVersion()
const;
252 MCAPI ::GeneratorType getGenerator()
const;
261 MCNAPI
bool isCloudSaveActiveForWorld()
const;
267 MCNAPI ::Bedrock::PubSub::Subscription registerIsHardcoreListener(::std::function<
void(
bool)> callback)
const;
269 MCNAPI ::Bedrock::PubSub::Subscription
270 registerLevelDataPropertyListener(::LevelDataProperty property, ::std::function<
void()> callback)
const;
276 MCNAPI
void resetDefaultCheatSettingsData();
278 MCNAPI
void resetSettingsForRandomSeed();
296 MCNAPI
void setFlatWorldPreset(::FlatWorldPresetID preset);
299 MCAPI
void setGameDifficulty(::SharedTypes::Legacy::Difficulty difficulty);
301 MCAPI
void setGameType(::GameType type);
317 MCAPI
void setSpawnPos(
::BlockPos const& spawn);
339 MCNAPI
void*
$ctor(::LevelData&& rhs);
343 MCNAPI
void*
$ctor(
bool isEduMode, ::LevelDataType levelDataType);
347 ::std::string
const& levelName,
348 ::GeneratorType generatorVersion,
350 bool achievementsDisabled,