Sparkle 0.0.1
Loading...
Searching...
No Matches
spk_ievent.hpp
1#pragma once
2
3#include "structure/system/time/spk_timestamp.hpp"
4#include "utils/spk_time_utils.hpp"
5
6namespace spk
7{
12 struct IEvent
13 {
17 bool isConsumed = false;
21 Timestamp timestamp = spk::TimeUtils::getTime();
22 };
23}
Point in time with conversion helpers and arithmetic with Duration.
Definition spk_timestamp.hpp:16
Base event metadata shared by all system events.
Definition spk_ievent.hpp:13
bool isConsumed
Indicates whether the event has been handled.
Definition spk_ievent.hpp:17
Timestamp timestamp
Timestamp when the event was created.
Definition spk_ievent.hpp:21