Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chunk-Components #170

Open
genaray opened this issue Nov 6, 2023 · 1 comment
Open

Chunk-Components #170

genaray opened this issue Nov 6, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@genaray
Copy link
Owner

genaray commented Nov 6, 2023

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();
...
@genaray genaray added the enhancement New feature or request label Nov 6, 2023
@xentripetal
Copy link

This would likely permit #190 by allowing addition and change watermarks to be stored alongside chunks and letting queries filter out types with watermarks older than their last run watermark

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

2 participants