-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR focused on finally linking the random seed generated by the matchmaker (pushing it to client was implemented in previous PR) into the GgrsSessionRunner + SyncingInfo, and then using it to create and insert a `RngGenerator` resource automatically for the developer to use easily. Additionally, I created reworked the previous flow, now having a new interface that both re-wraps all of the Turborand methods (a few functions were inconsistent naming-wise, and gives us more flexibility to change stuff in the future), and also implements a number of missing functionality that will be helpful to devs. This new `RngGenerator` struct now supports: 1. Basic Number Generation: Methods for integers, floats, and booleans. 2. Range-based Generation: Methods for numbers within specified ranges. 3. Character/String Generation: Methods for various character types and ASCII strings. 4. Collection Manipulation: Methods for shuffling and sampling from collections (Vec/SVec/Vecdeque) 5. Probability/Weighted Selection: Methods for chance-based and weighted random selection. 6. Vector Generation: Methods for random Vec2 and Vec3 values.
- Loading branch information
1 parent
1d0837d
commit c54f1ec
Showing
4 changed files
with
483 additions
and
8 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.