Exemplo n.º 1
0
 void parseSendPicture(packet pck)
 {
     string name = pck.readString();
     int dataLen = pck.readLong();
     print("data len" + dataLen);
     byte[] data = new byte[dataLen];
     for (int i = 0; i < dataLen; i++)
         data[i] = pck.readByte();
     loadTexture tex = new loadTexture();
     tex.loadRawPicture(data);
     try
     {
         m_picUpdate(tex, name);
     }
     catch (Exception e)
     {
         print(e);
     }
 }