LeviLamina
Loading...
Searching...
No Matches
GameOptions.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Vec3.h"
7#include "mc/deps/shared_types/legacy/Difficulty.h"
8#include "mc/editor/ProjectExportType.h"
9#include "mc/network/GamePublishSetting.h"
10#include "mc/server/commands/PlayerPermissionLevel.h"
11#include "mc/world/level/DaylightCycle.h"
12#include "mc/world/level/GameType.h"
13#include "mc/world/level/storage/VanillaPlayerWaypointMode.h"
14
15// auto generated forward declare list
16// clang-format off
17class LevelData;
18// clang-format on
19
20namespace Editor {
21
22class GameOptions {
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mWorldName;
27 ::ll::TypedStorage<4, 16, ::std::optional<::Vec3>> mSpawnPosition;
28 ::ll::TypedStorage<4, 8, ::std::optional<::GameType>> mGameMode;
29 ::ll::TypedStorage<4, 8, ::std::optional<::SharedTypes::Legacy::Difficulty>> mDifficulty;
30 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mHardcore;
31 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mKeepPlayerData;
32 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mStartingMap;
33 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mBonusChest;
34 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mShowCoordinates;
35 ::ll::TypedStorage<4, 8, ::std::optional<::VanillaPlayerWaypointMode>> mPlayerWaypoints;
36 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mShowDaysPlayed;
37 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mRecipeUnlocking;
38 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mLimitedCrafting;
39 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mFireSpreads;
40 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mTNTExplodes;
41 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mRespawnBlocksExplode;
42 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mMobLoot;
43 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mNaturalRegeneration;
44 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mTileDrops;
45 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mBedsWork;
46 ::ll::TypedStorage<4, 8, ::std::optional<int>> mSleepSkipPercent;
47 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mImmediateRespawn;
48 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mShowDeathMessage;
49 ::ll::TypedStorage<4, 8, ::std::optional<int>> mRespawnRadius;
50 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mDimensionId;
51 ::ll::TypedStorage<4, 8, ::std::optional<int>> mSimulationDistance;
52 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mShowItemTags;
53 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mMultiplayerGame;
54 ::ll::TypedStorage<4, 8, ::std::optional<::Social::GamePublishSetting>> mPlayerAccess;
55 ::ll::TypedStorage<1, 2, ::std::optional<::PlayerPermissionLevel>> mPlayerPermissions;
56 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mLANVisibility;
57 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mFriendlyFire;
58 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mCheats;
59 ::ll::TypedStorage<1, 2, ::std::optional<::DaylightCycle>> mDaylightCycle;
60 ::ll::TypedStorage<4, 8, ::std::optional<int>> mTimeOfDay;
61 ::ll::TypedStorage<4, 8, ::std::optional<int>> mWeather;
62 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mKeepInventory;
63 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mMobSpawning;
64 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mMobGriefing;
65 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mEntitiesDropLoot;
66 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mDisableWeather;
67 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mEducationEdition;
68 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mCommandBlockEnabled;
69 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mCommandBlockOutput;
70 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mSendCommandFeedback;
71 ::ll::TypedStorage<4, 8, ::std::optional<int>> mMaxCommandChainLength;
72 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mFireDamage;
73 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mFreezeDamage;
74 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mFallDamage;
75 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mDrowningDamage;
76 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mInsomnia;
77 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mShowBorderEffect;
78 ::ll::TypedStorage<4, 8, ::std::optional<int>> mFunctionCommandLimit;
79 ::ll::TypedStorage<4, 8, ::std::optional<int>> mRandomTickSpeed;
80 ::ll::TypedStorage<4, 8, ::std::optional<::Editor::ProjectExportType>> mExportType;
81 // NOLINTEND
82
83public:
84 // prevent constructor by default
85 GameOptions(GameOptions const&);
86 GameOptions();
87
88public:
89 // member functions
90 // NOLINTBEGIN
91 MCAPI void applyToLevelData(::LevelData& levelData) const;
92
93 MCAPI ::Editor::GameOptions& operator=(::Editor::GameOptions const&);
94
95 MCAPI ~GameOptions();
96 // NOLINTEND
97
98public:
99 // destructor thunk
100 // NOLINTBEGIN
101 MCAPI void $dtor();
102 // NOLINTEND
103};
104
105} // namespace Editor
Definition GameOptions.h:22
Definition LevelData.h:55