27 lines
645 B
C#
27 lines
645 B
C#
|
namespace Tiger.Game.Habbos;
|
||
|
|
||
|
public class Activitypoints
|
||
|
{
|
||
|
public virtual Habbo Habbo { get; set; } = null!;
|
||
|
public virtual byte Type { get; set; }
|
||
|
public virtual uint Amount { get; set; }
|
||
|
|
||
|
public override bool Equals(object? obj)
|
||
|
{
|
||
|
if (obj is not Activitypoints other)
|
||
|
return false;
|
||
|
|
||
|
return Habbo.Id == other.Habbo.Id && Type == other.Type;
|
||
|
}
|
||
|
|
||
|
public override int GetHashCode()
|
||
|
{
|
||
|
unchecked
|
||
|
{
|
||
|
var hash = 17;
|
||
|
hash = hash * 23 + Habbo.Id.GetHashCode();
|
||
|
hash = hash * 23 + Type.GetHashCode();
|
||
|
return hash;
|
||
|
}
|
||
|
}
|
||
|
}
|