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