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