1
0
mirror of synced 2024-12-21 10:55:55 +01:00
TaikoLocalServer/SharedProject/Models/Costume.cs

25 lines
561 B
C#
Raw Normal View History

namespace SharedProject.Models;
public class Costume
{
public uint CostumeId { get; set; }
public string CostumeType { get; init; } = string.Empty;
public string CostumeName { get; init; } = string.Empty;
public override bool Equals(object? obj)
{
if (obj is Costume costume)
{
return costume.CostumeName.Equals(CostumeName) && costume.CostumeType.Equals(CostumeType);
}
return false;
}
public override int GetHashCode()
{
return CostumeName.GetHashCode();
}
}