예제 #1
0
 public void Unserialize(byte[] buffer)
 {
     using(NetBitStream nbs = new NetBitStream())
     {
         nbs.BeginRead(buffer);
         nbs.Read(out _protocol);
         nbs.Read(out _result);
         nbs.Read(out Puid);
         int count = nbs.ReadInt();
         for (int k = 0; k < count; k++)
         {
             RspPuids.Add(nbs.ReadLong());
         }
         nbs.Read(out Shuttle);
         nbs.Read(out a1);
         nbs.Read(out a2);
         nbs.Read(out a3);
         nbs.Read(out a4);
         nbs.Read(out a5);
         nbs.Read(out a6);
         nbs.Read(out a7);
         nbs.Read(out d1);
         nbs.Read(out d2);
         if (true) { var etemp = nbs.ReadShort(); eBaseDemo = (EnumBaseDemo)etemp; }
         BaseDemo.Unserialize(nbs);
     }
 }
예제 #2
0
 public void Unserialize(byte[] buffer)
 {
     using(NetBitStream nbs = new NetBitStream())
     {
         nbs.BeginRead(buffer);
         nbs.Read(out _protocol);
         nbs.Read(out _result);
         nbs.Read(out Puid);
         int count = nbs.ReadInt();
         for (int k = 0; k < count; k++)
         {
             RspPuids.Add(nbs.ReadLong());
         }
         nbs.Read(out Shuttle);
     }
 }
예제 #3
0
 public void Unserialize(byte[] buffer)
 {
     using(NetBitStream nbs = new NetBitStream())
     {
         nbs.BeginRead(buffer);
         nbs.Read(out _protocol);
         nbs.Read(out _result);
         nbs.Read(out Puid);
         int count = nbs.ReadInt();
         for (int k = 0; k < count; k++)
         {
             RspPuids.Add(nbs.ReadLong());
         }
         nbs.Read(out Shuttle);
         int var49 = nbs.ReadInt();
         for (int k = 0; k < var49; k++)
         {
             var var50 = new CLS_PlayerXY(); var50.Unserialize(nbs);ListPlayerXY.Add(var50);
         }
     }
 }