50 lines
1.4 KiB
C#
50 lines
1.4 KiB
C#
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; }
|
|
public override bool Equals(object obj) => obj?.GetType() == GetType();
|
|
public override int GetHashCode() => GetType().GetHashCode();
|
|
}
|
|
[Serializable]
|
|
public struct InfiniteAp : IBuff
|
|
{
|
|
public float Value { get; set; }
|
|
public override bool Equals(object obj) => obj?.GetType() == GetType();
|
|
public override int GetHashCode() => GetType().GetHashCode();
|
|
}
|
|
|
|
[Serializable]
|
|
public struct Hunger : IBuff
|
|
{
|
|
public float Value { get; set; }
|
|
public override bool Equals(object obj) => obj?.GetType() == GetType();
|
|
public override int GetHashCode() => GetType().GetHashCode();
|
|
}
|
|
|
|
[Serializable]
|
|
public struct Thirsty : IBuff
|
|
{
|
|
public float Value { get; set; }
|
|
public override bool Equals(object obj) => obj?.GetType() == GetType();
|
|
public override int GetHashCode() => GetType().GetHashCode();
|
|
}
|
|
[Serializable]
|
|
public struct Bleeding:IBuff
|
|
{
|
|
public float Value { get; set; }
|
|
public override bool Equals(object obj) => obj?.GetType() == GetType();
|
|
public override int GetHashCode() => GetType().GetHashCode();
|
|
}
|
|
}
|