Divide Framework
0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
IEvent.cpp
Go to the documentation of this file.
1
7
8
9
#include "
Event/IEvent.h
"
10
11
#include "
Engine.h
"
12
#include "
util/Timer.h
"
13
14
namespace
ECS
{
namespace
Event {
15
16
IEvent::IEvent
(
ECSEngine
* engine,
EntityId
sourceEntityID,
EventTypeId
typeId) :
17
m_TypeId(typeId),
18
m_SourceEntityID(sourceEntityID)
19
{
20
assert(engine !=
nullptr
&&
"ECS engine not initialized!"
);
21
this->
m_TimeCreated
= engine->
ECS_EngineTime
->
GetTimeStamp
();
22
}
23
24
}}
// namespace ECS::Event
Engine.h
IEvent.h
Timer.h
ECS::ECSEngine
Definition:
Engine.h:37
ECS::ECSEngine::ECS_EngineTime
util::Timer * ECS_EngineTime
Definition:
Engine.h:50
ECS::Event::IEvent::m_TimeCreated
EventTimestamp m_TimeCreated
Definition:
IEvent.h:33
ECS::Event::IEvent::IEvent
IEvent(ECSEngine *engine, EntityId sourceEntityID, EventTypeId typeId)
Definition:
IEvent.cpp:16
ECS::util::Timer::GetTimeStamp
TimeStamp GetTimeStamp() const
Definition:
Timer.h:67
ECS::Event::EventTypeId
TypeID EventTypeId
Definition:
IEvent.h:22
ECS
Definition:
SGNComponent.h:51
ECS::util::Internal::Handle
Definition:
Handle.h:41
Source
ThirdParty
EntityComponentSystem
src
Event
IEvent.cpp
Generated on Fri May 17 2024 16:59:57 for Divide Framework by
1.9.6