personaforge/PersonaProfile.cs
Tony Bark 1666dd55cd Introduced PersonaProfile
- PersonaProfile is for the exported JSON file
- Renamed a few classes
2025-04-28 09:00:12 -04:00

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 }
);
}