LeviLamina
Loading...
Searching...
No Matches
GameArguments.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/game/LocalWorldConnectArgumentHandler.h"
7#include "mc/client/game/SessionIdArgumentHandler.h"
8#include "mc/client/resources/LoadImportedLevelData.h"
9#include "mc/deps/application/UriListener.h"
10#include "mc/deps/core/minecraft/threading/EnableQueueForMainThread.h"
11#include "mc/deps/core/threading/Async.h"
12#include "mc/deps/core/threading/TaskGroup.h"
13#include "mc/deps/core/utility/pub_sub/Subscription.h"
14#include "mc/deps/json/ValueType.h"
15
16// auto generated forward declare list
17// clang-format off
18class ActivationUri;
20class IMinecraftGame;
21namespace Json { class Value; }
22namespace Realms { struct RealmId; }
23// clang-format on
24
26public:
27 // member variables
28 // NOLINTBEGIN
29 ::ll::TypedStorage<8, 8, ::IMinecraftGame&> mMinecraft;
30 ::ll::TypedStorage<8, 24, ::std::vector<::ActivationUri>> mQueuedUris;
31 ::ll::TypedStorage<8, 24, ::std::vector<::ActivationUri>> mStartupUris;
32 ::ll::TypedStorage<8, 32, ::SessionIdArgumentHandler> mSessionIdArgumentHandler;
33 ::ll::TypedStorage<8, 32, ::LocalWorldConnectArgumentHandler> mLocalWorldConnectArgumentHandler;
34 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mIdentityTimeoutStart;
35 ::ll::TypedStorage<1, 1, bool> mIdentityListenerRegistered;
36 ::ll::TypedStorage<1, 1, bool> mPlayfabSignInComplete;
37 ::ll::TypedStorage<8, 336, ::TaskGroup> mTaskGroup;
38 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mSignInSubscription;
39 // NOLINTEND
40
41public:
42 // prevent constructor by default
43 GameArguments& operator=(GameArguments const&);
44 GameArguments(GameArguments const&);
45 GameArguments();
46
47public:
48 // virtual functions
49 // NOLINTBEGIN
50 virtual ~GameArguments() /*override*/ = default;
51
52 virtual void tick() /*override*/;
53
54 virtual void onUri(::ActivationUri const& uri) /*override*/;
55
56 virtual void executeStartupUris() /*override*/;
57 // NOLINTEND
58
59public:
60 // member functions
61 // NOLINTBEGIN
62 MCAPI explicit GameArguments(::IMinecraftGame& minecraft);
63
64 MCAPI void _checkStoreArguments(::ActivationUri const& uri);
65
66 MCAPI void _deeplinkToServer(::std::string const& connectionUrl, int connectionPort, bool askForConfirmation);
67
68 MCAPI ::std::string _getStringForArgument(
69 ::std::unordered_map<::std::string, ::std::string> const& arguments,
70 ::std::string const& argument
71 ) const;
72
73 MCAPI void _goBackPushOrReplaceRoute(::std::string const& route);
74
75 MCAPI void _import(
76 ::std::shared_ptr<::DefaultImportContext> context,
77 ::std::string const& mcContentPath,
78 bool fromTemp,
79 ::LoadImportedLevelData loadLevelData
80 );
81
82 MCAPI void _onUri(::ActivationUri const& uri);
83
84 MCAPI void _queryForRealmAndJoin(::Realms::RealmId const& realmId);
85
86 MCAPI void _queryForRealmAndOpenStories(::Realms::RealmId const& realmId);
87
88 MCAPI void _requestAddEduServer(::std::string const& serverId);
89
90 MCAPI void _requestJoinEduServer(::std::string const& serverId);
91
92 MCAPI ::Bedrock::Threading::Async<void> _thirdPartyServersFetched();
93 // NOLINTEND
94
95public:
96 // static functions
97 // NOLINTBEGIN
98 MCAPI static bool _validateJsonMember(
99 ::Json::Value const& jsonBody,
100 ::std::string const& memberName,
101 ::Json::ValueType const& valueType
102 );
103 // NOLINTEND
104
105public:
106 // constructor thunks
107 // NOLINTBEGIN
108 MCAPI void* $ctor(::IMinecraftGame& minecraft);
109 // NOLINTEND
110
111public:
112 // virtual function thunks
113 // NOLINTBEGIN
114 MCAPI void $tick();
115
116 MCAPI void $onUri(::ActivationUri const& uri);
117
118 MCAPI void $executeStartupUris();
119 // NOLINTEND
120};
Definition ActivationUri.h:5
Definition EnableQueueForMainThread.h:10
Definition DefaultImportContext.h:5
Definition GameArguments.h:5
Definition IMinecraftGame.h:5
Definition Value.h:16
Definition UriListener.h:10
Definition RealmId.h:7