-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4ceb929
commit 856041c
Showing
3 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
|
||
namespace UndertaleModLib.Models; | ||
|
||
/// <summary> | ||
/// List of feature flag entries in a GameMaker data file, version 2022.8 and above. | ||
/// </summary> | ||
[PropertyChanged.AddINotifyPropertyChangedInterface] | ||
public class UndertaleFeatureFlags : UndertaleObject, IDisposable | ||
{ | ||
public UndertaleSimpleListString List { get; set; } | ||
|
||
|
||
/// <inheritdoc /> | ||
public void Serialize(UndertaleWriter writer) | ||
{ | ||
List.Serialize(writer); | ||
} | ||
|
||
/// <inheritdoc /> | ||
public void Unserialize(UndertaleReader reader) | ||
{ | ||
List = new UndertaleSimpleListString(); | ||
List.Unserialize(reader); | ||
} | ||
|
||
/// <inheritdoc/> | ||
public void Dispose() | ||
{ | ||
GC.SuppressFinalize(this); | ||
|
||
List = null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters