bcthund / Project_Parsec

1 stars 0 forks source link

Streamline and rework animation system #9

Closed bcthund closed 3 years ago

bcthund commented 3 years ago

The loaded animations should be static, while the animation system can be added as an instance to any system that needs to have animations. Use templates to differentiate between 2D and 3D usage with a custom Animation type such as t_Animation2D and t_Animation3D with properties that match that instance.

The new system should use a Hashmap stack and instead of doing an update as part of a global draw routine, there should be an update method that can be called at the animation owners discretion.

Animations should be pushed to the stack using a name in a hash map where the name defines the owner of the object. This allows the owner to always access the item regardless of other objects getting added/removed (unlike a VectorMap).

bcthund commented 3 years ago