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

Fix: support when savedata is a dictionary #272

Merged

Conversation

Falki-git
Copy link
Contributor

Previously plugin savedata could have only been a class with fields and properties.
Now dictionaries are also supported.

For example:
ModSaves.RegisterSaveLoadGameData<Dictionary<string, SaveDataAdapter>>(
"My mod GUID",
OnSave,
OnLoad
);

Previously plugin savedata could have only been a class with fields and properties.
Now dictionaries are also supported.

For example:
ModSaves.RegisterSaveLoadGameData<Dictionary<string, SaveDataAdapter>>(
            "My mod GUID",
            OnSave,
            OnLoad
        );
@cheese3660
Copy link
Member

LGTM

@cheese3660 cheese3660 merged commit fc4ea7c into SpaceWarpDev:dev Nov 25, 2023
2 checks passed
@Falki-git Falki-git deleted the Fix-when-savedata-is-a-dictionary branch December 20, 2023 11:49
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