예제 #1
0
        public void Encode(OutPacket oPacket)
        {
            oPacket.method_66 <PawnStat.FlagBits>(this.flagBits_0);
            int num = this.flagBits_0.method_14();

            for (int i = 0; i < num; i++)
            {
                oPacket.method_47(this.list_0[i]);
            }
        }
예제 #2
0
 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));
         }
     }
 }