public void addToStreamEx(Bundle stream, PLAYER_INFOS v) { stream.writeInt32(v.id); stream.writeUnicode(v.name); stream.writeUint16(v.winCount); stream.writeUint16(v.loseCount); stream.writeInt8(v.isReady); stream.writeInt8(v.seatIndex); stream.writeInt8(v.isRoomMaster); }
public PLAYER_INFOS createFromStreamEx(MemoryStream stream) { PLAYER_INFOS datas = new PLAYER_INFOS(); datas.id = stream.readInt32(); datas.name = stream.readUnicode(); datas.winCount = stream.readUint16(); datas.loseCount = stream.readUint16(); datas.isReady = stream.readInt8(); datas.seatIndex = stream.readInt8(); datas.isRoomMaster = stream.readInt8(); return(datas); }