Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Entity.h
Go to the documentation of this file.
1/*
2 Author : Tobias Stein
3 Date : 3rd July, 2016
4 File : Entity.h
5
6 Enity class.
7
8 All Rights Reserved. (c) Copyright 2016.
9*/
10
11#pragma once
12#ifndef ECS__ENTITY_H__
13#define ECS__ENTITY_H__
14
15
16#include "IEntity.h"
17
18namespace ECS {
19
33
34 template<class E>
35 class Entity : public IEntity
36 {
37 public:
38
40
41 public:
42
44
46 {}
47
48 virtual ~Entity()
49 {}
50 };
51
52 // set unique type id for this Entity<T>
53 template<class E>
54 const EntityTypeId Entity<E>::STATIC_ENTITY_TYPE_ID = util::Internal::FamilyTypeID<IEntity>::Get<E>();
55}
56
57#endif // ECS__ENTITY_H__
virtual ~Entity()
Definition: Entity.h:48
Entity()
Definition: Entity.h:45
static const EntityTypeId STATIC_ENTITY_TYPE_ID
Definition: Entity.h:39
EntityTypeId GetStaticEntityTypeID() const override
Definition: Entity.h:43
TypeID EntityTypeId
Definition: IEntity.h:15