LeviLamina
Loading...
Searching...
No Matches
Event.h
1
#pragma once
2
3
#include <concepts>
4
5
#include "ll/api/base/Macro.h"
6
#include "ll/api/event/EventId.h"
7
8
class
CompoundTag
;
9
10
namespace
ll::event {
11
template
<
class
T>
12
class
Cancellable
;
13
class
CallbackStream;
14
15
class
Event
{
16
private
:
17
template
<
class
T>
18
friend
class ::ll::event::Cancellable;
19
20
friend
class
CallbackStream;
21
22
bool
mCancelled{
false
};
23
24
LLAPI
void
serializeWithCancel(
CompoundTag
&)
const
;
25
LLAPI
void
deserializeWithCancel(
CompoundTag
const
&);
26
27
protected
:
28
constexpr
Event
() =
default
;
29
30
public
:
31
LLAPI
virtual
~Event
() =
default
;
32
33
LLAPI
virtual
void
serialize
(
CompoundTag
&)
const
;
34
LLAPI
virtual
void
deserialize(
CompoundTag
const
&);
35
36
LLAPI
virtual
EventId
getId()
const
;
37
38
static
constexpr
EventIdView
CustomEventId{EmptyEventId};
39
};
40
}
// namespace ll::event
CompoundTag
Definition
CompoundTag.h:13
ll::event::Cancellable
Definition
Event.h:12
ll::event::EventIdView
Definition
EventId.h:17
ll::event::EventId
Definition
EventId.h:8
ll::event::Event
Definition
Event.h:15
serialize
Definition
serialize.h:11
src
ll
api
event
Event.h
Generated on Fri Jun 13 2025 05:04:17 for LeviLamina by
1.12.0