Skip to content

What is the replacement for ComponentConfiguration.onRemove(ComponentType)? #162

Answered by Quillraven
LeHaine asked this question in Q&A
Discussion options

You must be logged in to vote

Ah okay that got replaced by the component lifecycle functions. In your case you need onAdd on your attach component and onRemove on your Sprite and Projectile component.

If your pools are not globally accessible then add them as injectables to your world and get them via inject in the lifecycle function.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@LeHaine
Comment options

@Quillraven
Comment options

Answer selected by LeHaine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants