-
Notifications
You must be signed in to change notification settings - Fork 14
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
test: add SettlementEntityManagerTest for placeParcel #107
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
86ecc9c
test: add SettlementEntityManagerTest for placeParcel
keturn 69b1234
test(SettlementEntityManager): make some methods available to tests
keturn fb4ed0a
chore: replace ProbabilityDistribution with DiscreteDistribution
keturn 2f116a0
test: more descriptive assertion
keturn 00b46c6
refactor(SettlementEntityManager): factor out checks from placeParcel…
keturn 0ccb329
test(SettlementEntityManager): we need regions, but how?
keturn c497392
chore(RegionEntityManager): add more detail to debug log
keturn 6e548cc
chore: lint 🚮
keturn 277c08f
test(SettlementEntityManager): use a compatible world generator
keturn 662428a
test: zone identifiers are lowercase
keturn f7d41ff
test: add a flat world generator
keturn 0058a6f
fix(RegionEntityProvider): fix out-of-bounds errors
keturn 4ec5c18
feat(RegionEntityProvider): allow TreeFacet to be optional [experimen…
keturn File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would not think so.
CoreWorlds
as part of the core modules should always be enabled and has aTreeFacet
, so I would guess if all else fails, that one should always be there, should it?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know about that.
DynamicCities/src/main/java/org/terasology/dynamicCities/world/testbench/FlatFacetedWorld.java
Lines 36 to 46 in 4ec5c18
Can entity providers use the same
@Requires
annotations as FacetProviders can?If so, then this EntityProvider could declare that it does depend on having a TreeFacet. (Once MovingBlocks/Terasology#4924 is fixed.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're absolutely right, only because a TreeFacet exists in at least one of the modules, the world generator doesn't need to use it.
I don't know whether or not they can 🤷