LeviLamina
Loading...
Searching...
No Matches
RakPeerHelper.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/raknet/StartupResult.h"
7
8// auto generated forward declare list
9// clang-format off
11namespace RakNet { class RakPeerInterface; }
12namespace RakNet { struct SocketDescriptor; }
13// clang-format on
14
16public:
17 // RakPeerHelper inner types declare
18 // clang-format off
20 // clang-format on
21
22 // RakPeerHelper inner types define
24 public:
25 // virtual functions
26 // NOLINTBEGIN
27 // vIndex: 0
28 virtual ~IPSupportInterface();
29
30 // vIndex: 1
31 virtual bool useIPv4Only() const = 0;
32
33 // vIndex: 2
34 virtual bool useIPv6Only() const = 0;
35
36 // vIndex: 3
37 virtual ushort getDefaultGamePort() const = 0;
38
39 // vIndex: 4
40 virtual ushort getDefaultGamePortv6() const = 0;
41 // NOLINTEND
42
43 public:
44 // destructor thunk
45 // NOLINTBEGIN
46 MCFOLD void $dtor();
47 // NOLINTEND
48
49 public:
50 // virtual function thunks
51 // NOLINTBEGIN
52
53 // NOLINTEND
54
55 public:
56 // vftables
57 // NOLINTBEGIN
58 MCAPI static void** $vftable();
59 // NOLINTEND
60 };
61
62 enum class PeerPurpose : int {
63 Gameplay = 0,
64 LanDiscovery = 1,
65 Count = 2,
66 };
67
68 enum class IPVersion : int {
69 IPv4 = 0,
70 IPv6 = 1,
71 Count = 2,
72 };
73
74public:
75 // member variables
76 // NOLINTBEGIN
77 ::ll::TypedStorage<4, 4, ::RakNet::StartupResult> mResult;
78 ::ll::TypedStorage<4, 8, int[2]> mConnectionIndices;
79 ::ll::TypedStorage<2, 4, ushort[2]> mBoundPorts;
80 ::ll::TypedStorage<8, 8, ::RakPeerHelper::IPSupportInterface&> mIPSupportInterface;
81 // NOLINTEND
82
83public:
84 // member functions
85 // NOLINTBEGIN
86 MCAPI void LogIPSupport(::RakPeerHelper::PeerPurpose purpose);
87
88 MCAPI ::RakNet::StartupResult _startupInternal(
89 ::gsl::not_null<::RakNet::RakPeerInterface*> peer,
90 ::ConnectionDefinition const& definition,
92 int& socketCount,
93 int ipv6Index
94 );
95
96 MCAPI ::RakNet::StartupResult peerStartup(
98 ::ConnectionDefinition const& definition,
99 ::RakPeerHelper::PeerPurpose purpose
100 );
101 // NOLINTEND
102};
Definition RakPeerInterface.h:32
Definition RakPeerHelper.h:23
Definition RakPeerHelper.h:15
Definition ConnectionDefinition.h:5
Definition SocketDescriptor.h:7