LeviLamina
Loading...
Searching...
No Matches
LevelData.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/GameVersion.h"
7#include "mc/common/editor/WorldType.h"
8#include "mc/config/ChatRestrictionLevel.h"
9#include "mc/deps/core/sem_ver/SemVersion.h"
10#include "mc/deps/core/string/HashedString.h"
11#include "mc/deps/core/utility/pub_sub/Publisher.h"
12#include "mc/deps/core/utility/pub_sub/Subscription.h"
13#include "mc/deps/json/Value.h"
14#include "mc/deps/shared_types/legacy/Difficulty.h"
15#include "mc/network/GamePublishSetting.h"
16#include "mc/options/EducationEditionOffer.h"
17#include "mc/options/EducationEditionOfferValue.h"
18#include "mc/platform/brstd/flat_map.h"
19#include "mc/world/actor/player/Abilities.h"
20#include "mc/world/actor/player/PermissionsHandler.h"
21#include "mc/world/level/BlockPos.h"
22#include "mc/world/level/DaylightCycle.h"
23#include "mc/world/level/GameType.h"
24#include "mc/world/level/GeneratorType.h"
25#include "mc/world/level/NetherWorldType.h"
26#include "mc/world/level/SpawnSettings.h"
27#include "mc/world/level/Tick.h"
28#include "mc/world/level/WorldVersion.h"
29#include "mc/world/level/levelgen/flat/FlatWorldPresetID.h"
30#include "mc/world/level/storage/AdventureSettings.h"
31#include "mc/world/level/storage/CloudSaveLevelInfo.h"
32#include "mc/world/level/storage/ExperimentStorage.h"
33#include "mc/world/level/storage/GameRules.h"
34#include "mc/world/level/storage/LevelDataProperty.h"
35#include "mc/world/level/storage/StorageVersion.h"
36#include "mc/world/level/storage/WorldTemplateLevelData.h"
37
38// auto generated forward declare list
39// clang-format off
40class BaseGameVersion;
41class CompoundTag;
42class ContentIdentity;
43class Experiments;
45class LevelSeed64;
46class LevelSettings;
48struct GameRuleId;
49struct LevelDataValue;
50struct PackIdVersion;
51namespace Bedrock::PubSub::ThreadModel { struct SingleThreaded; }
52namespace RakNet { class BitStream; }
53// clang-format on
54
55class LevelData {
56public:
57 // LevelData inner types define
59
60 using LevelDataPublisherRefWrapper = ::std::reference_wrapper<
62
63public:
64 // member variables
65 // NOLINTBEGIN
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> mTime;
81 ::ll::TypedStorage<8, 8, int64> mLastSaved;
82 ::ll::TypedStorage<4, 4, uint> mServerTickRange;
83 ::ll::TypedStorage<4, 4, float> mRainLevel;
84 ::ll::TypedStorage<4, 4, int> mRainTime;
85 ::ll::TypedStorage<4, 4, float> mLightningLevel;
86 ::ll::TypedStorage<4, 4, int> mLightningTime;
87 ::ll::TypedStorage<4, 4, int> mNetherScale;
88 ::ll::TypedStorage<8, 56, ::GameVersion> mLastOpenedWithVersion;
89 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::Difficulty> mGameDifficulty;
90 ::ll::TypedStorage<1, 1, bool> mForceGameType;
91 ::ll::TypedStorage<1, 1, bool> mIsHardcore;
92 ::ll::TypedStorage<1, 1, bool> mPlayerHasDied;
93 ::ll::TypedStorage<1, 1, bool> mSpawnMobs;
94 ::ll::TypedStorage<1, 1, bool> mAdventureModeOverridesEnabled;
95 ::ll::TypedStorage<8, 16, ::Json::Value> mFlatWorldOptions;
96 ::ll::TypedStorage<4, 4, uint> mWorldStartCount;
97 ::ll::TypedStorage<1, 1, bool> mAchievementsDisabled;
98 ::ll::TypedStorage<4, 4, ::Editor::WorldType> mEditorWorldType;
99 ::ll::TypedStorage<1, 1, bool> mIsCreatedInEditor;
100 ::ll::TypedStorage<1, 1, bool> mIsExportedFromEditor;
101 ::ll::TypedStorage<4, 4, ::EducationEditionOfferValue> mEducationEditionOffer;
102 ::ll::TypedStorage<8, 176, ::std::optional<::CloudSaveLevelInfo>> mCloudSaveInfo;
103 ::ll::TypedStorage<1, 1, bool> mEducationFeaturesEnabled;
104 ::ll::TypedStorage<1, 1, bool> mIsSingleUseWorld;
105 ::ll::TypedStorage<1, 1, bool> mConfirmedPlatformLockedContent;
106 ::ll::TypedStorage<1, 1, bool> mMultiplayerGameIntent;
107 ::ll::TypedStorage<1, 1, bool> mMultiplayerGame;
108 ::ll::TypedStorage<1, 1, bool> mLANBroadcastIntent;
109 ::ll::TypedStorage<1, 1, bool> mLANBroadcast;
110 ::ll::TypedStorage<4, 4, ::Social::GamePublishSetting> mXBLBroadcastIntent;
111 ::ll::TypedStorage<4, 4, ::Social::GamePublishSetting> mXBLBroadcastMode;
112 ::ll::TypedStorage<4, 4, ::Social::GamePublishSetting> mPlatformBroadcastIntent;
113 ::ll::TypedStorage<4, 4, ::Social::GamePublishSetting> mPlatformBroadcastMode;
114 ::ll::TypedStorage<1, 1, bool> mCheatsEnabled;
115 ::ll::TypedStorage<1, 1, bool> mCommandsEnabled;
116 ::ll::TypedStorage<1, 1, bool> mTexturePacksRequired;
117 ::ll::TypedStorage<1, 1, bool> mHasLockedBehaviorPack;
118 ::ll::TypedStorage<1, 1, bool> mHasLockedResourcePack;
119 ::ll::TypedStorage<1, 1, bool> mIsFromLockedTemplate;
120 ::ll::TypedStorage<1, 1, bool> mIsRandomSeedAllowed;
121 ::ll::TypedStorage<8, 32, ::std::string> mEducationProductId;
122 ::ll::TypedStorage<8, 32, ::std::string> mEducationCreatorId;
123 ::ll::TypedStorage<8, 32, ::std::string> mEducationCreatorWorldId;
124 ::ll::TypedStorage<8, 32, ::std::string> mEducationReferrerId;
125 ::ll::TypedStorage<1, 1, bool> mUseMsaGamertagsOnly;
126 ::ll::TypedStorage<1, 1, bool> mBonusChestEnabled;
127 ::ll::TypedStorage<1, 1, bool> mBonusChestSpawned;
128 ::ll::TypedStorage<1, 1, bool> mStartWithMapEnabled;
129 ::ll::TypedStorage<1, 1, bool> mMapsCenteredToOrigin;
130 ::ll::TypedStorage<1, 1, bool> mRequiresCopiedPackRemovalCheck;
131 ::ll::TypedStorage<1, 1, bool> mSpawnV1Villagers;
132 ::ll::TypedStorage<1, 1, bool> mPersonaDisabled;
133 ::ll::TypedStorage<1, 1, bool> mCustomSkinsDisabled;
134 ::ll::TypedStorage<1, 1, bool> mEmoteChatMuted;
135 ::ll::TypedStorage<1, 1, bool> mUseAllowList;
136 ::ll::TypedStorage<1, 1, bool> mHasUncompleteWorldFileOnDisk;
137 ::ll::TypedStorage<1, 1, ::NetherWorldType> mNetherType;
138 ::ll::TypedStorage<8, 48, ::SpawnSettings> mSpawnSettings;
139 ::ll::TypedStorage<8, 64, ::std::unordered_map<::HashedString, ::LevelDataValue>> mValues;
140 ::ll::TypedStorage<8, 64, ::std::unordered_map<::HashedString, ::LevelDataValue>> mOverrides;
141 ::ll::TypedStorage<8, 32, ::std::string> mBiomeOverride;
142 ::ll::TypedStorage<4, 8, ::std::optional<::GeneratorType>> mDataDrivenGeneratorType;
143 ::ll::TypedStorage<1, 1, ::ChatRestrictionLevel> mChatRestrictionLevel;
144 ::ll::TypedStorage<
145 8,
146 8,
148 mIsHardcoreSubscribers;
149 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnSaveLevelData;
150 ::ll::TypedStorage<
151 8,
152 48,
154 ::LevelDataProperty,
156 ::std::less<::LevelDataProperty>,
157 ::std::vector<::LevelDataProperty>,
158 ::std::vector<::std::unique_ptr<
160 mLevelDataPropertiesPublishers;
161 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mExperienceWorldId;
162 // NOLINTEND
163
164public:
165 // prevent constructor by default
166 LevelData& operator=(LevelData const&);
167 LevelData(LevelData const&);
168 LevelData();
169
170public:
171 // member functions
172 // NOLINTBEGIN
173 MCAPI explicit LevelData(bool isEduMode);
174
175 MCAPI LevelData(::LevelData&& rhs);
176
177 MCAPI LevelData(
178 ::LevelSettings const& settings,
179 ::std::string const& levelName,
180 ::GeneratorType generatorVersion,
181 ::BlockPos const& defaultSpawn,
182 bool achievementsDisabled,
183 ::EducationEditionOffer eduOffer,
184 float rainLevel,
185 float lightningLevel
186 );
187
188#ifdef LL_PLAT_C
189 MCAPI ::std::optional<::std::reference_wrapper<
191 _getLevelDataPropertyPublisher(::LevelDataProperty property) const;
192#endif
193
194 MCFOLD ::LevelDataValue const* _getValue(::HashedString const& key) const;
195
196 MCFOLD ::LevelDataValue* _getValue(::HashedString const& key);
197
198 MCAPI void _initLevelDataPropertyPublishers();
199
200#ifdef LL_PLAT_C
201 MCAPI void _resetDefaultAdvancedSettingsData(bool isTrial);
202
203 MCAPI void _resetDefaultGeneralSettingsData();
204
205 MCAPI void _resetDefaultMultiplayerSettingsData(bool isTrial);
206
207 MCAPI void _resetDefaultScriptingCodingSettingsData();
208#endif
209
210 MCAPI bool achievementsWillBeDisabledOnLoad() const;
211
212#ifdef LL_PLAT_C
213 MCAPI void applyPolicyBasedSettings(bool hasBehaviourPack);
214#endif
215
216 MCAPI ::std::optional<::SemVersion> checkServerAuthOptOutVersion() const;
217
218#ifdef LL_PLAT_C
219 MCAPI void clearCloudSaveInfo();
220#endif
221
222 MCAPI bool cloudSaveForWorldIsEnabled() const;
223
224 MCAPI ::std::unique_ptr<::CompoundTag> createTag() const;
225
226 MCAPI void disableAchievements();
227
228 MCAPI bool educationFeaturesEnabled() const;
229
230 MCAPI bool getAdventureModeOverridesEnabled() const;
231
232 MCFOLD ::AdventureSettings const& getAdventureSettings() const;
233
234 MCFOLD ::AdventureSettings& getAdventureSettings();
235
236 MCAPI bool getAllowListActive() const;
237
238 MCAPI ::BaseGameVersion const& getBaseGameVersion() const;
239
240 MCAPI ::std::string const getBiomeOverride() const;
241
242 MCAPI bool getBonusChestSpawned() const;
243
244 MCAPI ::ChatRestrictionLevel getChatRestrictionLevel() const;
245
246 MCFOLD ::CloudSaveLevelInfo const& getCloudSaveInfo() const;
247
248#ifdef LL_PLAT_C
249 MCFOLD ::CloudSaveLevelInfo& getCloudSaveInfo();
250#endif
251
252 MCFOLD ::Tick const& getCurrentTick() const;
253
254 MCAPI bool getCustomSkinsDisabled() const;
255
256 MCAPI ::DaylightCycle getDaylightCycle() const;
257
258 MCFOLD ::Abilities& getDefaultAbilities();
259
260 MCFOLD ::PermissionsHandler const& getDefaultPermissions() const;
261
262 MCFOLD ::PermissionsHandler& getDefaultPermissions();
263
264 MCAPI ::Editor::WorldType getEditorWorldType() const;
265
266 MCAPI ::CompoundTag const& getEduSharedUriResource() const;
267
268 MCFOLD ::std::string const& getEducationCreatorId() const;
269
270 MCAPI ::std::string const& getEducationCreatorWorldId() const;
271
272 MCAPI ::EducationEditionOffer getEducationEditionOffer() const;
273
274#ifdef LL_PLAT_C
275 MCAPI ::std::string const& getEducationOid() const;
276#endif
277
278 MCFOLD ::std::string const& getEducationProductId() const;
279
280 MCFOLD ::std::string const& getEducationReferrerId() const;
281
282 MCAPI bool getEmoteChatMuted() const;
283
284#ifdef LL_PLAT_C
285 MCAPI ::std::optional<::std::string> const& getExperienceWorldId() const;
286#endif
287
288 MCFOLD ::Experiments const& getExperiments() const;
289
290 MCFOLD ::Experiments& getExperiments();
291
292 MCAPI ::Json::Value const& getFlatWorldOptions() const;
293
294#ifdef LL_PLAT_C
295 MCAPI ::std::optional<::FlatWorldPresetID> getFlatWorldPreset() const;
296#endif
297
298 MCAPI bool getForceGameType() const;
299
300 MCFOLD ::SharedTypes::Legacy::Difficulty getGameDifficulty() const;
301
302 MCFOLD ::GameRules const& getGameRules() const;
303
304 MCFOLD ::GameRules& getGameRules();
305
306 MCAPI ::GameType getGameType() const;
307
308 MCAPI ::GeneratorType getGenerator() const;
309
310#ifdef LL_PLAT_C
311 MCAPI bool getHasUncompleteWorldFileOnDisk() const;
312
313 MCAPI bool const getIsSingleUseWorld() const;
314#endif
315
316 MCAPI bool getLANBroadcast() const;
317
318 MCAPI bool getLANBroadcastIntent() const;
319
320#ifdef LL_PLAT_C
321 MCFOLD int64 getLastSaved() const;
322#endif
323
324 MCFOLD ::std::string const& getLevelName() const;
325
326 MCAPI float getLightningLevel() const;
327
328 MCAPI int getLightningTime() const;
329
330 MCAPI int getLimitedWorldDepth() const;
331
332 MCAPI int getLimitedWorldWidth() const;
333
334 MCAPI ::CompoundTag& getLoadedPlayerTag();
335
336#ifdef LL_PLAT_C
337 MCFOLD ::GameVersion const& getMinCompatibleClientVersion() const;
338#endif
339
340 MCAPI bool getMultiplayerGameIntent() const;
341
342 MCAPI int getNetherScale() const;
343
344 MCAPI ::NetherWorldType getNetherType() const;
345
346#ifdef LL_PLAT_C
347 MCFOLD int getNetworkVersion() const;
348#endif
349
350 MCAPI bool getOnlySpawnV1Villagers() const;
351
352 MCAPI bool getPersonaDisabled() const;
353
354 MCFOLD ::Social::GamePublishSetting getPlatformBroadcastIntent() const;
355
356 MCAPI ::Social::GamePublishSetting getPlatformBroadcastMode() const;
357
358#ifdef LL_PLAT_C
359 MCAPI bool getPlayerHasDied() const;
360#endif
361
362 MCAPI ::ContentIdentity const& getPremiumTemplateContentIdentity() const;
363
364 MCAPI float getRainLevel() const;
365
366 MCAPI int getRainTime() const;
367
368 MCAPI ::LevelSeed64 getSeed() const;
369
370 MCFOLD uint getServerChunkTickRange() const;
371
372 MCAPI ::BlockPos const& getSpawnPos() const;
373
374 MCFOLD ::SpawnSettings const& getSpawnSettings() const;
375
376 MCAPI ::StorageVersion getStorageVersion() const;
377
378 MCAPI void getTagData(::CompoundTag const& tag);
379
380 MCFOLD int getTime() const;
381
382 MCAPI bool getUseMsaGamertagsOnly() const;
383
384 MCAPI ::BlockPos const& getWorldCenter() const;
385
386 MCAPI uint getWorldStartCount() const;
387
388 MCAPI ::PackIdVersion const& getWorldTemplateIdentity() const;
389
390 MCAPI ::WorldVersion getWorldVersion() const;
391
392 MCAPI ::Social::GamePublishSetting getXBLBroadcastIntent() const;
393
394 MCAPI ::Social::GamePublishSetting getXBLBroadcastMode() const;
395
396 MCAPI bool hasAchievementsDisabled() const;
397
398 MCAPI bool hasBonusChestEnabled() const;
399
400 MCAPI bool hasCheatsEnabled() const;
401
402 MCAPI bool hasCommandsEnabled() const;
403
404 MCAPI bool hasConfirmedPlatformLockedContent() const;
405
406 MCAPI bool hasLockedBehaviorPack() const;
407
408 MCAPI bool hasLockedResourcePack() const;
409
410 MCAPI bool hasMapsCenteredToOrigin() const;
411
412 MCFOLD bool hasSpawnPos() const;
413
414 MCAPI bool hasStartWithMapEnabled() const;
415
416 MCAPI void incrementTick();
417
418#ifdef LL_PLAT_C
419 MCAPI bool isAlwaysDay() const;
420#endif
421
422 MCAPI bool isCreatedInEditor() const;
423
424#ifdef LL_PLAT_C
425 MCAPI bool isEditionCompatible() const;
426#endif
427
428 MCAPI bool isEditorTestWorld() const;
429
430 MCAPI bool isEditorWorld() const;
431
432 MCAPI bool isEducationEditionLevel() const;
433
434 MCAPI bool isExportedFromEditor() const;
435
436 MCAPI bool isFromLockedTemplate() const;
437
438 MCAPI bool isFromWorldTemplate() const;
439
440#ifdef LL_PLAT_C
441 MCAPI bool isGameRule(::GameRuleId gameRule) const;
442#endif
443
444 MCAPI bool isHardcore() const;
445
446 MCAPI bool isLegacyLevel() const;
447
448 MCAPI bool isLightning() const;
449
450 MCAPI bool isMultiplayerGame() const;
451
452#ifdef LL_PLAT_C
453 MCAPI bool isNewLevel() const;
454#endif
455
456 MCAPI bool isPremiumWorldTemplate() const;
457
458 MCAPI bool isRaining() const;
459
460#ifdef LL_PLAT_C
461 MCFOLD bool isRandomSeedAllowed() const;
462#endif
463
464 MCAPI bool isTexturepacksRequired() const;
465
466 MCAPI bool isWorldTemplateOptionLocked() const;
467
468 MCAPI ::LevelData& operator=(::LevelData&& rhs);
469
470 MCAPI void recordStartUp();
471
472#ifdef LL_PLAT_C
473 MCAPI ::Bedrock::PubSub::Subscription registerIsHardcoreListener(::std::function<void(bool)> callback) const;
474
475 MCAPI ::Bedrock::PubSub::Subscription
476 registerLevelDataPropertyListener(::LevelDataProperty property, ::std::function<void()> callback) const;
477#endif
478
479 MCAPI void registerWithLevelStorageManagerEvents(::ILevelStorageManagerConnector& levelStorageManagerConnector);
480
481#ifdef LL_PLAT_C
482 MCAPI bool requiresCopiedPackRemovalCheck() const;
483
484 MCAPI void resetDefaultCheatSettingsData();
485
486 MCAPI void resetSettingsForRandomSeed();
487
488 MCAPI void resetToDefaultSettings();
489
490 MCAPI void resetToTrialSettings();
491#endif
492
493 MCAPI void setAdventureModeOverridesEnabled(bool overridesEnabled);
494
495 MCAPI void setAllowListActive(bool val);
496
497 MCAPI void setBaseGameVersion(::BaseGameVersion const& baseGameVersion);
498
499 MCAPI void setBiomeOverride(::std::string const& biomeName);
500
501 MCAPI void setBonusChestEnabled(bool bonusChestEnabled);
502
503 MCAPI void setBonusChestSpawned(bool bonusChestSpawned);
504
505 MCAPI void setChatRestrictionLevel(::ChatRestrictionLevel chatRestrictionLevel);
506
507 MCAPI void setCheatsEnabled(bool cheatsEnabled);
508
509#ifdef LL_PLAT_C
510 MCAPI void setCloudSaveInfo(::CloudSaveLevelInfo const& cloudSaveInfo);
511#endif
512
513 MCAPI void setCommandsEnabled(bool commandsEnabled);
514
515#ifdef LL_PLAT_C
516 MCAPI void setConfirmedPlatformLockedContent(bool hasConfirmed);
517
518 MCFOLD void setCurrentTick(::Tick currentTick);
519#endif
520
521 MCAPI void setCustomSkinsDisabled(bool val);
522
523 MCAPI void setDataDrivenGenerator(::GeneratorType type);
524
525 MCAPI void setDaylightCycle(::DaylightCycle daylightCycle);
526
527 MCFOLD void setEditorWorldType(::Editor::WorldType t);
528
529 MCAPI void setEduSharedUriResource(::EduSharedUriResource const& eduSharedUriResource);
530
531 MCAPI void setEducationEditionOffer(::EducationEditionOffer offer);
532
533 MCAPI void setEducationFeaturesEnabled(bool educationEnabled);
534
535 MCAPI void setEducationOid(::std::string const& educationOid);
536
537#ifdef LL_PLAT_C
538 MCAPI void setEducationProductId(::std::string const& productId);
539
540 MCAPI void setEducationReferrerId(::std::string const& referrerId);
541#endif
542
543 MCAPI void setEmoteChatMuted(bool val);
544
545#ifdef LL_PLAT_C
546 MCAPI void setExperienceWorldId(::std::string const& experienceWorldId);
547#endif
548
549 MCAPI void setFlatWorldPreset(::FlatWorldPresetID preset);
550
551 MCAPI void setForceGameType(bool value);
552
553#ifdef LL_PLAT_C
554 MCAPI void setFromLockedTemplate(bool isLocked);
555
556 MCAPI void setFromWorldTemplate(bool isFromWorldTemplate);
557#endif
558
559 MCAPI void setGameDifficulty(::SharedTypes::Legacy::Difficulty difficulty);
560
561 MCAPI void setGameType(::GameType type);
562
563 MCAPI void setGenerator(::GeneratorType version);
564
565 MCAPI void setHasLockedBehaviorPack(bool hasLockedPack);
566
567 MCAPI void setHasLockedResourcePack(bool hasLockedPack);
568
569#ifdef LL_PLAT_C
570 MCAPI void setHasUncompleteWorldFileOnDisk(bool val);
571#endif
572
573 MCAPI void setIsCreatedInEditor(bool isCreatedInEditor);
574
575 MCAPI void setIsExportedFromEditor(bool isExportedFromEditor);
576
577 MCAPI void setIsHardcore(bool value);
578
579#ifdef LL_PLAT_C
580 MCAPI void setIsRandomSeedAllowed(bool allowed);
581#endif
582
583 MCAPI void setIsSingleUseWorld(bool isSingleUseWorld);
584
585 MCAPI void setLANBroadcast(bool broadcast);
586
587 MCAPI void setLANBroadcastIntent(bool broadcast);
588
589 MCAPI void setLevelName(::std::string const& levelName);
590
591 MCAPI void setLightningLevel(float level);
592
593 MCAPI void setLightningTime(int lightningTime);
594
595 MCAPI void setMultiplayerGame(bool multiplayer);
596
597 MCAPI void setMultiplayerGameIntent(bool multiplayer);
598
599#ifdef LL_PLAT_C
600 MCAPI void setNetherType(::NetherWorldType const& netherType);
601#endif
602
603 MCAPI void setOnlySpawnV1Villagers(bool val);
604
605 MCAPI void setPersonaDisabled(bool val);
606
607 MCAPI void setPlatformBroadcastIntent(::Social::GamePublishSetting broadcastMode);
608
609 MCAPI void setPlatformBroadcastMode(::Social::GamePublishSetting broadcastMode);
610
611 MCAPI void setPlayerHasDied(bool value);
612
613 MCAPI void setPremiumTemplateContentIdentity(::ContentIdentity const& templateContentIdentity);
614
615 MCAPI void setRainLevel(float level);
616
617 MCAPI void setRainTime(int rainTime);
618
619#ifdef LL_PLAT_C
620 MCAPI void setRequiresCopiedPackRemovalCheck(bool required);
621#endif
622
623 MCAPI void setSeed(::LevelSeed64 seed);
624
625 MCAPI void setServerChunkTickRange(uint newRange);
626
627 MCAPI void setSpawnPos(::BlockPos const& spawn);
628
629 MCAPI void setSpawnSettings(::SpawnSettings const& settings);
630
631 MCAPI void setStartWithMapEnabled(bool startWithMapEnabled);
632
633 MCAPI void setStorageVersion(::StorageVersion version);
634
635 MCAPI void setTagData(::CompoundTag& tag) const;
636
637 MCAPI void setTexturepacksRequired(bool texturepacksRequired);
638
639 MCAPI void setTime(int time);
640
641 MCAPI void setUseMsaGamertagsOnly(bool useMsaGamertagsOnly);
642
643 MCAPI void setWorldTemplateIdentity(::PackIdVersion const& packIdVersion);
644
645 MCAPI void setWorldTemplateOptionLocked(bool isLocked);
646
647 MCAPI void setWorldVersion(::WorldVersion version);
648
649 MCAPI void setXBLBroadcastIntent(::Social::GamePublishSetting broadcastMode);
650
651 MCAPI void setXBLBroadcastMode(::Social::GamePublishSetting broadcastMode);
652
653#ifdef LL_PLAT_C
654 MCAPI bool shouldAchievementsBeDisabled(bool isTrialMode, bool hasBehaviourPack) const;
655#endif
656
657 MCAPI void touchLastLoadedWithVersion();
658
659 MCAPI void updateLastTimeSaved() const;
660
661 MCAPI void v1_read(::RakNet::BitStream& bitStream, ::StorageVersion storageVersion);
662
663 MCAPI ~LevelData();
664 // NOLINTEND
665
666public:
667 // constructor thunks
668 // NOLINTBEGIN
669 MCAPI void* $ctor(bool isEduMode);
670
671 MCAPI void* $ctor(::LevelData&& rhs);
672
673 MCAPI void* $ctor(
674 ::LevelSettings const& settings,
675 ::std::string const& levelName,
676 ::GeneratorType generatorVersion,
677 ::BlockPos const& defaultSpawn,
678 bool achievementsDisabled,
679 ::EducationEditionOffer eduOffer,
680 float rainLevel,
681 float lightningLevel
682 );
683 // NOLINTEND
684
685public:
686 // destructor thunk
687 // NOLINTBEGIN
688 MCAPI void $dtor();
689 // NOLINTEND
690};
Definition BaseGameVersion.h:13
Definition Publisher.h:8
Definition BlockPos.h:21
Definition CloudSaveLevelInfo.h:10
Definition CompoundTag.h:23
Definition ContentIdentity.h:8
Definition Experiments.h:14
Definition HashedString.h:5
Definition ILevelStorageManagerConnector.h:13
Definition LevelSeed64.h:5
Definition LevelSettings.h:40
Definition BitStream.h:7
Definition flat_map.h:15
Definition EduSharedUriResource.h:10
Definition GameRuleId.h:8
Definition LevelDataValue.h:17
Definition PackIdVersion.h:10
Definition SpawnSettings.h:9
Definition Tick.h:5