LeviLamina
Loading...
Searching...
No Matches
IConnectionEventing.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class Level;
8// clang-format on
9
11public:
12 // IConnectionEventing inner types define
13 enum class ConnectionFailureReason : int {
14 Unknown = -1,
15 MismatchedMinecraftProtocol = 1,
16 MismatchedRaknetVersion = 2,
17 };
18
19 enum class PlayerJoinWorldAttemptState : int {
20 Unknown = 0,
21 AttemptingToJoin = 1,
22 TimedOutAttemptingJoin = 2,
23 FailedToJoin = 3,
24 SuccessfulJoin = 4,
25 Canceled = 5,
26 MissingEventDetected = 6,
27 };
28
29 enum class ServerConnectionOutcome : int {
30 Success = 0,
31 Failed = 1,
32 FailedUserOffline = 2,
33 FailedServerFull = 3,
34 FailedServerOffline = 4,
35 };
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 virtual ~IConnectionEventing() = default;
41
42 virtual void fireServerConnectionEvent(
43 ::IConnectionEventing::ServerConnectionOutcome outcome,
44 ::std::chrono::milliseconds pingLatency,
45 double timeElapsed,
46 ::std::string const& creatorName,
47 ::std::string const& worldId
48 ) = 0;
49
50 virtual void fireEventOnSuccessfulClientLogin(::Level const* level) = 0;
51 // NOLINTEND
52};
Definition IConnectionEventing.h:10
Definition Level.h:254