mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-17 08:54:43 +01:00
32 lines
671 B
C#
32 lines
671 B
C#
using System.Collections.Generic;
|
|
|
|
namespace MoleMole
|
|
{
|
|
[GeneratePartialHash(CombineGeneratedFile = true)]
|
|
public class CabinVentureRefreshDataMetaData : IHashable
|
|
{
|
|
public readonly int level;
|
|
|
|
public readonly List<int> needHcoinList;
|
|
|
|
public CabinVentureRefreshDataMetaData(int level, List<int> needHcoinList)
|
|
{
|
|
this.level = level;
|
|
this.needHcoinList = needHcoinList;
|
|
}
|
|
|
|
public void ObjectContentHashOnto(ref int lastHash)
|
|
{
|
|
HashUtils.ContentHashOnto(level, ref lastHash);
|
|
if (needHcoinList == null)
|
|
{
|
|
return;
|
|
}
|
|
foreach (int needHcoin in needHcoinList)
|
|
{
|
|
HashUtils.ContentHashOnto(needHcoin, ref lastHash);
|
|
}
|
|
}
|
|
}
|
|
}
|