LeviLamina
Loading...
Searching...
No Matches
LevelEventListener.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7#include "mc/world/events/EventResult.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class Level;
13class Player;
14class WorldClock;
16// clang-format on
17
19public:
20 // LevelEventListener inner types define
21 using EventType = ::LevelNotificationEvent;
22
23public:
24 // virtual functions
25 // NOLINTBEGIN
26 virtual ~LevelEventListener() = default;
27
28 virtual ::EventResult onLevelInitialized(::Level& level);
29
30 virtual ::EventResult onLevelAddedPlayer(::Player& player);
31
32 virtual ::EventResult onLevelRemovedPlayer(::Player& player);
33
34 virtual ::EventResult onLevelRemovedActor(::Actor& actor);
35
36 virtual ::EventResult onLevelTick(::Level& level);
37
38 virtual ::EventResult onLevelTickStart(::Level& level);
39
40 virtual ::EventResult onLevelTickEnd(::Level&);
41
42 virtual ::EventResult onLevelWeatherChange(
43 ::std::string const& dimension,
44 bool wasRaining,
45 bool wasLightning,
46 bool isRaining,
47 bool isLightning
48 );
49
50 virtual ::EventResult onRealmsStory(::std::string const& storyData);
51
52 virtual ::EventResult onWorldClockTimeModified(::Bedrock::NotNullNonOwnerPtr<::WorldClock> const clock);
53
54 virtual ::EventResult onWorldClockPaused(::Bedrock::NotNullNonOwnerPtr<::WorldClock> const clock);
55
56 virtual ::EventResult onWorldClockResumed(::Bedrock::NotNullNonOwnerPtr<::WorldClock> const clock);
57
58 virtual ::EventResult onWorldClockTimeMarker(
59 ::Bedrock::NotNullNonOwnerPtr<::WorldClock> const clock,
60 ::std::string const& timeMarkerName
61 );
62
63 virtual ::EventResult onEvent(::LevelNotificationEvent const& event);
64 // NOLINTEND
65
66public:
67 // virtual function thunks
68 // NOLINTBEGIN
69 MCFOLD ::EventResult $onLevelInitialized(::Level& level);
70
71 MCFOLD ::EventResult $onLevelAddedPlayer(::Player& player);
72
73 MCFOLD ::EventResult $onLevelRemovedPlayer(::Player& player);
74
75 MCFOLD ::EventResult $onLevelRemovedActor(::Actor& actor);
76
77 MCFOLD ::EventResult $onLevelTick(::Level& level);
78
79 MCFOLD ::EventResult $onLevelTickStart(::Level& level);
80
81 MCFOLD ::EventResult $onLevelTickEnd(::Level&);
82
83 MCFOLD ::EventResult $onLevelWeatherChange(
84 ::std::string const& dimension,
85 bool wasRaining,
86 bool wasLightning,
87 bool isRaining,
88 bool isLightning
89 );
90
91 MCFOLD ::EventResult $onRealmsStory(::std::string const& storyData);
92
93 MCFOLD ::EventResult $onWorldClockTimeModified(::Bedrock::NotNullNonOwnerPtr<::WorldClock> const clock);
94
95 MCFOLD ::EventResult $onWorldClockPaused(::Bedrock::NotNullNonOwnerPtr<::WorldClock> const clock);
96
97 MCFOLD ::EventResult $onWorldClockResumed(::Bedrock::NotNullNonOwnerPtr<::WorldClock> const clock);
98
99 MCFOLD ::EventResult $onWorldClockTimeMarker(
100 ::Bedrock::NotNullNonOwnerPtr<::WorldClock> const clock,
101 ::std::string const& timeMarkerName
102 );
103
104 MCFOLD ::EventResult $onEvent(::LevelNotificationEvent const& event);
105
106
107 // NOLINTEND
108};
Definition Actor.h:113
Definition LevelEventListener.h:18
Definition Level.h:254
Definition Player.h:129
Definition WorldClock.h:23
Definition LevelNotificationEvent.h:43