protected void EncodeES(out PawnStat.FlagBits bits, out List <int> intValues) { bits = default(PawnStat.FlagBits); intValues = null; for (int i = 0; i < 42; i++) { PawnStat.IntFlag intFlag = (PawnStat.IntFlag)i; if (this.NeedEncode(intFlag)) { bits.method_6(intFlag); if (intValues == null) { intValues = new List <int>(); } intValues.Add(this.GetValue(intFlag)); } } }
public void Encode(OutPacket oPacket) { PawnStat.FlagBits gparam_ = default(PawnStat.FlagBits); for (int i = 0; i < 42; i++) { PawnStat.IntFlag intFlag = (PawnStat.IntFlag)i; if (this.NeedEncode(intFlag)) { gparam_.method_6(intFlag); } } oPacket.method_66 <PawnStat.FlagBits>(gparam_); for (int j = 0; j < 42; j++) { PawnStat.IntFlag intFlag2 = (PawnStat.IntFlag)j; if (gparam_.method_8(intFlag2)) { oPacket.method_47(this.GetValue(intFlag2)); } } }