LeviLamina
Loading...
Searching...
No Matches
INetworkGameConnector.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/threading/Async.h"
7#include "mc/deps/core/utility/NonOwnerPointer.h"
8#include "mc/events/IMinecraftEventing.h"
9#include "mc/events/NetworkType.h"
10
11// auto generated forward declare list
12// clang-format off
13class IClientInstance;
14class RealmsAPI;
18namespace Realms { struct RealmId; }
19namespace Realms { struct World; }
20namespace Social { class GameConnectionInfo; }
21namespace Social { class MultiplayerGameInfo; }
22// clang-format on
23
25public:
26 // virtual functions
27 // NOLINTBEGIN
28 virtual ~INetworkGameConnector() = default;
29
30 virtual void joinRealmsGame(
31 ::Realms::World const& realm,
32 ::Social::GameConnectionInfo const& gameConnection,
33 ::PlayerJoinWorldContext context
34 ) = 0;
35
36 virtual void joinRemoteServerWithAddress(
37 ::Social::GameConnectionInfo gameConnection,
38 ::std::string const& serverName,
39 ::std::string const& worldName,
40 ::NetworkType networkTypeOverride,
41 ::PlayerJoinWorldContext context
42 ) = 0;
43
44 virtual ::Bedrock::Threading::Async<void>
45 joinMultiplayerGame(::Social::MultiplayerGameInfo const& gameInfo, ::PlayerJoinWorldContext context) = 0;
46
47 virtual void setReconnectionCookie(
48 ::std::optional<::std::variant<
49 ::GameConnectionInfoEx,
50 ::Social::MultiplayerGameInfo,
51 ::ExperienceConnectionData,
52 ::Realms::RealmId>> const& reconnectCookie
53 ) = 0;
54
55 virtual ::std::optional<::std::variant<
56 ::GameConnectionInfoEx,
57 ::Social::MultiplayerGameInfo,
58 ::ExperienceConnectionData,
59 ::Realms::RealmId>>
60 getReconnectionCookie() = 0;
61
62 virtual void joinRealmFromConnectLink(::Realms::World const& world, ::PlayerJoinWorldContext context) = 0;
63
64 virtual ::Bedrock::NotNullNonOwnerPtr<::IClientInstance> getPrimaryClientInstance() = 0;
65
66 virtual ::std::weak_ptr<::RealmsAPI> getRealms() = 0;
67
68 virtual void joinRealm(
69 ::Realms::World const& world,
70 ::IMinecraftEventing::RealmConnectionFlow telemetryEventingConnectionFlow,
71 ::PlayerJoinWorldContext context
72 ) = 0;
73 // NOLINTEND
74
75public:
76 // virtual function thunks
77 // NOLINTBEGIN
78
79 // NOLINTEND
80};
Definition IClientInstance.h:5
Definition INetworkGameConnector.h:5
Definition RealmsAPI.h:5
Definition GameConnectionInfo.h:21
Definition MultiplayerGameInfo.h:7
Definition ExperienceConnectionData.h:5
Definition GameConnectionInfoEx.h:5
Definition PlayerJoinWorldContext.h:5
Definition RealmId.h:7
Definition World.h:7