mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 16:34:41 +01:00
27 lines
759 B
C#
27 lines
759 B
C#
namespace MoleMole
|
|
{
|
|
[GeneratePartialHash(CombineGeneratedFile = true)]
|
|
public class AvatarAttackPunishMetaData : IHashable
|
|
{
|
|
public readonly int LevelDifference;
|
|
|
|
public readonly float DamageReduceRate;
|
|
|
|
public readonly float AttackRatioReduce;
|
|
|
|
public AvatarAttackPunishMetaData(int LevelDifference, float DamageReduceRate, float AttackRatioReduce)
|
|
{
|
|
this.LevelDifference = LevelDifference;
|
|
this.DamageReduceRate = DamageReduceRate;
|
|
this.AttackRatioReduce = AttackRatioReduce;
|
|
}
|
|
|
|
public void ObjectContentHashOnto(ref int lastHash)
|
|
{
|
|
HashUtils.ContentHashOnto(LevelDifference, ref lastHash);
|
|
HashUtils.ContentHashOnto(DamageReduceRate, ref lastHash);
|
|
HashUtils.ContentHashOnto(AttackRatioReduce, ref lastHash);
|
|
}
|
|
}
|
|
}
|