Skip to content

Commit

Permalink
Listener extension methods documentation. #409
Browse files Browse the repository at this point in the history
  • Loading branch information
czyzby committed Feb 12, 2022
1 parent 00b50c8 commit f182a3d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ashley/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ import ktx.ashley.onEntityRemoved

class ExampleComponent : Component

// Listeners can be added to all Ashley iterating systems such as
// IteratingSystem, IntervalIteratingSystem or SortedIteratingSystem.
class MyIteratingSystem : IteratingSystem(allOf(ExampleComponent::class).get()) {
// You can retain references to your listeners to remove them from the engine.
private lateinit var additionListener: EntityAdditionListener
Expand Down

0 comments on commit f182a3d

Please sign in to comment.