comments!

This commit is contained in:
goyuken 2014-12-09 21:52:03 +00:00
parent e0c09a553b
commit 9513d209b1
1 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,9 @@ namespace BizHawk.Emulation.Common
{
public Dictionary<string, byte[]> Data = new Dictionary<string, byte[]>();
public Dictionary<string, Node> Objects = new Dictionary<string, Node>();
// methods named "ShouldSerialize*" are detected and dynamically invoked by JSON.NET
// if they return false during serialization, the field/prop is omitted from the created json
public bool ShouldSerializeData()
{
return Data.Count > 0;