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