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
18
namespace
ECS
{
19
33
34
template
<
class
E>
35
class
Entity
:
public
IEntity
36
{
37
public
:
38
39
static
const
EntityTypeId
STATIC_ENTITY_TYPE_ID
;
40
41
public
:
42
43
EntityTypeId
GetStaticEntityTypeID
()
const override
{
return
STATIC_ENTITY_TYPE_ID
; }
44
45
Entity
()
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__
IEntity.h
ECS::Entity
Definition:
Entity.h:36
ECS::Entity::~Entity
virtual ~Entity()
Definition:
Entity.h:48
ECS::Entity::Entity
Entity()
Definition:
Entity.h:45
ECS::Entity::STATIC_ENTITY_TYPE_ID
static const EntityTypeId STATIC_ENTITY_TYPE_ID
Definition:
Entity.h:39
ECS::Entity::GetStaticEntityTypeID
EntityTypeId GetStaticEntityTypeID() const override
Definition:
Entity.h:43
ECS::IEntity
Definition:
IEntity.h:28
ECS
Definition:
SGNComponent.h:51
ECS::EntityTypeId
TypeID EntityTypeId
Definition:
IEntity.h:15
Source
ThirdParty
EntityComponentSystem
include
ECS
Entity.h
Generated on Fri May 17 2024 16:59:57 for Divide Framework by
1.9.6