Allow constructing template chunk generators without a server instance#339
Allow constructing template chunk generators without a server instance#339haykam821 wants to merge 1 commit intoNucleoidMC:devfrom
Conversation
|
Don’t see why not, and code looks good - but a bit confused about data generation since we don’t have Codecs for these at all iirc 😅 (should we?) |
|
You're right that there isn't an existing codec for In the latter case, then the chunk generator and generated map template can be represented by a subclass that provides its own codec. A As an aside, this chunk generator should probably be moved to the Map Templates library at some point. I know there's also some work being done with map template processors which might make sense as a general set of improvements to how map templates are loaded and configured. It would be nice to get rid of the code pattern and corresponding translation that is used in nearly every game that loads maps: |
Data generators are serverless infrastructure, so having a
TemplateChunkGeneratorconstructor that uses aRegistryWrapper.WrapperLookupparameter would be useful.