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
14
class
Event
{
15
private
:
16
template
<
class
T>
17
friend
class ::ll::event::Cancellable;
18
19
bool
mCancelled{
false
};
20
21
LLAPI
void
serializeWithCancel(
CompoundTag
&)
const
;
22
LLAPI
void
deserializeWithCancel(
CompoundTag
const
&);
23
24
protected
:
25
constexpr
Event
() =
default
;
26
27
public
:
28
LLAPI
virtual
~Event
() =
default
;
29
30
LLAPI
virtual
void
serialize
(
CompoundTag
&)
const
;
31
LLAPI
virtual
void
deserialize(
CompoundTag
const
&);
32
33
LLAPI
virtual
EventId
getId()
const
;
34
35
static
constexpr
EventIdView
CustomEventId{EmptyEventId};
36
};
37
}
// 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:14
serialize
Definition
serialize.h:11
src
ll
api
event
Event.h
Generated on Sat Apr 26 2025 05:55:20 for LeviLamina by
1.12.0