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/config/ChatRestrictionLevel.h"
7#include "mc/deps/core/utility/AutomaticID.h"
8#include "mc/deps/json/Value.h"
9#include "mc/deps/shared_types/legacy/Difficulty.h"
10#include "mc/editor/WorldType.h"
11#include "mc/network/GamePublishSetting.h"
12#include "mc/options/EduSharedUriResource.h"
13#include "mc/options/EducationEditionOffer.h"
14#include "mc/options/EducationEditionOfferValue.h"
15#include "mc/resources/BaseGameVersion.h"
16#include "mc/world/actor/player/PermissionsHandler.h"
17#include "mc/world/level/BlockPos.h"
18#include "mc/world/level/DaylightCycle.h"
19#include "mc/world/level/EducationLevelSettings.h"
20#include "mc/world/level/GameType.h"
21#include "mc/world/level/GeneratorType.h"
22#include "mc/world/level/LevelSeed64.h"
23#include "mc/world/level/NetherWorldType.h"
24#include "mc/world/level/SpawnSettings.h"
25#include "mc/world/level/WorldVersion.h"
26#include "mc/world/level/storage/CloudSaveLevelInfo.h"
27#include "mc/world/level/storage/ExperimentStorage.h"
28#include "mc/world/level/storage/GameRules.h"
29
30// auto generated forward declare list
31// clang-format off
32class Dimension;
33class LevelData;
34struct PackInstanceId;
35namespace mce { class UUID; }
36// clang-format on
37
39public:
40 // member variables
41 // NOLINTBEGIN
42 ::ll::TypedStorage<8, 8, ::LevelSeed64> mSeed;
43 ::ll::TypedStorage<4, 4, ::GameType> mGameType;
44 ::ll::TypedStorage<1, 1, bool> mIsHardcore;
45 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::Difficulty> mGameDifficulty;
46 ::ll::TypedStorage<1, 1, bool> mForceGameType;
47 ::ll::TypedStorage<4, 4, ::GeneratorType> mGenerator;
48 ::ll::TypedStorage<8, 16, ::Json::Value> mFlatWorldOptions;
49 ::ll::TypedStorage<1, 1, ::WorldVersion> mWorldVersion;
50 ::ll::TypedStorage<1, 1, ::NetherWorldType> mNetherType;
51 ::ll::TypedStorage<8, 48, ::SpawnSettings> mSpawnSettings;
52 ::ll::TypedStorage<1, 1, bool> mAchievementsDisabled;
53 ::ll::TypedStorage<4, 4, ::Editor::WorldType> mEditorWorldType;
54 ::ll::TypedStorage<1, 1, bool> mIsCreatedInEditor;
55 ::ll::TypedStorage<1, 1, bool> mIsExportedFromEditor;
56 ::ll::TypedStorage<4, 4, int> mTime;
57 ::ll::TypedStorage<4, 4, ::EducationEditionOfferValue> mEducationEditionOffer;
58 ::ll::TypedStorage<1, 1, bool> mEducationFeaturesEnabled;
59 ::ll::TypedStorage<1, 1, bool> mImmutableWorld;
60 ::ll::TypedStorage<4, 4, float> mRainLevel;
61 ::ll::TypedStorage<4, 4, float> mLightningLevel;
62 ::ll::TypedStorage<1, 1, bool> mConfirmedPlatformLockedContent;
63 ::ll::TypedStorage<1, 1, bool> mMultiplayerGameIntent;
64 ::ll::TypedStorage<1, 1, bool> mLANBroadcastIntent;
65 ::ll::TypedStorage<4, 4, ::Social::GamePublishSetting> mXBLBroadcastIntent;
66 ::ll::TypedStorage<4, 4, ::Social::GamePublishSetting> mPlatformBroadcastIntent;
67 ::ll::TypedStorage<1, 1, ::DaylightCycle> mDaylightCycle;
68 ::ll::TypedStorage<1, 1, bool> mDisablePlayerInteractions;
69 ::ll::TypedStorage<1, 1, bool> mCheatsEnabled;
70 ::ll::TypedStorage<1, 1, bool> mAdventureModeOverridesEnabled;
71 ::ll::TypedStorage<1, 1, bool> mCommandsEnabled;
72 ::ll::TypedStorage<1, 1, bool> mTexturePacksRequired;
73 ::ll::TypedStorage<1, 1, bool> mHasLockedBehaviorPack;
74 ::ll::TypedStorage<1, 1, bool> mHasLockedResourcePack;
75 ::ll::TypedStorage<1, 1, bool> mIsFromLockedTemplate;
76 ::ll::TypedStorage<1, 1, bool> mIsRandomSeedAllowed;
77 ::ll::TypedStorage<1, 1, bool> mUseMsaGamertagsOnly;
78 ::ll::TypedStorage<1, 1, bool> mOverrideSettings;
79 ::ll::TypedStorage<1, 1, bool> mBonusChestEnabled;
80 ::ll::TypedStorage<1, 1, bool> mStartWithMapEnabled;
81 ::ll::TypedStorage<4, 4, int> mServerChunkTickRange;
82 ::ll::TypedStorage<1, 1, bool> mIsFromWorldTemplate;
83 ::ll::TypedStorage<1, 1, bool> mIsWorldTemplateOptionLocked;
84 ::ll::TypedStorage<1, 1, bool> mSpawnV1Villagers;
85 ::ll::TypedStorage<1, 1, bool> mPersonaDisabled;
86 ::ll::TypedStorage<1, 1, bool> mCustomSkinsDisabled;
87 ::ll::TypedStorage<1, 1, bool> mEmoteChatMuted;
88 ::ll::TypedStorage<4, 4, int> mLimitedWorldWidth;
89 ::ll::TypedStorage<4, 4, int> mLimitedWorldDepth;
90 ::ll::TypedStorage<1, 2, ::PermissionsHandler> mDefaultPermissions;
91 ::ll::TypedStorage<4, 12, ::BlockPos> mDefaultSpawn;
92 ::ll::TypedStorage<8, 24, ::std::vector<::PackInstanceId>> mNewWorldBehaviorPackIdentities;
93 ::ll::TypedStorage<8, 24, ::std::vector<::PackInstanceId>> mNewWorldResourcePackIdentities;
94 ::ll::TypedStorage<8, 192, ::GameRules> mGameRules;
95 ::ll::TypedStorage<8, 72, ::ExperimentStorage> mExperiments;
96 ::ll::TypedStorage<8, 32, ::BaseGameVersion> mBaseGameVersion;
97 ::ll::TypedStorage<8, 32, ::std::string> mEducationProductID;
98 ::ll::TypedStorage<8, 32, ::std::string> mEducationCreatorID;
99 ::ll::TypedStorage<8, 32, ::std::string> mEducationCreatorWorldID;
100 ::ll::TypedStorage<8, 32, ::std::string> mEducationReferrerID;
101 ::ll::TypedStorage<8, 32, ::std::string> mBiomeOverride;
102 ::ll::TypedStorage<8, 64, ::EduSharedUriResource> mEduSharedUriResource;
103 ::ll::TypedStorage<1, 1, ::ChatRestrictionLevel> mChatRestrictionLevel;
104 ::ll::TypedStorage<8, 32, ::std::string> mServerId;
105 ::ll::TypedStorage<8, 32, ::std::string> mWorldId;
106 ::ll::TypedStorage<8, 32, ::std::string> mScenarioId;
107 ::ll::TypedStorage<8, 32, ::std::string> mOwnerId;
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 MCAPI LevelSettings(::LevelSettings const&);
124
126
127 MCAPI LevelSettings(::LevelData const& data, ::DimensionType dimension);
128
129 MCAPI ::LevelSettings& addExcludedScriptModule(::mce::UUID moduleUUID);
130
131 MCAPI ::CloudSaveLevelInfo const& getCloudSaveInfo() const;
132
133 MCAPI ::SpawnSettings getSpawnSettings() const;
134
135 MCAPI ::LevelSettings& operator=(::LevelSettings&&);
136
137 MCAPI ::LevelSettings& setBaseGameVersion(::BaseGameVersion const& baseGameVersion);
138
139 MCAPI ::LevelSettings& setEduSharedUriResource(::EduSharedUriResource const& eduSharedUriResource);
140
141 MCAPI ::LevelSettings& setEducationCreatorID(::std::string id);
142
143 MCAPI ::LevelSettings& setEducationCreatorWorldID(::std::string id);
144
145 MCAPI ::LevelSettings& setEducationEditionOffer(::EducationEditionOffer offer);
146
147 MCAPI ::LevelSettings& setEducationProductID(::std::string id);
148
149 MCAPI ::LevelSettings& setExperiments(::ExperimentStorage const& experiments);
150
151 MCAPI ::LevelSettings& setGameRules(::GameRules gameRules);
152
153 MCAPI ::LevelSettings& setOwnerId(::std::string ownerId);
154
155 MCAPI ::LevelSettings& setScenarioId(::std::string scenarioId);
156
157 MCAPI ::LevelSettings& setServerId(::std::string serverId);
158
159 MCAPI ::LevelSettings& setSpawnSettings(::SpawnSettings spawnSettings);
160
161 MCAPI ::LevelSettings& setWorldId(::std::string worldId);
162
163 MCAPI ~LevelSettings();
164 // NOLINTEND
165
166public:
167 // static functions
168 // NOLINTBEGIN
169 MCAPI static ::std::optional<::LevelSeed64> parseSeedString(::std::string const& seedInput);
170 // NOLINTEND
171
172public:
173 // constructor thunks
174 // NOLINTBEGIN
175 MCAPI void* $ctor();
176
177 MCAPI void* $ctor(::LevelSettings const&);
178
179 MCAPI void* $ctor(::LevelSettings&&);
180
181 MCAPI void* $ctor(::LevelData const& data, ::DimensionType dimension);
182 // NOLINTEND
183
184public:
185 // destructor thunk
186 // NOLINTBEGIN
187 MCAPI void $dtor();
188 // NOLINTEND
189};
Definition AutomaticID.h:6
Definition BaseGameVersion.h:8
Definition Dimension.h:83
Definition ExperimentStorage.h:5
Definition GameRules.h:22
Definition LevelData.h:49
Definition LevelSettings.h:38
Definition UUID.h:7
Definition EduSharedUriResource.h:10
Definition PackInstanceId.h:8
Definition SpawnSettings.h:14