LeviLamina
Loading...
Searching...
No Matches
PropertiesSettings.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/debug/log/LogLevel.h"
8#include "mc/deps/shared_types/legacy/Difficulty.h"
9#include "mc/network/TransportLayer.h"
10#include "mc/server/commands/CommandPermissionLevel.h"
11#include "mc/world/level/GameType.h"
12
13// auto generated forward declare list
14// clang-format off
15struct NetworkAddress;
19struct ScriptSettings;
20// clang-format on
21
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<8, 32, ::std::string> mLevelSeed;
27 ::ll::TypedStorage<8, 32, ::std::string> mLevelName;
28 ::ll::TypedStorage<8, 32, ::std::string> mLevelType;
29 ::ll::TypedStorage<8, 32, ::std::string> mServerName;
30 ::ll::TypedStorage<2, 2, ushort> mServerPort;
31 ::ll::TypedStorage<2, 2, ushort> mServerPortv6;
32 ::ll::TypedStorage<4, 4, int> mMaxPlayers;
33 ::ll::TypedStorage<4, 4, int> mOpPermissionLevel;
34 ::ll::TypedStorage<8, 32, ::std::string> mDifficulty;
35 ::ll::TypedStorage<8, 32, ::std::string> mServerType;
36 ::ll::TypedStorage<8, 32, ::std::string> mGameMode;
37 ::ll::TypedStorage<8, 32, ::std::string> mLanguage;
38 ::ll::TypedStorage<8, 32, ::std::string> mServerId;
39 ::ll::TypedStorage<4, 4, uint> mMaxThreads;
40 ::ll::TypedStorage<4, 4, int> mServerTickRange;
41 ::ll::TypedStorage<8, 24, ::std::vector<::std::string>> mExtraTrustedKeys;
42 ::ll::TypedStorage<1, 1, bool> mUseAllowList;
43 ::ll::TypedStorage<1, 1, bool> mIsOnlineMode;
44 ::ll::TypedStorage<1, 1, bool> mForceGameMode;
45 ::ll::TypedStorage<1, 1, bool> mAllowCheats;
46 ::ll::TypedStorage<1, 1, bool> mIsHardcore;
47 ::ll::TypedStorage<1, 1, bool> mAdventureModeOverridesEnabled;
48 ::ll::TypedStorage<1, 1, bool> mDisablePlayerInteractions;
49 ::ll::TypedStorage<1, 1, bool> mTexturePackRequired;
50 ::ll::TypedStorage<1, 1, bool> mUseMsaGamertagsOnly;
51 ::ll::TypedStorage<1, 1, bool> mEnableItemStackNetManager;
52 ::ll::TypedStorage<1, 1, bool> mIsItemTransactionLoggingEnabled;
53 ::ll::TypedStorage<1, 1, bool> mIsPropertiesFileLoaded;
54 ::ll::TypedStorage<1, 1, bool> mIsServerVisibleToLanDiscovery;
55 ::ll::TypedStorage<1, 1, bool> mIsPacketRateLimitingEnabled;
56 ::ll::TypedStorage<1, 1, bool> mEncryptionDisabled;
57 ::ll::TypedStorage<4, 4, int> mMaxViewDistanceChunks;
58 ::ll::TypedStorage<4, 4, ::std::chrono::minutes> mMaxIdleTime;
59 ::ll::TypedStorage<4, 4, int> mServerWakeupFrequency;
60 ::ll::TypedStorage<4, 4, ::TransportLayer> mTransportLayerType;
61 ::ll::TypedStorage<8, 40, ::NetworkAddress> mRemoteServerCommunicationEndpoint;
62 ::ll::TypedStorage<8, 32, ::std::string> mDefaultPlayerPermissionLevel;
63 ::ll::TypedStorage<4, 4, ::std::bitset<3>> mServerTextSettings;
64 ::ll::TypedStorage<1, 1, bool> mEmitServerTelemetry;
65 ::ll::TypedStorage<4, 4, ::LogLevel> mContentLogLevel;
66 ::ll::TypedStorage<1, 1, bool> mIsContentLogConsoleOutputEnabled;
67 ::ll::TypedStorage<1, 1, bool> mIsContentLogFileEnabled;
68 ::ll::TypedStorage<4, 4, float> mWebsocketRetryTime;
69 ::ll::TypedStorage<1, 1, bool> mUseWebsocketEncryption;
70 ::ll::TypedStorage<4, 24, ::NetworkSettingOptions> mNetworkSettings;
71 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::std::string>> mCustomProperties;
72 ::ll::TypedStorage<8, 80, ::PlayerMovementSettings> mPlayerMovementSettings;
73 ::ll::TypedStorage<8, 704, ::ScriptSettings> mScriptSettings;
74 ::ll::TypedStorage<1, 1, ::ChatRestrictionLevel> mChatRestrictionLevel;
75 ::ll::TypedStorage<1, 1, bool> mPersonaDisabled;
76 ::ll::TypedStorage<1, 1, bool> mCustomSkinsDisabled;
77 ::ll::TypedStorage<1, 1, bool> mEmoteChatMute;
78 ::ll::TypedStorage<1, 1, bool> mClientSideGenerationEnabled;
79 ::ll::TypedStorage<4, 8, ::std::optional<float>> mServerBuildRatioOverride;
80 ::ll::TypedStorage<1, 1, bool> mUseHashesForBlockRuntimeIds;
81 ::ll::TypedStorage<1, 1, bool> mBlockNetworkIdsAreHashes;
82 ::ll::TypedStorage<1, 1, bool> mRakNetJoinFloodProtection;
83 ::ll::TypedStorage<1, 1, bool> mAllowUnconnectedPings;
84 ::ll::TypedStorage<1, 1, bool> mAllowSubClientLogin;
85 ::ll::TypedStorage<1, 1, ::NetworkPermissions> mNetworkPermissions;
86 ::ll::TypedStorage<8, 32, ::std::string> mAppId;
87 ::ll::TypedStorage<8, 32, ::std::string> mAppTenantId;
88 // NOLINTEND
89
90public:
91 // member functions
92 // NOLINTBEGIN
93 MCAPI explicit PropertiesSettings(::std::string const& filename);
94
95 MCAPI ::std::unordered_map<::std::string, ::std::string> getChangedValues() const;
96
97 MCAPI ::SharedTypes::Legacy::Difficulty getDifficulty() const;
98
99 MCAPI ::CommandPermissionLevel getOpPermissionLevel() const;
100
101 MCAPI ~PropertiesSettings();
102 // NOLINTEND
103
104public:
105 // static functions
106 // NOLINTBEGIN
107 MCAPI static bool parseBoolValue(::std::string const& value);
108
109 MCAPI static ::GameType parseGameMode(::std::string const& value);
110
111 MCAPI static int parseInt32Value(::std::string const& value);
112 // NOLINTEND
113
114public:
115 // constructor thunks
116 // NOLINTBEGIN
117 MCAPI void* $ctor(::std::string const& filename);
118 // NOLINTEND
119
120public:
121 // destructor thunk
122 // NOLINTBEGIN
123 MCAPI void $dtor();
124 // NOLINTEND
125};
Definition PropertiesSettings.h:22
Definition NetworkAddress.h:5
Definition NetworkPermissions.h:5
Definition NetworkSettingOptions.h:9
Definition PlayerMovementSettings.h:15
Definition ScriptSettings.h:17