SpaceWarpDev / SpaceWarp

A C# modding API for KSP2
MIT License
91 stars 38 forks source link

Fix: support when savedata is a dictionary #272

Closed Falki-git closed 11 months ago

Falki-git commented 11 months ago

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 commented 11 months ago

LGTM