aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorAlec Thomas <alec@swapoff.org>2016-02-05 23:57:14 -0500
committerAlec Thomas <alec@swapoff.org>2016-02-05 23:57:14 -0500
commit089d26cfeec107847d779de77a58d6783f5ef88b (patch)
treeb00a9c59ae3e4d45afd830d43c1981cf6a33ce8a /README.md
parent249d97a975d0ef97be66e3ce201f169e3a27101c (diff)
parent4f67e896183c5d4f6ac32661d20ab715e5f6dbc8 (diff)
Merge pull request #129 from zackthehuman/entity_removal_on_destroy
Emit ComponentRemovedEvent<T> on Entity::destroy()
Diffstat (limited to 'README.md')
-rw-r--r--README.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/README.md b/README.md
index 90057da..db124ce 100644
--- a/README.md
+++ b/README.md
@@ -290,6 +290,7 @@ Several events are emitted by EntityX itself:
- Event objects are destroyed after delivery, so references should not be retained.
- A single class can receive any number of types of events by implementing a ``receive(const EventType &)`` method for each event type.
- Any class implementing `Receiver` can receive events, but typical usage is to make `System`s also be `Receiver`s.
+- When an `Entity` is destroyed it will cause all of its components to be removed. This triggers `ComponentRemovedEvent`s to be triggered for each of its components. These events are triggered before the `EntityDestroyedEvent`.
### Manager (tying it all together)