We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 711ebd4 commit 1f388eaCopy full SHA for 1f388ea
src/Simulacrum.API/Features/Characters/Models/Character.cs
@@ -1,11 +1,17 @@
1
+using System.Diagnostics.CodeAnalysis;
2
+
3
namespace Simulacrum.API.Features.Characters.Models;
4
5
public sealed record Character
6
{
7
public CharacterId CharacterId { get; set; }
8
9
public Name CharacterName { get; set; }
- public ICollection<Class> Classes { get; init; } = [];
10
11
+ // Suppress this because we need it to be deep cloneable
12
+ [SuppressMessage("Usage", "CA2227: Collection properties should be read only")]
13
+ public ICollection<Class> Classes { get; set; } = [];
14
15
public Background Background { get; set; }
16
public Name PlayerName { get; set; }
17
public Race Race { get; set; }
0 commit comments