Skip to content

Commit

Permalink
Add support for string lists and godhome specific savedata syncing
Browse files Browse the repository at this point in the history
  • Loading branch information
Extremelyd1 committed Mar 17, 2024
1 parent f4be15d commit 45246fe
Show file tree
Hide file tree
Showing 6 changed files with 856 additions and 54 deletions.
18 changes: 18 additions & 0 deletions HKMP/Game/Client/Save/SaveDataMapping.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,24 @@ internal class SaveDataMapping {
[JsonIgnore]
public BiLookup<PersistentItemData, ushort> PersistentIntDataIndices { get; private set; }

/// <summary>
/// Deserialized list of strings that represent variable names with the type of a string list.
/// </summary>
[JsonProperty("stringListVariables")]
public readonly List<string> StringListVariables;

/// <summary>
/// Deserialized list of strings that represent variable names with the type of BossSequenceDoor.Completion.
/// </summary>
[JsonProperty("bossSequenceDoorCompletionVariables")]
public readonly List<string> BossSequenceDoorCompletionVariables;

/// <summary>
/// Deserialized list of strings that represent variable names with the type of BossStatue.Completion.
/// </summary>
[JsonProperty("bossStatueCompletionVariables")]
public readonly List<string> BossStatueCompletionVariables;

/// <summary>
/// Initializes the class by converting the deserialized data fields into the various dictionaries and lookups.
/// </summary>
Expand Down
Loading

0 comments on commit 45246fe

Please sign in to comment.