public override void Pack(ByteArray w) { w.WriteUTF(this.id); w.WriteUnsignedInt16((UInt16)this.cards.Length); for (int k = 0; k < this.cards.Length; k++) { w.WriteUTF(this.cards[k]); } w.WriteUnsignedInt16((UInt16)this.outOfCards.Length); for (int k = 0; k < this.outOfCards.Length; k++) { w.WriteUTF(this.outOfCards[k]); } w.WriteUTF(this.randomNum); w.WriteInt32(this.ty); }
public override void Pack(ByteArray w) { w.WriteUnsignedInt16((UInt16)this.winId.Length); for (int k = 0; k < this.winId.Length; k++) { w.WriteUTF(this.winId[k]); } }
public override void Pack(ByteArray w) { w.WriteUTF(this.roomId); w.WriteUnsignedInt16((UInt16)this.cards.Length); for (int k = 0; k < this.cards.Length; k++) { w.WriteUTF(this.cards[k]); } }
public override void Pack(ByteArray w) { w.WriteUnsignedInt16((UInt16)this.hole_cards.Length); for (int k = 0; k < this.hole_cards.Length; k++) { w.WriteUTF(this.hole_cards[k]); } w.WriteUTF(this.roomId); w.WriteUnsignedInt16((UInt16)this.playerIds.Length); for (int k = 0; k < this.playerIds.Length; k++) { w.WriteUTF(this.playerIds[k]); } w.WriteUnsignedInt16((UInt16)this.players.Length); for (int k = 0; k < this.players.Length; k++) { this.players[k].Pack(w); } }