RawEntityStore.md
November 22, 2024 ยท View on GitHub
Friflo.Engine.ECS
Friflo.Engine.ECS
RawEntityStore Class
A RawEntityStore enables using an entity store without using Entity's.
public sealed class RawEntityStore : Friflo.Engine.ECS.EntityStoreBase
Inheritance System.Object ๐ก EntityStoreBase ๐ก RawEntityStore
Remarks
The focus of the this entity store implementation is performance.
The key is to minimize heap consumption required by EntityNode's - 48 bytes
A RawEntityStore stores only an array of blittable Friflo.Engine.ECS.RawEntityNode's -
structs having no reference type fields.
The downside of this approach are:
- Entities can be created only programmatically but not within the editor which requires (managed) Entity's.
- The API to access / query / mutate Friflo.Engine.ECS.RawEntityNode's is less convenient.
It requires always two parameters - a RawEntityStore + entityid- instead of a single Entity reference.