From f710a9b1096a2e0f5bca5e82bd353e38f05f6e0e Mon Sep 17 00:00:00 2001 From: Tony Bark Date: Mon, 28 Apr 2025 05:28:18 -0400 Subject: [PATCH] Initial start on refactoring --- GlobalUsing.cs | 1 + PersonalityGen.cs | 16 ++++++++++++++++ PersonalityProfile.cs | 16 ++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 GlobalUsing.cs create mode 100644 PersonalityGen.cs create mode 100644 PersonalityProfile.cs diff --git a/GlobalUsing.cs b/GlobalUsing.cs new file mode 100644 index 0000000..a32a4f6 --- /dev/null +++ b/GlobalUsing.cs @@ -0,0 +1 @@ +global using System.Text.Json; diff --git a/PersonalityGen.cs b/PersonalityGen.cs new file mode 100644 index 0000000..d03a313 --- /dev/null +++ b/PersonalityGen.cs @@ -0,0 +1,16 @@ +namespace PersonaForge; + +public static class PersonalityGen +{ + int MaxPoints = 10; + int TotalBudget = 25; + + public static PersonalityProfile GeneratePersonalityProfile() + { + var profile = PersonalityProfile.Create(); + var traits = new List { "Outgoing", "Nice", "Playful", "Neat", "Active" }; + + + return profile; + } +} diff --git a/PersonalityProfile.cs b/PersonalityProfile.cs new file mode 100644 index 0000000..6c6feed --- /dev/null +++ b/PersonalityProfile.cs @@ -0,0 +1,16 @@ +namespace PersonaForge; + +public class PersonalityProfile +{ + public int Outgoing { get; set; } + public int Nice { get; set; } + public int Playful { get; set; } + public int Neat { get; set; } + public int Active { get; set; } + + public static PersonalityProfile Create() => new(); + + public int TotalPoints() => Outgoing + Nice + Playful + Neat + Active; + + public string ToJson() => JsonSerializer.Serialize(this, new JsonSerializerOptions { WriteIndented = true }); +}