Skip to content

Chunk-Components #170

Open
Open
@genaray

Description

@genaray

Background

Sometimes it makes sense to attach additional data to a chunk. Whether it is flags, entire components or additional arrays to naturally expand the possibilities. Chunk components would therefore make a lot of sense.

Solution

We could simply give each chunk an additional array in which these components could be stored. Just like with the entity component arrays. This would require an additional API to access them. The current one would probably not need to be changed or touched. It would be an extension.

chunk.AddChunkComponent(...);
chunk.GetChunkComponent();
chunk.HasChunkComponent();
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions