Allow for iteration of enum/bitmask constants in order.

Open
SanderMertens avatar @SanderMertens
C C
Created 26 days ago
Updated 26 days ago
2 comments
6,883

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

Quick Select

Custom Amount

$
Fund this bounty to attract developers and speed up resolution. Minimum amount is $0.50.

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