Layer should extend from Entity #126
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I see in a lot of places in the sources, sequential casting for Entity and Layer along with calling exact same methods in either case.
If Layer extends from Entity the overhead in the game loop will be reduced by almost half in evaluation time in each game/scene initialization or/and update.
A little code from scene.cpp: