Skip to content

Commit

Permalink
Fix wrong system family hook functions' docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
metaphore committed Nov 30, 2023
1 parent 9241541 commit 7bab61c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/commonMain/kotlin/com/github/quillraven/fleks/system.kt
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,7 @@ abstract class IteratingSystem(
*/
interface FamilyOnAdd {
/**
* Gets called whenever an [entity][Entity] gets created and
* after its [components][Component] are assigned and [families][Family] are updated.
* Gets called whenever an [entity][Entity] enters the family.
*/
fun onAddEntity(entity: Entity)
}
Expand All @@ -228,8 +227,7 @@ interface FamilyOnAdd {
*/
interface FamilyOnRemove {
/**
* Gets called whenever an [entity][Entity] gets removed and
* before its [components][Component] are removed and [families][Family] are updated.
* Gets called whenever an [entity][Entity] leaves the family.
*/
fun onRemoveEntity(entity: Entity)
}

0 comments on commit 7bab61c

Please sign in to comment.