-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes
Registry
to use Arc<RwLock<S: CustomEntitySerializer>
This way `Canon` (and other implementations of `CustomEntitySerializer`) can be used outside of Registry, which is useful for mapping world entities to data outside of legion. A shared `Canon` should mostly need read acces, so `RwLock` is a better choice. I don't think requiring `Sync` for `S` is too burdensome either.
- Loading branch information
Showing
1 changed file
with
67 additions
and
11 deletions.
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