-
Notifications
You must be signed in to change notification settings - Fork 33
Clients visibility #174
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
Merged
Merged
Clients visibility #174
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
3b28b5b
Initial prototype
Shatur 5767abe
Fix tests compilation
Shatur c1eea50
Do not panic on visibility change with `ClientVisibility::All`
Shatur 0b655e1
Use proposed naming
Shatur 05cc66a
Use more efficient iteration approach
Shatur f3b5692
Fix docs and add to prelude
Shatur 56c7880
Remove `Box` from iterator
Shatur 02a820e
Export simpler visibility getter to users
Shatur 222f63e
Combine loops
Shatur 53cb84c
Turn `ClientVisibility` into a struct with the inner enum
Shatur ebd9341
Refactor API to avoid extra lookup
Shatur a24fb9c
Update docs
Shatur 2e9e791
Fix visibility check logic
Shatur e34fa97
Fix unhiding logic for blacklist
Shatur ecc9f1e
Put `VisibilityPolicy` to prelude
Shatur f10d0a1
Add tests
Shatur f9e91b7
Improve docs
Shatur a936335
Fix typo in the test
Shatur c8996ab
Refactor tests
Shatur 64839be
Apply suggestions from code review [skip ci]
Shatur ac64583
Apply more docs [skip ci]
Shatur 156d235
Rename `set_visible` into `set_visibility`
Shatur b63c8e1
Apply `VisibilityFilter` docs suggestions
Shatur d7813f1
Apply suggested change to `EntityState` enum
Shatur fc17651
Apply suggested naming about entity_state
Shatur 7515312
Fix remove_despawned logic
Shatur e6bac4b
Add panicking versions for getting `ClientInfo`
Shatur b5071ab
Use enums instead of bools
Shatur 2df564b
Write more comments about the logic
Shatur 1f00634
Apply suggestions from code review [skip ci]
Shatur 643f2fc
Remove size_hint
Shatur 9641dea
Use drain instead of iteration
Shatur 832bbca
Apply docs suggestions
Shatur 761254f
Fix warning about doc comment
Shatur 8497b87
Fix bug about re-adding in the list
Shatur ed3881b
Refactor visibility logic as suggested
Shatur f440312
Clear removed and added in update too to avoid confusion
Shatur bda6ac7
Add unit tests for many combinations and simplify integration tests
Shatur a991a20
Fix removal and insertion on the same tick
Shatur 7696b53
Add more comments
Shatur 6b70f9c
Apply clippy suggestion
Shatur 2f9eefb
Add despawn tests
Shatur 042097d
Apply suggestions from code review
Shatur e35ed31
Fix duplicate insertion for blacklist
Shatur c0b2d8a
Add whitelist despawn test
Shatur b3ed333
Simplify despawn tests
Shatur 6021346
Add two more asserts
Shatur 6c87d2b
Use non-mut method
Shatur File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.