-
Notifications
You must be signed in to change notification settings - Fork 27
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
BasicCrafting and Genome at GenomeAuthoritySystem #119
Comments
The only event handler integrating with Basic Crafting is SimpleFarming/src/main/java/org/terasology/simpleFarming/systems/GenomeAuthoritySystem.java Lines 143 to 164 in b3c691b
We can split this system into two:
I haven't looked at the details to figure out whether the genome-only features only make sense if crafting is also enabled, though. |
The integration with Genome and BasicCrafting is optional for SimpleFarming. As a component system can only be loaded properly if all it's dependencies are also active, this means that the combined `GenomeAuthoritySystem` is only loaded if **both** Genome and BasicCrafting are active. By splitting the authority system into `GenomeExtensionAuthoritySystem` and `GenomeCraftingExtensionAuthoritySystem` each extension system can run with the minimal set of required modules. - `GenomeExtensionAuthoritySystem` (works if at least Genome is loaded) - `GenomeCraftingExtensionAuthoritySystem` (works if both Genome and Basic Crafting are loaded) Fixes #119
* feat: split GenomeAuthoritySystem based on modules * feat: add 'requiresOptional' annotation metadata to genome extension systems The integration with Genome and BasicCrafting is optional for SimpleFarming. As a component system can only be loaded properly if all it's dependencies are also active, this means that the combined `GenomeAuthoritySystem` is only loaded if **both** Genome and BasicCrafting are active. By splitting the authority system into `GenomeExtensionAuthoritySystem` and `GenomeCraftingExtensionAuthoritySystem` each extension system can run with the minimal set of required modules. - `GenomeExtensionAuthoritySystem` (works if at least Genome is loaded) - `GenomeCraftingExtensionAuthoritySystem` (works if both Genome and Basic Crafting are loaded) Fixes #119 Co-authored-by: vedant-shroff <[email protected]>
Genome
andBasicCrafting
modules is optional dependencies forSimpleFarming
.Both modules using at
GenomeAuthoritySystem
,then
GenomeAuthoritySystem
loads(works) when both modules is active.Suggestions:
BasicCrafting
usage fromGenomeAuthoritySystem
, ifBasicCrafting
andGenome
can be using separately there.The text was updated successfully, but these errors were encountered: