2025-04-14 15:39:24 +08:00
|
|
|
using System;
|
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using BITKit;
|
|
|
|
|
|
|
|
namespace Net.Project.B.Buff
|
|
|
|
{
|
|
|
|
public interface IBuff
|
|
|
|
{
|
|
|
|
float Value { get; set; }
|
|
|
|
}
|
|
|
|
[Serializable]
|
|
|
|
public struct AddHp : IBuff
|
|
|
|
{
|
|
|
|
public float Value { get; set; }
|
2025-08-03 02:28:22 +08:00
|
|
|
public override bool Equals(object obj) => obj?.GetType() == GetType();
|
|
|
|
public override int GetHashCode() => GetType().GetHashCode();
|
2025-04-14 15:39:24 +08:00
|
|
|
}
|
|
|
|
[Serializable]
|
|
|
|
public struct InfiniteAp : IBuff
|
|
|
|
{
|
|
|
|
public float Value { get; set; }
|
2025-08-03 02:28:22 +08:00
|
|
|
public override bool Equals(object obj) => obj?.GetType() == GetType();
|
|
|
|
public override int GetHashCode() => GetType().GetHashCode();
|
2025-04-14 15:39:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
public struct Hunger : IBuff
|
|
|
|
{
|
|
|
|
public float Value { get; set; }
|
2025-08-03 02:28:22 +08:00
|
|
|
public override bool Equals(object obj) => obj?.GetType() == GetType();
|
|
|
|
public override int GetHashCode() => GetType().GetHashCode();
|
2025-04-14 15:39:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
public struct Thirsty : IBuff
|
|
|
|
{
|
|
|
|
public float Value { get; set; }
|
2025-08-03 02:28:22 +08:00
|
|
|
public override bool Equals(object obj) => obj?.GetType() == GetType();
|
|
|
|
public override int GetHashCode() => GetType().GetHashCode();
|
2025-04-14 15:39:24 +08:00
|
|
|
}
|
|
|
|
[Serializable]
|
|
|
|
public struct Bleeding:IBuff
|
|
|
|
{
|
|
|
|
public float Value { get; set; }
|
2025-08-03 02:28:22 +08:00
|
|
|
public override bool Equals(object obj) => obj?.GetType() == GetType();
|
|
|
|
public override int GetHashCode() => GetType().GetHashCode();
|
2025-04-14 15:39:24 +08:00
|
|
|
}
|
|
|
|
}
|