Ejemplo n.º 1
0
 static string GetFilePath(InteractionHostType type, Guid guid, DialogueSegment2D interaction)
 {
     return GetDirectoryPath(GetDirectory(type), guid) + "/" + interaction.Guid.ToString() + ".json";
 }
Ejemplo n.º 2
0
 public static void Save(InteractionHostType type, Guid guid, DialogueSegment2D interaction)
 {
     var s = JsonConvert.SerializeObject(interaction, Formatting.Indented, settings);
     Serializer.SaveToFile(GetFilePath(type, guid, interaction), s);
 }