encompass-cs-docs/content/concepts/entity.md

16 lines
637 B
Markdown
Raw Normal View History

2019-05-22 20:56:04 +00:00
---
title: "Entity"
date: 2019-05-22T12:55:22-07:00
weight: 10
---
2020-07-11 00:06:40 +00:00
An Entity is a structure composed of a unique integer ID and a collection of Components.
2019-05-22 20:56:04 +00:00
Entities do not have any implicit properties or behaviors. They are granted these by their collection of Components.
2019-12-01 21:43:31 +00:00
There is no limit to the amount of Components an Entity may have, but Entities may only have a single Component of a particular type.
2019-05-22 20:56:04 +00:00
2020-07-11 00:06:40 +00:00
Entities can also be destroyed, permanently removing them and all their components from the World.
2019-05-22 20:56:04 +00:00
2020-07-11 00:06:40 +00:00
Entities are created and have components added to them either by the WorldBuilder or by Engines. (We'll get into these soon.)