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/TransportLayer.h"
16#include "mc/network/services/discovery/DiscoveryConfig.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, 32, ::std::optional<::NetherNet::NetworkID>> mNetherNetId;
68 ::ll::TypedStorage<8, 40, ::NetworkAddress> mRemoteServerCommunicationEndpoint;
69 ::ll::TypedStorage<8, 32, ::std::string> mDefaultPlayerPermissionLevel;
70 ::ll::TypedStorage<4, 4, ::std::bitset<3>> mServerTextSettings;
71 ::ll::TypedStorage<1, 1, bool> mEmitServerTelemetry;
72 ::ll::TypedStorage<4, 4, ::LogLevel> mContentLogLevel;
73 ::ll::TypedStorage<1, 1, bool> mIsContentLogConsoleOutputEnabled;
74 ::ll::TypedStorage<1, 1, bool> mIsContentLogFileEnabled;
75 ::ll::TypedStorage<4, 4, ::NetherNet::LogSeverity> mTransportLogLevel;
76 ::ll::TypedStorage<4, 4, ::HCTraceLevel> mHttpLogLevel;
77 ::ll::TypedStorage<4, 4, float> mWebsocketRetryTime;
78 ::ll::TypedStorage<1, 1, bool> mUseWebsocketEncryption;
79 ::ll::TypedStorage<4, 24, ::NetworkSettingOptions> mNetworkSettings;
80 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::std::string>> mCustomProperties;
81 ::ll::TypedStorage<8, 88, ::PlayerMovementSettings> mPlayerMovementSettings;
82 ::ll::TypedStorage<8, 704, ::ScriptSettings> mScriptSettings;
83 ::ll::TypedStorage<1, 1, ::ChatRestrictionLevel> mChatRestrictionLevel;
84 ::ll::TypedStorage<1, 1, bool> mPersonaDisabled;
85 ::ll::TypedStorage<1, 1, bool> mCustomSkinsDisabled;
86 ::ll::TypedStorage<1, 1, bool> mEmoteChatMute;
87 ::ll::TypedStorage<1, 1, bool> mClientSideGenerationEnabled;
88 ::ll::TypedStorage<4, 8, ::std::optional<float>> mServerBuildRatioOverride;
89 ::ll::TypedStorage<1, 1, bool> mUseHashesForBlockRuntimeIds;
90 ::ll::TypedStorage<1, 1, bool> mBlockNetworkIdsAreHashes;
91 ::ll::TypedStorage<1, 1, bool> mRakNetJoinFloodProtection;
92 ::ll::TypedStorage<1, 1, bool> mAllowUnconnectedPings;
93 ::ll::TypedStorage<1, 1, bool> mAllowSubClientLogin;
94 ::ll::TypedStorage<1, 1, ::NetworkPermissions> mNetworkPermissions;
95 ::ll::TypedStorage<8, 32, ::std::string> mAppId;
96 ::ll::TypedStorage<8, 32, ::std::string> mAppTenantId;
97 ::ll::TypedStorage<8, 32, ::std::string> mServerPublicIP;
98 ::ll::TypedStorage<8, 24, ::std::vector<::MappedPorts>> mPortMappings;
99 ::ll::TypedStorage<4, 8, ::Bedrock::Services::DiscoveryConfig> mDiscoveryConfig;
100 // NOLINTEND
101
102public:
103 // prevent constructor by default
105
106public:
107 // member functions
108 // NOLINTBEGIN
109 MCAPI explicit PropertiesSettings(::std::string const& filename);
110
111 MCAPI ::std::unordered_map<::std::string, ::std::string> getChangedValues() const;
112
113 MCAPI ::SharedTypes::Legacy::Difficulty getDifficulty() const;
114
115 MCAPI ::CommandPermissionLevel getOpPermissionLevel() const;
116
117 MCAPI ~PropertiesSettings();
118 // NOLINTEND
119
120public:
121 // static functions
122 // NOLINTBEGIN
123 MCAPI static bool parseBoolValue(::std::string const& value);
124
125 MCAPI static ::GameType parseGameMode(::std::string const& value);
126
127 MCAPI static int parseInt32Value(::std::string const& value);
128 // NOLINTEND
129
130public:
131 // constructor thunks
132 // NOLINTBEGIN
133 MCAPI void* $ctor(::std::string const& filename);
134 // NOLINTEND
135
136public:
137 // destructor thunk
138 // NOLINTBEGIN
139 MCAPI void $dtor();
140 // NOLINTEND
141};
Definition PropertiesSettings.h:27
Definition MappedPorts.h:5