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