Skip to content
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

Add generic overload for GetSlotData in DataStorageWrapper #98

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

BadMagic100
Copy link
Contributor

After some consideration I felt this was the only sane option that didn't involve major API breaks, so as discussed, I added generic overloads for GetSlotData and GetSlotDataAsync, which the DIctionary<string, object> versions now route through. I also happened to notice some cleanup opportunity in the csproj which you can feel free to reject if you don't like it (but I think you will).

Added a new unit test to sanity test deser behavior for custom models, but only added the one since the Dictionary one runs through them so we know the fundamental behavior is still correct, since the old tests still pass.

Did not test on .net 6/System.Text.Json since the tests don't test that framework, and I don't have any games to test it on.

@Jarno458 Jarno458 merged commit f0fe1fa into ArchipelagoMW:main Jul 31, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants