LeviLamina
Loading...
Searching...
No Matches
ClientStartJoinLevelEvent.h
1#include "ll/api/event/client/ClientEvent.h"
2
4
5namespace ll::event::inline client {
6
7class ClientStartJoinLevelEvent final : public ll::event::client::ClientEvent {
8 bool mJoiningLocalServer;
9 std::string const& mMultiplayerCorrelationId;
10 std::string const& mServerName;
11 std::string const& mWorldName;
12 NetworkType mNetworkTypeOverride;
13 Social::MultiplayerServiceIdentifier mService;
14 PlayerJoinWorldContext const& mContext;
15
16public:
17 constexpr ClientStartJoinLevelEvent(
18 ClientInstance& client,
19 bool isJoiningLocalServer,
20 std::string const& multiplayerCorrelationId,
21 std::string const& serverName,
22 std::string const& worldName,
23 NetworkType networkTypeOverride,
24 Social::MultiplayerServiceIdentifier service,
25 PlayerJoinWorldContext const& context
26 )
27 : ClientEvent(client),
28 mJoiningLocalServer(isJoiningLocalServer),
29 mMultiplayerCorrelationId(multiplayerCorrelationId),
30 mServerName(serverName),
31 mWorldName(worldName),
32 mNetworkTypeOverride(networkTypeOverride),
33 mService(service),
34 mContext(context) {}
35
36 LLAPI void serialize(CompoundTag&) const override;
37
38 LLNDAPI bool isJoiningLocalServer() const;
39 LLNDAPI std::string const& multiplayerCorrelationId() const;
40 LLNDAPI std::string const& serverName() const;
41 LLNDAPI std::string const& worldName() const;
42 LLNDAPI NetworkType networkTypeOverride() const;
43 LLNDAPI Social::MultiplayerServiceIdentifier service() const;
44 LLNDAPI PlayerJoinWorldContext const& context() const;
45 LLNDAPI std::string const& partyId() const;
46 LLNDAPI bool isPartyLeader() const;
47 LLNDAPI bool isPartyDestination() const;
48 LLNDAPI bool isServerTransfer() const;
49 LLNDAPI bool isReconnect() const;
50};
51
52} // namespace ll::event::inline client
Definition ClientInstance.h:5
Definition CompoundTag.h:23
Definition ClientEvent.h:10
Definition PlayerJoinWorldContext.h:5