mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-17 08:54:43 +01:00
31 lines
731 B
C#
31 lines
731 B
C#
namespace MoleMole
|
|
{
|
|
[GeneratePartialHash(CombineGeneratedFile = true)]
|
|
public class AvatarLevelMetaData : IHashable
|
|
{
|
|
public readonly int level;
|
|
|
|
public readonly int exp;
|
|
|
|
public readonly int cost;
|
|
|
|
public readonly float avatarAssistConf;
|
|
|
|
public AvatarLevelMetaData(int level, int exp, int cost, float avatarAssistConf)
|
|
{
|
|
this.level = level;
|
|
this.exp = exp;
|
|
this.cost = cost;
|
|
this.avatarAssistConf = avatarAssistConf;
|
|
}
|
|
|
|
public void ObjectContentHashOnto(ref int lastHash)
|
|
{
|
|
HashUtils.ContentHashOnto(level, ref lastHash);
|
|
HashUtils.ContentHashOnto(exp, ref lastHash);
|
|
HashUtils.ContentHashOnto(cost, ref lastHash);
|
|
HashUtils.ContentHashOnto(avatarAssistConf, ref lastHash);
|
|
}
|
|
}
|
|
}
|