Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
IEvent.h
Go to the documentation of this file.
1/*
2 Author : Tobias Stein
3 Date : 6th July, 2016
4 File : IEvent.h
5
6 Base event class.
7
8 All Rights Reserved. (c) Copyright 2016.
9*/
10
11#pragma once
12#ifndef ECS__I_EVENT_H__
13#define ECS__I_EVENT_H__
14
15#include "API.h"
16#include "util/Handle.h"
17
18namespace ECS {
19 class ECSEngine;
20 namespace Event {
21
26
27
29 {
30 private:
31
35
36 public:
37
38 IEvent(ECSEngine* engine, EntityId sourceEntityID, EventTypeId typeId);
39
40 // ACCESSOR
41 inline EventTypeId GetEventTypeID() const { return this->m_TypeId; }
42 inline EventTimestamp GetTimeCreated() const { return this->m_TimeCreated; }
43 inline EntityId GetSourceEntityId( ) const { return this->m_SourceEntityID; }
44
45 }; // class IEvent
46
47}} // namespace ECS::Event
48
49#endif // ECS__I_EVENT_H__
#define ECS_API
Definition: Platform.h:16
EventTimestamp GetTimeCreated() const
Definition: IEvent.h:42
EventTimestamp m_TimeCreated
Definition: IEvent.h:33
EntityId GetSourceEntityId() const
Definition: IEvent.h:43
EventTypeId m_TypeId
Definition: IEvent.h:32
EntityId m_SourceEntityID
Definition: IEvent.h:34
EventTypeId GetEventTypeID() const
Definition: IEvent.h:41
static const EventTypeId INVALID_EVENTTYPE
Definition: IEvent.h:25
TypeID EventTypeId
Definition: IEvent.h:22
Handle32 Handle64
Definition: Handle.h:102
size_t TypeID
Definition: Platform.h:67
static const TypeID INVALID_TYPE_ID
Definition: Platform.h:70