Module shard_ecs::constants[][src]

Constants

The default amount of elements for which space is reserved if an entity is pushed into an empty archetype.

Used amount of bits in the entityhandle for storing the index. Is defined to be 24 bits. Thus, yielding 2^24 - 1 = 16_777_215 different indices/entities.

Used amount of bits in an entity for storing the version. Is defined to be 8 bits. Thus, yielding 2^8 = 256 different versions.

Valid archetype indices can never have this value.

Value indicating that an entity handle is invalid. The null entity is the entity having the handle value being this value, and verison is max version value. This corresponds to 2^24.

The maximum amount of unique archetypes that a registry can contain.

The maximum number of components an entity is allowed to have.

Maximum amount of entities that can be stored for a given archetype.

The maximum value that an entity can be.

The maximum value that an entity version can be.