LeviLamina
Loading...
Searching...
No Matches
CloudServer.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/raknet/CloudAllocator.h"
7#include "mc/deps/raknet/PI2_LostConnectionReason.h"
8#include "mc/deps/raknet/PluginInterface2.h"
9#include "mc/deps/raknet/PluginReceiveResult.h"
10#include "mc/deps/raknet/SystemAddress.h"
11#include "mc/deps/raknet/data_structures/List.h"
12
13// auto generated forward declare list
14// clang-format off
15namespace DataStructures { class Hash; }
16namespace DataStructures { class OrderedList; }
17namespace RakNet { class CloudServerQueryFilter; }
18namespace RakNet { struct CloudKey; }
19namespace RakNet { struct Packet; }
20namespace RakNet { struct RakNetGUID; }
21// clang-format on
22
23namespace RakNet {
24
26public:
27 // CloudServer inner types declare
28 // clang-format off
30 struct CloudData;
31 struct CloudDataList;
33 struct GetRequest;
34 struct KeySubscriberID;
35 struct RemoteCloudClient;
36 struct RemoteServer;
37 // clang-format on
38
39 // CloudServer inner types define
40 struct BufferedGetResponseFromServer {
41 public:
42 // member variables
43 // NOLINTBEGIN
47 // NOLINTEND
48
49 public:
50 // prevent constructor by default
51 BufferedGetResponseFromServer& operator=(BufferedGetResponseFromServer const&);
52 BufferedGetResponseFromServer(BufferedGetResponseFromServer const&);
53 BufferedGetResponseFromServer();
54 };
55
56 struct CloudData {
57 public:
58 // member variables
59 // NOLINTBEGIN
70 // NOLINTEND
71
72 public:
73 // prevent constructor by default
74 CloudData& operator=(CloudData const&);
75 CloudData(CloudData const&);
76 CloudData();
77 };
78
79 struct CloudDataList {
80 public:
81 // member variables
82 // NOLINTBEGIN
88 // NOLINTEND
89
90 public:
91 // prevent constructor by default
92 CloudDataList& operator=(CloudDataList const&);
93 CloudDataList(CloudDataList const&);
94 CloudDataList();
95 };
96
97 struct CloudQueryWithAddresses {
98 public:
99 // member variables
100 // NOLINTBEGIN
103 // NOLINTEND
104
105 public:
106 // prevent constructor by default
107 CloudQueryWithAddresses& operator=(CloudQueryWithAddresses const&);
108 CloudQueryWithAddresses(CloudQueryWithAddresses const&);
109 CloudQueryWithAddresses();
110 };
111
112 struct GetRequest {
113 public:
114 // member variables
115 // NOLINTBEGIN
121 // NOLINTEND
122
123 public:
124 // prevent constructor by default
125 GetRequest& operator=(GetRequest const&);
126 GetRequest(GetRequest const&);
127 GetRequest();
128 };
129
130 struct KeySubscriberID {
131 public:
132 // member variables
133 // NOLINTBEGIN
136 // NOLINTEND
137
138 public:
139 // prevent constructor by default
140 KeySubscriberID& operator=(KeySubscriberID const&);
141 KeySubscriberID(KeySubscriberID const&);
142 KeySubscriberID();
143 };
144
145 struct RemoteCloudClient {
146 public:
147 // member variables
148 // NOLINTBEGIN
152 // NOLINTEND
153
154 public:
155 // prevent constructor by default
156 RemoteCloudClient& operator=(RemoteCloudClient const&);
157 RemoteCloudClient(RemoteCloudClient const&);
158 RemoteCloudClient();
159 };
160
161 struct RemoteServer {
162 public:
163 // member variables
164 // NOLINTBEGIN
170 // NOLINTEND
171
172 public:
173 // prevent constructor by default
174 RemoteServer& operator=(RemoteServer const&);
175 RemoteServer(RemoteServer const&);
176 RemoteServer();
177 };
178
179public:
180 // member variables
181 // NOLINTBEGIN
182 ::ll::TypedStorage<8, 8, uint64> maxUploadBytesPerClient;
183 ::ll::TypedStorage<8, 8, uint64> maxBytesPerDowload;
184 ::ll::UntypedStorage<8, 16> dataRepository;
185 ::ll::UntypedStorage<8, 16> remoteSystems;
186 ::ll::UntypedStorage<8, 16> remoteServers;
187 ::ll::UntypedStorage<8, 16> getRequests;
188 ::ll::TypedStorage<8, 8, uint64> nextGetRequestsCheck;
189 ::ll::TypedStorage<4, 4, uint> nextGetRequestId;
190 ::ll::TypedStorage<8, 16, ::DataStructures::List<::RakNet::CloudServerQueryFilter*>> queryFilters;
191 ::ll::TypedStorage<8, 136, ::RakNet::SystemAddress> forceAddress;
192 // NOLINTEND
193
194public:
195 // virtual functions
196 // NOLINTBEGIN
197 virtual ~CloudServer() /*override*/ = default;
198
199 virtual void Update() /*override*/;
200
201 virtual ::RakNet::PluginReceiveResult OnReceive(::RakNet::Packet*) /*override*/;
202
203 virtual void OnClosedConnection(
206 ::RakNet::PI2_LostConnectionReason
207 ) /*override*/;
208
209 virtual void OnRakPeerShutdown() /*override*/;
210
211 virtual void OnPostRequest(::RakNet::Packet*);
212
213 virtual void OnReleaseRequest(::RakNet::Packet*);
214
215 virtual void OnGetRequest(::RakNet::Packet*);
216
217 virtual void OnUnsubscribeRequest(::RakNet::Packet*);
218
219 virtual void OnServerToServerGetRequest(::RakNet::Packet*);
220
221 virtual void OnServerToServerGetResponse(::RakNet::Packet*);
222 // NOLINTEND
223
224public:
225 // virtual function thunks
226 // NOLINTBEGIN
227
228 // NOLINTEND
229};
230
231} // namespace RakNet
Definition Hash.h:7
Definition OrderedList.h:7
Definition CloudAllocator.h:12
Definition CloudServerQueryFilter.h:7
Definition CloudServer.h:25
Definition PluginInterface2.h:20
Definition CloudKey.h:10
Definition CloudServer.h:79
Definition CloudServer.h:56
Definition CloudServer.h:112
Definition CloudServer.h:130
Definition CloudServer.h:145
Definition CloudServer.h:161
Definition Packet.h:7
Definition RakNetGUID.h:7
Definition SystemAddress.h:7
Definition Alias.h:14