2023-09-23 13:33:23 +00:00
|
|
|
namespace Tiger.Game.Habbos;
|
|
|
|
|
|
|
|
public class Activitypoints
|
|
|
|
{
|
|
|
|
public virtual Habbo Habbo { get; set; } = null!;
|
2023-09-23 16:51:16 +00:00
|
|
|
public virtual int Type { get; set; }
|
|
|
|
public virtual int Amount { get; set; }
|
2023-09-23 13:33:23 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|