combomash / engine

TypeScript Algorithmic Media Engine
https://www.npmjs.com/package/@combomash/engine
ISC License
0 stars 0 forks source link

entity order #11

Open owmo-dev opened 3 months ago

owmo-dev commented 3 months ago

Be able to specify an order value when registering entities. It should be similar to Unity's Script Execution Order, except instead of being related to scripts across entities, this will be for the order the entity itself must be executed.

https://docs.unity3d.com/Manual/class-MonoManager.html

All non-specified entities should be executed AFTER the ordered entities. The execution order should go from the highest value to the smallest value (let's say 1000 to 0). It should not accept negative values as that's just silly, and you can assume the default is (-1). It should be up to the user to decide what numbers they want to use.