Пример #1
0
 public void addToStreamEx(Bundle stream, PLAYRE_DATA v)
 {
     stream.writeUnicode(v.playerName);
     stream.writeUint64(v.playerDBID);
     stream.writeUint32(v.playerGold);
     stream.writeUint8(v.isOnLine);
 }
Пример #2
0
        public PLAYRE_DATA createFromStreamEx(MemoryStream stream)
        {
            PLAYRE_DATA datas = new PLAYRE_DATA();

            datas.playerName = stream.readUnicode();
            datas.playerDBID = stream.readUint64();
            datas.playerGold = stream.readUint32();
            datas.isOnLine   = stream.readUint8();
            return(datas);
        }