60 using LevelDataPublisherRefWrapper = ::std::reference_wrapper<
66 ::ll::TypedStorage<1, 5, ::AdventureSettings> mAdventureSettings;
67 ::ll::TypedStorage<8, 144, ::WorldTemplateLevelData> mWorldTemplateLevelData;
68 ::ll::TypedStorage<8, 192, ::GameRules> mGameRules;
69 ::ll::TypedStorage<8, 72, ::ExperimentStorage> mExperiments;
70 ::ll::TypedStorage<4, 240, ::Abilities> mDefaultAbilities;
71 ::ll::TypedStorage<8, 24, ::PermissionsHandler> mDefaultPermissions;
72 ::ll::TypedStorage<8, 32, ::std::string> mLevelName;
73 ::ll::TypedStorage<4, 4, ::StorageVersion> mStorageVersion;
74 ::ll::TypedStorage<8, 56, ::GameVersion> mMinCompatibleClientVersion;
75 ::ll::TypedStorage<4, 4, int> mNetworkVersion;
76 ::ll::TypedStorage<8, 24, ::SemVersion> mInventoryVersion;
77 ::ll::TypedStorage<8, 8, ::Tick> mCurrentTick;
78 ::ll::TypedStorage<1, 1, bool> mHasSpawnPos;
79 ::ll::TypedStorage<4, 12, ::BlockPos> mLimitedWorldOrigin;
80 ::ll::TypedStorage<4, 4, int> mOverworldTimeSetting;
81 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::WorldClockRegistry const>> mWorldClockRegistry;
82 ::ll::TypedStorage<8, 8, int64> mLastSaved;
83 ::ll::TypedStorage<4, 4, uint> mServerTickRange;
84 ::ll::TypedStorage<4, 4, float> mRainLevel;
85 ::ll::TypedStorage<4, 4, int> mRainTime;
86 ::ll::TypedStorage<4, 4, float> mLightningLevel;
87 ::ll::TypedStorage<4, 4, int> mLightningTime;
88 ::ll::TypedStorage<4, 4, int> mNetherScale;
89 ::ll::TypedStorage<8, 56, ::GameVersion> mLastOpenedWithVersion;
90 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::Difficulty> mGameDifficulty;
91 ::ll::TypedStorage<1, 1, bool> mForceGameType;
92 ::ll::TypedStorage<1, 1, bool> mIsHardcore;
93 ::ll::TypedStorage<1, 1, bool> mPlayerHasDied;
94 ::ll::TypedStorage<1, 1, bool> mSpawnMobs;
95 ::ll::TypedStorage<1, 1, bool> mAdventureModeOverridesEnabled;
96 ::ll::TypedStorage<8, 16, ::Json::Value> mFlatWorldOptions;
97 ::ll::TypedStorage<4, 4, uint> mWorldStartCount;
98 ::ll::TypedStorage<1, 1, bool> mAchievementsDisabled;
99 ::ll::TypedStorage<4, 4, ::Editor::WorldType> mEditorWorldType;
100 ::ll::TypedStorage<1, 1, bool> mAllowAnonymousBlockDropsInEditorWorlds;
101 ::ll::TypedStorage<4, 4, ::ServerEditorConnectionPolicy> mServerEditorConnectionPolicy;
102 ::ll::TypedStorage<1, 1, bool> mIsCreatedInEditor;
103 ::ll::TypedStorage<1, 1, bool> mIsExportedFromEditor;
104 ::ll::TypedStorage<4, 4, ::EducationEditionOfferValue> mEducationEditionOffer;
105 ::ll::TypedStorage<8, 176, ::std::optional<::CloudSaveLevelInfo>> mCloudSaveInfo;
106 ::ll::TypedStorage<1, 1, bool> mEducationFeaturesEnabled;
107 ::ll::TypedStorage<1, 1, bool> mIsSingleUseWorld;
108 ::ll::TypedStorage<1, 1, bool> mConfirmedPlatformLockedContent;
109 ::ll::TypedStorage<1, 1, bool> mMultiplayerGameIntent;
110 ::ll::TypedStorage<1, 1, bool> mMultiplayerGame;
111 ::ll::TypedStorage<1, 1, bool> mLANBroadcastIntent;
112 ::ll::TypedStorage<1, 1, bool> mLANBroadcast;
113 ::ll::TypedStorage<4, 4, ::Social::GamePublishSetting> mXBLBroadcastIntent;
114 ::ll::TypedStorage<4, 4, ::Social::GamePublishSetting> mXBLBroadcastMode;
115 ::ll::TypedStorage<4, 4, ::Social::GamePublishSetting> mPlatformBroadcastIntent;
116 ::ll::TypedStorage<4, 4, ::Social::GamePublishSetting> mPlatformBroadcastMode;
117 ::ll::TypedStorage<1, 1, bool> mCheatsEnabled;
118 ::ll::TypedStorage<1, 1, bool> mCommandsEnabled;
119 ::ll::TypedStorage<1, 1, bool> mTexturePacksRequired;
120 ::ll::TypedStorage<1, 1, bool> mHasLockedBehaviorPack;
121 ::ll::TypedStorage<1, 1, bool> mHasLockedResourcePack;
122 ::ll::TypedStorage<1, 1, bool> mIsFromLockedTemplate;
123 ::ll::TypedStorage<1, 1, bool> mIsRandomSeedAllowed;
124 ::ll::TypedStorage<8, 32, ::std::string> mEducationProductId;
125 ::ll::TypedStorage<8, 32, ::std::string> mEducationCreatorId;
126 ::ll::TypedStorage<8, 32, ::std::string> mEducationCreatorWorldId;
127 ::ll::TypedStorage<8, 32, ::std::string> mEducationReferrerId;
128 ::ll::TypedStorage<1, 1, bool> mUseMsaGamertagsOnly;
129 ::ll::TypedStorage<1, 1, bool> mBonusChestEnabled;
130 ::ll::TypedStorage<1, 1, bool> mBonusChestSpawned;
131 ::ll::TypedStorage<1, 1, bool> mStartWithMapEnabled;
132 ::ll::TypedStorage<1, 1, bool> mMapsCenteredToOrigin;
133 ::ll::TypedStorage<1, 1, bool> mRequiresCopiedPackRemovalCheck;
134 ::ll::TypedStorage<1, 1, bool> mSpawnV1Villagers;
135 ::ll::TypedStorage<1, 1, bool> mPersonaDisabled;
136 ::ll::TypedStorage<1, 1, bool> mCustomSkinsDisabled;
137 ::ll::TypedStorage<1, 1, bool> mEmoteChatMuted;
138 ::ll::TypedStorage<1, 1, bool> mHasUncompleteWorldFileOnDisk;
139 ::ll::TypedStorage<1, 1, ::NetherWorldType> mNetherType;
140 ::ll::TypedStorage<8, 48, ::SpawnSettings> mSpawnSettings;
141 ::ll::TypedStorage<8, 64, ::std::unordered_map<::HashedString, ::LevelDataValue>> mValues;
142 ::ll::TypedStorage<8, 64, ::std::unordered_map<::HashedString, ::LevelDataValue>> mOverrides;
143 ::ll::TypedStorage<8, 32, ::std::string> mBiomeOverride;
144 ::ll::TypedStorage<4, 8, ::std::optional<::GeneratorType>> mDataDrivenGeneratorType;
145 ::ll::TypedStorage<1, 1, ::ChatRestrictionLevel> mChatRestrictionLevel;
150 mIsHardcoreSubscribers;
151 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnSaveLevelData;
158 ::std::less<::LevelDataProperty>,
159 ::std::vector<::LevelDataProperty>,
160 ::std::vector<::std::unique_ptr<
162 mLevelDataPropertiesPublishers;
163 ::ll::TypedStorage<4, 4, ::LevelDataType> mLevelDataType;
168 LevelData& operator=(LevelData
const&);
169 LevelData(LevelData
const&);
175 MCAPI LevelData(::LevelData&& rhs);
179 MCAPI LevelData(
bool isEduMode, ::LevelDataType levelDataType);
183 ::std::string
const& levelName,
184 ::GeneratorType generatorVersion,
186 bool achievementsDisabled,
187 ::EducationEditionOffer eduOffer,
193 MCAPI ::std::optional<::std::reference_wrapper<
195 _getLevelDataPropertyPublisher(::LevelDataProperty property)
const;
198 MCFOLD ::LevelDataValue
const* _getValue(
::HashedString const& key)
const;
202 MCAPI
void _initLevelDataPropertyPublishers();
205 MCAPI
void _resetDefaultAdvancedSettingsData(
bool isTrial);
207 MCAPI
void _resetDefaultGeneralSettingsData();
209 MCAPI
void _resetDefaultMultiplayerSettingsData(
bool isTrial);
211 MCAPI
void _resetDefaultScriptingCodingSettingsData();
213 MCAPI
void applyPolicyBasedSettings(
bool hasBehaviourPack);
216 MCAPI ::std::unique_ptr<::CompoundTag> createTag()
const;
218 MCAPI
void disableAchievements();
220 MCAPI ::BaseGameVersion
const& getBaseGameVersion()
const;
222 MCAPI ::std::string
const getBiomeOverride()
const;
224 MCAPI ::CompoundTag
const& getEduSharedUriResource()
const;
226 MCAPI ::GeneratorType getGenerator()
const;
230 MCAPI
bool hasCloudSaveAssociation()
const;
233 MCAPI
bool isCloudSaveActiveForWorld()
const;
235 MCAPI
bool isEditionCompatible()
const;
237 MCAPI ::LevelData& operator=(::LevelData&& rhs);
239 MCAPI ::Bedrock::PubSub::Subscription registerIsHardcoreListener(::std::function<
void(
bool)> callback)
const;
241 MCAPI ::Bedrock::PubSub::Subscription
242 registerLevelDataPropertyListener(::LevelDataProperty property, ::std::function<
void()> callback)
const;
248 MCAPI
void resetDefaultCheatSettingsData();
250 MCAPI
void resetSettingsForRandomSeed();
253 MCAPI
void setBiomeOverride(::std::string
const& biomeName);
255 MCAPI
void setCheatsEnabled(
bool cheatsEnabled);
261 MCAPI
void setCommandsEnabled(
bool commandsEnabled);
263 MCAPI
void setDaylightCycle(::DaylightCycle daylightCycle);
267 MCAPI
void setEducationFeaturesEnabled(
bool educationEnabled);
270 MCAPI
void setFlatWorldPreset(::FlatWorldPresetID preset);
273 MCAPI
void setGameDifficulty(::SharedTypes::Legacy::Difficulty difficulty);
275 MCAPI
void setGameType(::GameType type);
277 MCAPI
void setGenerator(::GeneratorType version);
279 MCAPI
void setIsHardcore(
bool value);
281 MCAPI
void setLevelName(::std::string
const& levelName);
283 MCAPI
void setMessUserId(::std::string
const& messUserId);
285 MCAPI
void setOverworldTimeSetting(
int time);
289 MCAPI
void setServerChunkTickRange(uint newRange);
291 MCAPI
void setSpawnPos(
::BlockPos const& spawn);
297 MCAPI
void setWorldTemplateOptionLocked(
bool isLocked);
299 MCAPI
void setWorldVersion(::WorldVersion version);
302 MCAPI
bool shouldAchievementsBeDisabled(
bool isTrialMode,
bool hasBehaviourPack)
const;
305 MCAPI
void touchLastLoadedWithVersion();
317 MCAPI
void* $ctor(::LevelData&& rhs);
321 MCAPI
void* $ctor(
bool isEduMode, ::LevelDataType levelDataType);
325 ::std::string
const& levelName,
326 ::GeneratorType generatorVersion,
328 bool achievementsDisabled,
329 ::EducationEditionOffer eduOffer,