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