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

43 lines
1.1 KiB
C#

namespace MoleMole
{
[GeneratePartialHash(CombineGeneratedFile = true)]
public class SeriesMetaData : IHashable
{
public readonly int id;
public readonly string title;
public readonly int enableNuclear;
public readonly float nucProb0;
public readonly float nucProbDelta;
public readonly float nucProbStart;
public readonly float nucTime;
public SeriesMetaData(int id, string title, int enableNuclear, float nucProb0, float nucProbDelta, float nucProbStart, float nucTime)
{
this.id = id;
this.title = title;
this.enableNuclear = enableNuclear;
this.nucProb0 = nucProb0;
this.nucProbDelta = nucProbDelta;
this.nucProbStart = nucProbStart;
this.nucTime = nucTime;
}
public void ObjectContentHashOnto(ref int lastHash)
{
HashUtils.ContentHashOnto(id, ref lastHash);
HashUtils.ContentHashOnto(title, ref lastHash);
HashUtils.ContentHashOnto(enableNuclear, ref lastHash);
HashUtils.ContentHashOnto(nucProb0, ref lastHash);
HashUtils.ContentHashOnto(nucProbDelta, ref lastHash);
HashUtils.ContentHashOnto(nucProbStart, ref lastHash);
HashUtils.ContentHashOnto(nucTime, ref lastHash);
}
}
}