libgdx / ashley

A Java entity system inspired by Ash & Artemis.
Apache License 2.0
871 stars 144 forks source link

IntervalSystem remove final modifier on update(dt) method #296

Closed fabiitch closed 3 years ago

fabiitch commented 3 years ago

Hello, the final modifier on update method is blocking for extends this classes.

My problem is i want call some code before and after each update on all systems.

The class Engine and PooledEngine are not extensible cause many internal fields , i see this issues on this problem https://github.com/libgdx/ashley/issues/255

The only method i found is too extends all Systems classes and add my code and do super.update(dt)

I understand the logic behind this final modifier. But he is blocking for extends.

An other solution can be do with the classes Engine and PooledEngine, but its big modification.

Thanks for reading