Files
BH3/Assets/Plugins/Assembly-CSharp-firstpass/MoleMole/CabinCollectLevelDataMetaData.cs
2025-08-13 09:26:42 +08:00

39 lines
1.2 KiB
C#

namespace MoleMole
{
[GeneratePartialHash(CombineGeneratedFile = true)]
public class CabinCollectLevelDataMetaData : IHashable
{
public readonly int level;
public readonly float scoinGrowthBase;
public readonly float minIntervalTime;
public readonly float scoinStorageBase;
public readonly int extraScoinRatioBase;
public readonly float extraScoinRatioAddBase;
public CabinCollectLevelDataMetaData(int level, float scoinGrowthBase, float minIntervalTime, float scoinStorageBase, int extraScoinRatioBase, float extraScoinRatioAddBase)
{
this.level = level;
this.scoinGrowthBase = scoinGrowthBase;
this.minIntervalTime = minIntervalTime;
this.scoinStorageBase = scoinStorageBase;
this.extraScoinRatioBase = extraScoinRatioBase;
this.extraScoinRatioAddBase = extraScoinRatioAddBase;
}
public void ObjectContentHashOnto(ref int lastHash)
{
HashUtils.ContentHashOnto(level, ref lastHash);
HashUtils.ContentHashOnto(scoinGrowthBase, ref lastHash);
HashUtils.ContentHashOnto(minIntervalTime, ref lastHash);
HashUtils.ContentHashOnto(scoinStorageBase, ref lastHash);
HashUtils.ContentHashOnto(extraScoinRatioBase, ref lastHash);
HashUtils.ContentHashOnto(extraScoinRatioAddBase, ref lastHash);
}
}
}