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
18struct AsyncJoinError;
19// clang-format on
20
22public:
23 // AsyncJoinTaskManager inner types declare
24 // clang-format off
26 // clang-format on
27
28 // AsyncJoinTaskManager inner types define
30 public:
31 // member variables
32 // NOLINTBEGIN
36 // NOLINTEND
37
38 public:
39 // prevent constructor by default
43
44 public:
45 // member functions
46 // NOLINTBEGIN
48 // NOLINTEND
49
50 public:
51 // destructor thunk
52 // NOLINTBEGIN
53 MCNAPI void $dtor();
54 // NOLINTEND
55 };
56
57public:
58 // member variables
59 // NOLINTBEGIN
67 // NOLINTEND
68
69public:
70 // prevent constructor by default
74
75public:
76 // virtual functions
77 // NOLINTBEGIN
78 // vIndex: 0
79 virtual ~AsyncJoinTaskManager() /*override*/;
80 // NOLINTEND
81
82public:
83 // member functions
84 // NOLINTBEGIN
85 MCNAPI ::nonstd::expected<void, ::AsyncJoinError> _handleAllVerdictsTaskCompletion(
86 ::SubClientId subClientId,
87 uint64 verdictId,
88 ::std::vector<::Bedrock::Threading::SharedAsync<::nonstd::expected<void, ::AsyncJoinError>>> const& results
89 );
90
91 MCNAPI ::Bedrock::Threading::Async<::nonstd::expected<void, ::AsyncJoinError>> handleAsyncJoinCallbacks(
92 ::NetworkIdentifier const& source,
93 ::std::variant<
94 ::std::reference_wrapper<::ConnectionRequest const>,
95 ::std::reference_wrapper<::SubClientConnectionRequest const>> const& request,
96 ::SubClientId subClientId
97 );
98
99 MCNAPI ::std::unique_ptr<uint64, ::std::function<void(uint64*)>> registerAsyncJoinCallback(
101 ::NetworkIdentifier const&,
102 ::std::variant<
103 ::std::reference_wrapper<::ConnectionRequest const>,
104 ::std::reference_wrapper<::SubClientConnectionRequest const>> const&,
105 ::SubClientId,
106 ::std::shared_ptr<::AsyncVerdictPromise>
107 )> callback
108 );
109 // NOLINTEND
110
111public:
112 // destructor thunk
113 // NOLINTBEGIN
114 MCNAPI void $dtor();
115 // NOLINTEND
116
117public:
118 // vftables
119 // NOLINTBEGIN
120 MCNAPI static void** $vftable();
121 // NOLINTEND
122};
Definition AsyncJoinTaskManager.h:21
MCAPI ::Bedrock::Threading::Async<::nonstd::expected< void, ::AsyncJoinError > > handleAsyncJoinCallbacks(::NetworkIdentifier const &source, ::std::variant< ::std::reference_wrapper<::ConnectionRequest const >, ::std::reference_wrapper<::SubClientConnectionRequest const > > const &request, ::SubClientId subClientId)
MCAPI ::nonstd::expected< void, ::AsyncJoinError > _handleAllVerdictsTaskCompletion(::SubClientId subClientId, uint64 verdictId, ::std::vector<::Bedrock::Threading::SharedAsync<::nonstd::expected< void, ::AsyncJoinError > > > const &results)
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:10
Definition EnableNonOwnerReferences.h:7
Definition SharedAsync.h:8
Definition ConnectionRequest.h:26
Definition NetworkIdentifier.h:10
Definition SubClientConnectionRequest.h:20
Definition move_only_function.h:9
Definition AsyncJoinError.h:5
Definition AsyncJoinTaskManager.h:29
Definition Alias.h:14