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