Fix architectural issue with ChanceCardManager #236
No reviewers
Labels
No labels
bug
confirmed
critical
discussion
documentation
enhancement
game design
needs cadhan to fix tests
suggestion
support
tests
UI
under the rug
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
owenryan/carbonopoly!236
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "owen/chanceCardSerialization"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
ChanceCardManager is a static class, meaning that it's not serialized with GameSystem. This could cause some potential issues if the contents of ChanceCardManager.CARDS changes between saving and loading.
This MR converts ChanceCardManager to a normal class taht is instantated and stored in GameSystem (like PolicyManager). This also allows the chance card pool to be dynamic (can be set via GameSystemBuilder).
requested review from @40441188, @40446360, @40444856, @40435022, @40439721, and @40441512
assigned to @40457809
approved this merge request
mentioned in commit
932d4056a1