LeviLamina
Loading...
Searching...
No Matches
AsyncJoinTaskManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/SubClientId.h"
7#include "mc/deps/core/threading/Async.h"
8#include "mc/deps/core/threading/SharedAsync.h"
9#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
10#include "mc/platform/brstd/move_only_function.h"
11
12// auto generated forward declare list
13// clang-format off
18class TaskGroup;
19struct AsyncJoinAllow;
20struct AsyncJoinDeny;
21// clang-format on
22
24public:
25 // AsyncJoinTaskManager inner types declare
26 // clang-format off
28 // clang-format on
29
30 // AsyncJoinTaskManager inner types define
32 public:
33 // member variables
34 // NOLINTBEGIN
38 // NOLINTEND
39
40 public:
41 // prevent constructor by default
45
46 public:
47 // member functions
48 // NOLINTBEGIN
50 // NOLINTEND
51
52 public:
53 // destructor thunk
54 // NOLINTBEGIN
55 MCNAPI void $dtor();
56 // NOLINTEND
57 };
58
59public:
60 // member variables
61 // NOLINTBEGIN
70 // NOLINTEND
71
72public:
73 // prevent constructor by default
77
78public:
79 // virtual functions
80 // NOLINTBEGIN
81 // vIndex: 0
82 virtual ~AsyncJoinTaskManager() /*override*/;
83 // NOLINTEND
84
85public:
86 // member functions
87 // NOLINTBEGIN
89 ::std::unique_ptr<::TaskGroup> taskGroup,
90 ::nonstd::expected<::AsyncJoinAllow, ::AsyncJoinDeny> defaultJoinVerdict
91 );
92
93 MCNAPI ::nonstd::expected<::AsyncJoinAllow, ::AsyncJoinDeny> _handleAllVerdictsTaskCompletion(
94 ::SubClientId subClientId,
95 uint64 verdictId,
97 ::std::variant<::std::monostate, ::AsyncJoinAllow, ::AsyncJoinDeny>>> const& results
98 );
99
100 MCNAPI ::Bedrock::Threading::Async<::nonstd::expected<::AsyncJoinAllow, ::AsyncJoinDeny>> handleAsyncJoinCallbacks(
101 ::NetworkIdentifier const& source,
102 ::std::variant<
103 ::std::reference_wrapper<::ConnectionRequest const>,
104 ::std::reference_wrapper<::SubClientConnectionRequest const>> const& request,
105 ::SubClientId subClientId
106 );
107
108 MCNAPI ::std::unique_ptr<uint64, ::std::function<void(uint64*)>> registerAsyncJoinCallback(
110 ::NetworkIdentifier const&,
111 ::std::variant<
112 ::std::reference_wrapper<::ConnectionRequest const>,
113 ::std::reference_wrapper<::SubClientConnectionRequest const>> const&,
114 ::SubClientId,
115 ::std::shared_ptr<::AsyncVerdictPromise>
116 )> callback
117 );
118 // NOLINTEND
119
120public:
121 // constructor thunks
122 // NOLINTBEGIN
123 MCNAPI void* $ctor(
124 ::std::unique_ptr<::TaskGroup> taskGroup,
125 ::nonstd::expected<::AsyncJoinAllow, ::AsyncJoinDeny> defaultJoinVerdict
126 );
127 // NOLINTEND
128
129public:
130 // destructor thunk
131 // NOLINTBEGIN
132 MCNAPI void $dtor();
133 // NOLINTEND
134
135public:
136 // vftables
137 // NOLINTBEGIN
138 MCNAPI static void** $vftable();
139 // NOLINTEND
140};
Definition AsyncJoinTaskManager.h:23
MCAPI ::nonstd::expected<::AsyncJoinAllow, ::AsyncJoinDeny > _handleAllVerdictsTaskCompletion(::SubClientId subClientId, uint64 verdictId, ::std::vector<::Bedrock::Threading::SharedAsync< ::std::variant<::std::monostate, ::AsyncJoinAllow, ::AsyncJoinDeny > > > const &results)
MCAPI void * $ctor(::std::unique_ptr<::TaskGroup > taskGroup, ::nonstd::expected<::AsyncJoinAllow, ::AsyncJoinDeny > defaultJoinVerdict)
MCAPI AsyncJoinTaskManager(::std::unique_ptr<::TaskGroup > taskGroup, ::nonstd::expected<::AsyncJoinAllow, ::AsyncJoinDeny > defaultJoinVerdict)
MCAPI ::Bedrock::Threading::Async<::nonstd::expected<::AsyncJoinAllow, ::AsyncJoinDeny > > handleAsyncJoinCallbacks(::NetworkIdentifier const &source, ::std::variant< ::std::reference_wrapper<::ConnectionRequest const >, ::std::reference_wrapper<::SubClientConnectionRequest const > > const &request, ::SubClientId subClientId)
MCAPI ::std::unique_ptr< uint64, ::std::function< void(uint64 *)> > registerAsyncJoinCallback(::brstd::move_only_function< void(::NetworkIdentifier const &, ::std::variant< ::std::reference_wrapper<::ConnectionRequest const >, ::std::reference_wrapper<::SubClientConnectionRequest const > > const &, ::SubClientId, ::std::shared_ptr<::AsyncVerdictPromise >)> callback)
static MCAPI void ** $vftable()
MCAPI void $dtor()
Definition AsyncVerdictPromise.h:11
Definition EnableNonOwnerReferences.h:7
Definition SharedAsync.h:8
Definition ConnectionRequest.h:27
Definition NetworkIdentifier.h:10
Definition SubClientConnectionRequest.h:20
Definition TaskGroup.h:53
Definition move_only_function.h:9
Definition AsyncJoinAllow.h:5
Definition AsyncJoinDeny.h:5
Definition AsyncJoinTaskManager.h:31
Definition Alias.h:14