Initial start on refactoring
This commit is contained in:
parent
ef67e19c75
commit
f710a9b109
3 changed files with 33 additions and 0 deletions
16
PersonalityProfile.cs
Normal file
16
PersonalityProfile.cs
Normal file
|
@ -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 });
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue