Skip to content

Commit

Permalink
Move Writer for streams out to a separate class, allow story itself t…
Browse files Browse the repository at this point in the history
…o be serialised using the new writer
  • Loading branch information
joethephish committed Dec 31, 2018
1 parent 0489e4d commit c224a0f
Show file tree
Hide file tree
Showing 6 changed files with 339 additions and 290 deletions.
3 changes: 2 additions & 1 deletion ink-engine-runtime/JsonSerialisation.cs
Expand Up @@ -689,7 +689,7 @@ public static object RuntimeObjectToJToken(Runtime.Object obj)
throw new System.Exception ("Failed to convert runtime object to Json token: " + obj);
}

static void WriteRuntimeContainer(SimpleJson.Writer writer, Container container, bool withoutName = false)
public static void WriteRuntimeContainer(SimpleJson.Writer writer, Container container, bool withoutName = false)
{
writer.WriteArrayStart();

Expand Down Expand Up @@ -917,6 +917,7 @@ static void WriteInkList(SimpleJson.Writer writer, ListValue listVal)
return dict;
}

#warning Remove me!
public static Dictionary<string, object> ListDefinitionsToJToken (ListDefinitionsOrigin origin)
{
var result = new Dictionary<string, object> ();
Expand Down

0 comments on commit c224a0f

Please sign in to comment.