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