57 using LevelDataPublisherRefWrapper = ::std::reference_wrapper<
63 ::ll::TypedStorage<1, 5, ::AdventureSettings> mAdventureSettings;
64 ::ll::TypedStorage<8, 144, ::WorldTemplateLevelData> mWorldTemplateLevelData;
65 ::ll::TypedStorage<8, 192, ::GameRules> mGameRules;
66 ::ll::TypedStorage<8, 72, ::ExperimentStorage> mExperiments;
67 ::ll::TypedStorage<4, 240, ::Abilities> mDefaultAbilities;
68 ::ll::TypedStorage<8, 24, ::PermissionsHandler> mDefaultPermissions;
69 ::ll::TypedStorage<8, 32, ::std::string> mLevelName;
70 ::ll::TypedStorage<4, 4, ::StorageVersion> mStorageVersion;
71 ::ll::TypedStorage<8, 56, ::GameVersion> mMinCompatibleClientVersion;
72 ::ll::TypedStorage<4, 4, int> mNetworkVersion;
73 ::ll::TypedStorage<8, 24, ::SemVersion> mInventoryVersion;
74 ::ll::TypedStorage<8, 8, ::Tick> mCurrentTick;
75 ::ll::TypedStorage<1, 1, bool> mHasSpawnPos;
76 ::ll::TypedStorage<4, 12, ::BlockPos> mLimitedWorldOrigin;
77 ::ll::TypedStorage<4, 4, int> mTime;
78 ::ll::TypedStorage<8, 8, int64> mLastSaved;
79 ::ll::TypedStorage<4, 4, uint> mServerTickRange;
80 ::ll::TypedStorage<4, 4, float> mRainLevel;
81 ::ll::TypedStorage<4, 4, int> mRainTime;
82 ::ll::TypedStorage<4, 4, float> mLightningLevel;
83 ::ll::TypedStorage<4, 4, int> mLightningTime;
84 ::ll::TypedStorage<4, 4, int> mNetherScale;
85 ::ll::TypedStorage<8, 56, ::GameVersion> mLastOpenedWithVersion;
86 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::Difficulty> mGameDifficulty;
87 ::ll::TypedStorage<1, 1, bool> mForceGameType;
88 ::ll::TypedStorage<1, 1, bool> mIsHardcore;
89 ::ll::TypedStorage<1, 1, bool> mPlayerHasDied;
90 ::ll::TypedStorage<1, 1, bool> mSpawnMobs;
91 ::ll::TypedStorage<1, 1, bool> mAdventureModeOverridesEnabled;
92 ::ll::TypedStorage<8, 16, ::Json::Value> mFlatWorldOptions;
93 ::ll::TypedStorage<4, 4, uint> mWorldStartCount;
94 ::ll::TypedStorage<1, 1, bool> mAchievementsDisabled;
95 ::ll::TypedStorage<4, 4, ::Editor::WorldType> mEditorWorldType;
96 ::ll::TypedStorage<1, 1, bool> mIsCreatedInEditor;
97 ::ll::TypedStorage<1, 1, bool> mIsExportedFromEditor;
98 ::ll::TypedStorage<4, 4, ::EducationEditionOfferValue> mEducationEditionOffer;
99 ::ll::TypedStorage<8, 176, ::std::optional<::CloudSaveLevelInfo>> mCloudSaveInfo;
100 ::ll::TypedStorage<1, 1, bool> mEducationFeaturesEnabled;
101 ::ll::TypedStorage<1, 1, bool> mIsSingleUseWorld;
102 ::ll::TypedStorage<1, 1, bool> mConfirmedPlatformLockedContent;
103 ::ll::TypedStorage<1, 1, bool> mMultiplayerGameIntent;
104 ::ll::TypedStorage<1, 1, bool> mMultiplayerGame;
105 ::ll::TypedStorage<1, 1, bool> mLANBroadcastIntent;
106 ::ll::TypedStorage<1, 1, bool> mLANBroadcast;
107 ::ll::TypedStorage<4, 4, ::Social::GamePublishSetting> mXBLBroadcastIntent;
108 ::ll::TypedStorage<4, 4, ::Social::GamePublishSetting> mXBLBroadcastMode;
109 ::ll::TypedStorage<4, 4, ::Social::GamePublishSetting> mPlatformBroadcastIntent;
110 ::ll::TypedStorage<4, 4, ::Social::GamePublishSetting> mPlatformBroadcastMode;
111 ::ll::TypedStorage<1, 1, bool> mCheatsEnabled;
112 ::ll::TypedStorage<1, 1, bool> mCommandsEnabled;
113 ::ll::TypedStorage<1, 1, bool> mTexturePacksRequired;
114 ::ll::TypedStorage<1, 1, bool> mHasLockedBehaviorPack;
115 ::ll::TypedStorage<1, 1, bool> mHasLockedResourcePack;
116 ::ll::TypedStorage<1, 1, bool> mIsFromLockedTemplate;
117 ::ll::TypedStorage<1, 1, bool> mIsRandomSeedAllowed;
118 ::ll::TypedStorage<8, 32, ::std::string> mEducationProductId;
119 ::ll::TypedStorage<8, 32, ::std::string> mEducationCreatorId;
120 ::ll::TypedStorage<8, 32, ::std::string> mEducationCreatorWorldId;
121 ::ll::TypedStorage<8, 32, ::std::string> mEducationReferrerId;
122 ::ll::TypedStorage<1, 1, bool> mUseMsaGamertagsOnly;
123 ::ll::TypedStorage<1, 1, bool> mBonusChestEnabled;
124 ::ll::TypedStorage<1, 1, bool> mBonusChestSpawned;
125 ::ll::TypedStorage<1, 1, bool> mStartWithMapEnabled;
126 ::ll::TypedStorage<1, 1, bool> mMapsCenteredToOrigin;
127 ::ll::TypedStorage<1, 1, bool> mRequiresCopiedPackRemovalCheck;
128 ::ll::TypedStorage<1, 1, bool> mSpawnV1Villagers;
129 ::ll::TypedStorage<1, 1, bool> mPersonaDisabled;
130 ::ll::TypedStorage<1, 1, bool> mCustomSkinsDisabled;
131 ::ll::TypedStorage<1, 1, bool> mEmoteChatMuted;
132 ::ll::TypedStorage<1, 1, bool> mUseAllowList;
133 ::ll::TypedStorage<1, 1, bool> mHasUncompleteWorldFileOnDisk;
134 ::ll::TypedStorage<1, 1, ::NetherWorldType> mNetherType;
135 ::ll::TypedStorage<8, 48, ::SpawnSettings> mSpawnSettings;
136 ::ll::TypedStorage<8, 64, ::std::unordered_map<::HashedString, ::LevelDataValue>> mValues;
137 ::ll::TypedStorage<8, 64, ::std::unordered_map<::HashedString, ::LevelDataValue>> mOverrides;
138 ::ll::TypedStorage<8, 32, ::std::string> mBiomeOverride;
139 ::ll::TypedStorage<4, 8, ::std::optional<::GeneratorType>> mDataDrivenGeneratorType;
140 ::ll::TypedStorage<1, 1, ::ChatRestrictionLevel> mChatRestrictionLevel;
145 mIsHardcoreSubscribers;
146 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnSaveLevelData;
153 ::std::less<::LevelDataProperty>,
154 ::std::vector<::LevelDataProperty>,
155 ::std::vector<::std::unique_ptr<
157 mLevelDataPropertiesPublishers;
158 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mExperienceWorldId;
163 LevelData& operator=(LevelData
const&);
164 LevelData(LevelData
const&);
170 MCAPI LevelData(::LevelData&&);
172 MCAPI
explicit LevelData(
bool isEduMode);
176 ::std::string
const& levelName,
177 ::GeneratorType generatorVersion,
179 bool achievementsDisabled,
180 ::EducationEditionOffer eduOffer,
185 MCAPI
void _determineMaxBaseGameVersion();
187 MCAPI
void _dispatchLevelDataPropertyPublisher(::LevelDataProperty property)
const;
189 MCAPI
void _initLevelDataPropertyPublishers();
192 MCAPI
void _resetDefaultAdvancedSettingsData(
bool isTrial);
194 MCAPI
void _resetDefaultGeneralSettingsData();
196 MCAPI
void _resetDefaultScriptingCodingSettingsData();
201 MCAPI
void _updateLimitedWorldOrigin(
::BlockPos const& pos);
203 MCAPI
bool achievementsWillBeDisabledOnLoad()
const;
206 MCAPI
void applyPolicyBasedSettings(
bool hasBehaviourPack);
209 MCAPI ::std::optional<::SemVersion> checkServerAuthOptOutVersion()
const;
212 MCAPI
void clearCloudSaveInfo();
215 MCAPI
bool cloudSaveForWorldIsEnabled()
const;
217 MCAPI ::std::unique_ptr<::CompoundTag> createTag()
const;
219 MCAPI
void disableAchievements();
221 MCAPI ::BaseGameVersion
const& getBaseGameVersion()
const;
224 MCAPI ::CloudSaveLevelInfo& getCloudSaveInfo();
227 MCAPI ::CompoundTag
const& getEduSharedUriResource()
const;
229 MCAPI ::std::string
const& getEducationOid()
const;
231 MCAPI ::GameType getGameType()
const;
233 MCAPI ::GeneratorType getGenerator()
const;
235 MCAPI ::LevelSeed64 getSeed()
const;
239 MCAPI ::WorldVersion getWorldVersion()
const;
241 MCAPI
bool isAlwaysDay()
const;
244 MCAPI
bool isEditionCompatible()
const;
247 MCAPI ::LevelData& operator=(::LevelData&&);
250 MCAPI ::Bedrock::PubSub::Subscription registerIsHardcoreListener(::std::function<
void(
bool)> callback)
const;
252 MCAPI ::Bedrock::PubSub::Subscription
253 registerLevelDataPropertyListener(::LevelDataProperty property, ::std::function<
void()> callback)
const;
259 MCAPI
void resetDefaultCheatSettingsData();
261 MCAPI
void resetSettingsForRandomSeed();
263 MCAPI
void resetToDefaultSettings();
268 MCAPI
void setBiomeOverride(::std::string
const& biomeName);
270 MCAPI
void setCommandsEnabled(
bool commandsEnabled);
272 MCAPI
void setDaylightCycle(::DaylightCycle daylightCycle);
276 MCAPI
void setEducationEditionOffer(::EducationEditionOffer offer);
278 MCAPI
void setEducationFeaturesEnabled(
bool educationEnabled);
280 MCAPI
void setEducationOid(::std::string
const& educationOid);
283 MCAPI
void setExperienceWorldId(::std::string
const& experienceWorldId);
286 MCAPI
void setFlatWorldOptions(
::Json::Value const& options);
288 MCAPI
void setFlatWorldPreset(::FlatWorldPresetID preset);
290 MCAPI
void setGameDifficulty(::SharedTypes::Legacy::Difficulty difficulty);
292 MCAPI
void setGameType(::GameType type);
294 MCAPI
void setGenerator(::GeneratorType version);
296 MCAPI
void setIsHardcore(
bool value);
298 MCAPI
void setLevelName(::std::string
const& levelName);
303 MCAPI
void setServerChunkTickRange(uint newRange);
306 MCAPI
void setSpawnPos(
::BlockPos const& spawn);
314 MCAPI
void setTime(
int time);
317 MCAPI
void setWorldTemplateIdentity(
::PackIdVersion const& packIdVersion);
319 MCAPI
void setWorldTemplateOptionLocked(
bool isLocked);
322 MCAPI
void setWorldVersion(::WorldVersion version);
325 MCAPI
bool shouldAchievementsBeDisabled(
bool isTrialMode,
bool hasBehaviourPack)
const;
336 MCAPI
void* $ctor(::LevelData&&);
338 MCAPI
void* $ctor(
bool isEduMode);
342 ::std::string
const& levelName,
343 ::GeneratorType generatorVersion,
345 bool achievementsDisabled,
346 ::EducationEditionOffer eduOffer,