I have been working on extracting the world/chunk generation code out to module space and there is a need to be able to replicate biome data over to networked clients (as this data can affect temperature and humidity when rendering).
With my limited understanding of the core code (I have only been at this for a week) I can think of two ways of doing this:
- create a chunk level data layer that lives side by side to the block level data layer (not a great option)
- create an entity on each chunk to represent this information so that it can be transmit to remote clients (a better option, but would need some quirky set up with being a LocationComponent at a specific block position)
Am I on the right track? Is there a better way to do this that I have not seen yet?
With my limited understanding of the core code (I have only been at this for a week) I can think of two ways of doing this:
- create a chunk level data layer that lives side by side to the block level data layer (not a great option)
- create an entity on each chunk to represent this information so that it can be transmit to remote clients (a better option, but would need some quirky set up with being a LocationComponent at a specific block position)
Am I on the right track? Is there a better way to do this that I have not seen yet?