Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
LevelSettings.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/editor/WorldType.h"
7#include "mc/config/ChatRestrictionLevel.h"
8#include "mc/deps/json/Value.h"
9#include "mc/deps/shared_types/legacy/Difficulty.h"
10#include "mc/network/GamePublishSetting.h"
11#include "mc/network/ServerEditorConnectionPolicy.h"
12#include "mc/options/EduSharedUriResource.h"
13#include "mc/options/EducationEditionOfferValue.h"
14#include "mc/util/BaseGameVersion.h"
15#include "mc/world/actor/player/PermissionsHandler.h"
16#include "mc/world/level/BlockPos.h"
17#include "mc/world/level/DaylightCycle.h"
18#include "mc/world/level/EducationLevelSettings.h"
19#include "mc/world/level/GameType.h"
20#include "mc/world/level/GeneratorType.h"
21#include "mc/world/level/LevelSeed64.h"
22#include "mc/world/level/NetherWorldType.h"
23#include "mc/world/level/PackInstanceId.h"
24#include "mc/world/level/SpawnSettings.h"
25#include "mc/world/level/WorldVersion.h"
26#include "mc/world/level/editor/EditorLevelMigrationVersion.h"
27#include "mc/world/level/storage/CloudSaveLevelInfo.h"
28#include "mc/world/level/storage/ExperimentStorage.h"
29#include "mc/world/level/storage/GameRules.h"
30
31// auto generated forward declare list
32// clang-format off
33class LevelData;
34struct DimensionType;
35struct LevelSummary;
36namespace mce { class UUID; }
37// clang-format on
38
39class LevelSettings {
40public:
41 // member variables
42 // NOLINTBEGIN
43 ::ll::TypedStorage<8, 8, ::LevelSeed64> mSeed;
44 ::ll::TypedStorage<4, 4, ::GameType> mGameType;
45 ::ll::TypedStorage<1, 1, bool> mIsHardcore;
46 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::Difficulty> mGameDifficulty;
47 ::ll::TypedStorage<1, 1, bool> mForceGameType;
48 ::ll::TypedStorage<4, 4, ::GeneratorType> mGenerator;
49 ::ll::TypedStorage<8, 16, ::Json::Value> mFlatWorldOptions;
50 ::ll::TypedStorage<1, 1, ::WorldVersion> mWorldVersion;
51 ::ll::TypedStorage<1, 1, ::NetherWorldType> mNetherType;
52 ::ll::TypedStorage<8, 48, ::SpawnSettings> mSpawnSettings;
53 ::ll::TypedStorage<1, 1, bool> mAchievementsDisabled;
54 ::ll::TypedStorage<4, 4, ::Editor::WorldType> mEditorWorldType;
55 ::ll::TypedStorage<1, 1, ::Editor::EditorLevelMigrationVersion> mEditorLevelMigrationVersion;
56 ::ll::TypedStorage<1, 1, bool> mAllowAnonymousBlockDropsInEditorWorlds;
57 ::ll::TypedStorage<4, 4, ::ServerEditorConnectionPolicy> mServerEditorConnectionPolicy;
58 ::ll::TypedStorage<1, 1, bool> mIsCreatedInEditor;
59 ::ll::TypedStorage<1, 1, bool> mIsExportedFromEditor;
60 ::ll::TypedStorage<4, 4, int> mTime;
61 ::ll::TypedStorage<4, 4, ::EducationEditionOfferValue> mEducationEditionOffer;
62 ::ll::TypedStorage<1, 1, bool> mEducationFeaturesEnabled;
63 ::ll::TypedStorage<1, 1, bool> mImmutableWorld;
64 ::ll::TypedStorage<4, 4, float> mRainLevel;
65 ::ll::TypedStorage<4, 4, float> mLightningLevel;
66 ::ll::TypedStorage<1, 1, bool> mConfirmedPlatformLockedContent;
67 ::ll::TypedStorage<1, 1, bool> mMultiplayerGameIntent;
68 ::ll::TypedStorage<1, 1, bool> mLANBroadcastIntent;
69 ::ll::TypedStorage<4, 4, ::Social::GamePublishSetting> mXBLBroadcastIntent;
70 ::ll::TypedStorage<4, 4, ::Social::GamePublishSetting> mPlatformBroadcastIntent;
71 ::ll::TypedStorage<1, 1, ::DaylightCycle> mDaylightCycle;
72 ::ll::TypedStorage<1, 1, bool> mDisablePlayerInteractions;
73 ::ll::TypedStorage<1, 1, bool> mCheatsEnabled;
74 ::ll::TypedStorage<1, 1, bool> mAdventureModeOverridesEnabled;
75 ::ll::TypedStorage<1, 1, bool> mCommandsEnabled;
76 ::ll::TypedStorage<1, 1, bool> mTexturePacksRequired;
77 ::ll::TypedStorage<1, 1, bool> mHasLockedBehaviorPack;
78 ::ll::TypedStorage<1, 1, bool> mHasLockedResourcePack;
79 ::ll::TypedStorage<1, 1, bool> mIsFromLockedTemplate;
80 ::ll::TypedStorage<1, 1, bool> mIsRandomSeedAllowed;
81 ::ll::TypedStorage<1, 1, bool> mUseMsaGamertagsOnly;
82 ::ll::TypedStorage<1, 1, bool> mOverrideSettings;
83 ::ll::TypedStorage<1, 1, bool> mBonusChestEnabled;
84 ::ll::TypedStorage<1, 1, bool> mStartWithMapEnabled;
85 ::ll::TypedStorage<4, 4, int> mServerChunkTickRange;
86 ::ll::TypedStorage<1, 1, bool> mIsFromWorldTemplate;
87 ::ll::TypedStorage<1, 1, bool> mIsWorldTemplateOptionLocked;
88 ::ll::TypedStorage<1, 1, bool> mSpawnV1Villagers;
89 ::ll::TypedStorage<1, 1, bool> mPersonaDisabled;
90 ::ll::TypedStorage<1, 1, bool> mCustomSkinsDisabled;
91 ::ll::TypedStorage<1, 1, bool> mEmoteChatMuted;
92 ::ll::TypedStorage<4, 4, int> mLimitedWorldWidth;
93 ::ll::TypedStorage<4, 4, int> mLimitedWorldDepth;
94 ::ll::TypedStorage<8, 24, ::PermissionsHandler> mDefaultPermissions;
95 ::ll::TypedStorage<4, 12, ::BlockPos> mDefaultSpawn;
96 ::ll::TypedStorage<8, 24, ::std::vector<::PackInstanceId>> mNewWorldBehaviorPackIdentities;
97 ::ll::TypedStorage<8, 24, ::std::vector<::PackInstanceId>> mNewWorldResourcePackIdentities;
98 ::ll::TypedStorage<8, 192, ::GameRules> mGameRules;
99 ::ll::TypedStorage<8, 72, ::ExperimentStorage> mExperiments;
100 ::ll::TypedStorage<8, 32, ::BaseGameVersion> mBaseGameVersion;
101 ::ll::TypedStorage<8, 32, ::std::string> mEducationProductID;
102 ::ll::TypedStorage<8, 32, ::std::string> mEducationCreatorID;
103 ::ll::TypedStorage<8, 32, ::std::string> mEducationCreatorWorldID;
104 ::ll::TypedStorage<8, 32, ::std::string> mEducationReferrerID;
105 ::ll::TypedStorage<8, 32, ::std::string> mBiomeOverride;
106 ::ll::TypedStorage<8, 64, ::EduSharedUriResource> mEduSharedUriResource;
107 ::ll::TypedStorage<1, 1, ::ChatRestrictionLevel> mChatRestrictionLevel;
108 ::ll::TypedStorage<8, 328, ::std::optional<::EducationLevelSettings>> mEducationLevelSettings;
109 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mOverrideForceExperimentalGameplayFlag;
110 ::ll::TypedStorage<8, 176, ::std::optional<::CloudSaveLevelInfo>> mCloudSaveInfo;
111 ::ll::TypedStorage<8, 24, ::std::vector<::mce::UUID>> mExcludedScriptModules;
112 // NOLINTEND
113
114public:
115 // prevent constructor by default
116 LevelSettings& operator=(LevelSettings const&);
117
118public:
119 // member functions
120 // NOLINTBEGIN
121 MCAPI LevelSettings();
122
123 MCNAPI LevelSettings(::LevelSettings&&);
124
125 MCNAPI LevelSettings(::LevelSettings const&);
126
127#ifdef LL_PLAT_C
128 MCNAPI explicit LevelSettings(::LevelSummary const& summary);
129#endif
130
131 MCNAPI LevelSettings(::LevelData const& data, ::DimensionType dimension);
132
133 MCNAPI ::SpawnSettings getSpawnSettings() const;
134
135 MCNAPI bool hasCloudSaveAssociation() const;
136
137#ifdef LL_PLAT_C
138 MCNAPI ::LevelSettings& operator=(::LevelSettings&&);
139
140 MCNAPI ::LevelSettings& setCloudSaveInfo(::std::optional<::CloudSaveLevelInfo> cloudSaveInfo);
141
142 MCNAPI ::LevelSettings& setEducationCreatorID(::std::string id);
143
144 MCNAPI ::LevelSettings& setEducationCreatorWorldID(::std::string id);
145#endif
146
147 MCNAPI ::LevelSettings& setExperiments(::ExperimentStorage const& experiments);
148
149#ifdef LL_PLAT_C
150 MCNAPI ::LevelSettings& setSpawnSettings(::SpawnSettings spawnSettings);
151#endif
152
153 MCAPI ~LevelSettings();
154 // NOLINTEND
155
156public:
157 // static functions
158 // NOLINTBEGIN
159 MCAPI static ::std::optional<::LevelSeed64> parseSeedString(::std::string const& seedInput);
160 // NOLINTEND
161
162public:
163 // constructor thunks
164 // NOLINTBEGIN
165 MCAPI void* $ctor();
166
167 MCNAPI void* $ctor(::LevelSettings&&);
168
169 MCNAPI void* $ctor(::LevelSettings const&);
170
171#ifdef LL_PLAT_C
172 MCNAPI void* $ctor(::LevelSummary const& summary);
173#endif
174
175 MCNAPI void* $ctor(::LevelData const& data, ::DimensionType dimension);
176 // NOLINTEND
177
178public:
179 // destructor thunk
180 // NOLINTBEGIN
181 MCAPI void $dtor();
182 // NOLINTEND
183};
Definition ExperimentStorage.h:5
Definition LevelData.h:57
MCAPI void * $ctor(::LevelSettings const &)
MCAPI bool hasCloudSaveAssociation() const
MCAPI LevelSettings(::LevelSettings const &)
MCAPI LevelSettings(::LevelData const &data, ::DimensionType dimension)
MCAPI LevelSettings(::LevelSettings &&)
MCAPI::SpawnSettings getSpawnSettings() const
MCAPI void * $ctor(::LevelSettings &&)
MCAPI::LevelSettings & setExperiments(::ExperimentStorage const &experiments)
MCAPI void * $ctor(::LevelData const &data, ::DimensionType dimension)
Definition UUID.h:8
Definition DimensionType.h:5
Definition LevelSummary.h:30
Definition SpawnSettings.h:9