15 lines
493 B
C#
15 lines
493 B
C#
namespace PersonaForge;
|
|
|
|
public class PersonaProfile
|
|
{
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
// Fandom Wiki calls them "Qualities," but I use the term "Traits" internally
|
|
public PersonalityTraits Qualities { get; set; } = new();
|
|
|
|
public static string ToJson(PersonalityTraits qualities, string name) => JsonSerializer.Serialize(
|
|
new PersonaProfile { Name = name, Qualities = qualities },
|
|
new JsonSerializerOptions { WriteIndented = true }
|
|
);
|
|
|
|
}
|