public override void CopyFromES(PawnStat.IElementaryStat other) { if (other == null) { return; } for (int i = 0; i < 42; i++) { PawnStat.IntFlag flag = (PawnStat.IntFlag)i; this.SetValue(flag, other.GetValue(flag)); } }
public static void smethod_6(PawnStat.IElementaryStat ielementaryStat_0, List <string> list_0) { if (ielementaryStat_0 != null && list_0 != null) { for (int i = 0; i < 42; i++) { PawnStat.IntFlag intFlag = (PawnStat.IntFlag)i; if (ielementaryStat_0.HasValue(intFlag)) { int value = ielementaryStat_0.GetValue(intFlag); if (value != PawnStat.smethod_1(intFlag)) { //string str = (!GameConstInfo.GameConstInfo_0.statInfo_0.lineParseHashSet_0.Contains((PawnStat.IntFlag)i)) ? string.Empty : GameConstInfo.GameConstInfo_0.statInfo_0.string_0; //string item = GameTextManager.GameText("#" + PawnStat.string_0[i]) + " +" + value.ToString() + str; //list_0.Add(item); } } } } }