Esempio n. 1
0
 public void addToStreamEx(Bundle stream, FRIENDDATA v)
 {
     stream.writeUint8(v.status);
     stream.writeUint64(v.playerID);
     stream.writeUnicode(v.playerName);
     stream.writeInt32(v.playerBean);
     stream.writeEntitycall(v.playerEntity);
 }
Esempio n. 2
0
        public FRIENDDATA createFromStreamEx(MemoryStream stream)
        {
            FRIENDDATA datas = new FRIENDDATA();

            datas.status       = stream.readUint8();
            datas.playerID     = stream.readUint64();
            datas.playerName   = stream.readUnicode();
            datas.playerBean   = stream.readInt32();
            datas.playerEntity = stream.readEntitycall();
            return(datas);
        }