Allow for iteration of enum/bitmask constants in order.
Open
Describe the problem you are trying to solve.
Currently the EcsEnum
and EcsBitmask
components in the meta addon have a constants
field of type ecs_map_t
that provides quick access to constants by value. While an application can the iterate map contents, this does not preserve the order in which constants were registered. This can be useful in scenarios like generating documentation or code generation.
Describe the solution you'd like
Add a vector (ecs_vec_t
) alongside the ecs_map_t
field that stores constants in the order they are registered, with tests that verify the order is correct.
No comments yet
Bounty Available
Fund Requests
No fund requests yet. Be the first to request funding.
Please sign in to request funds for this bounty.
Paid Out
No payments have been made yet. Start working on this bounty to receive your payout
Information
Open
Current status
#1594
Issue number