public Poker(Poker poker) { index = poker.index; size = poker.size; color = poker.color; status = poker.status; }
public void SetPoker(Poker poker) { this.index = poker.index; this.color = poker.color; this.size = poker.size; this.status = poker.status; }
public Poker(int index, int size, int color, NN_ENUM_POKER_STATUS status) { this.index = index; this.size = size; this.color = color; this.status = status; }
public void build(byte[] data) { ByteBuffer buf = ByteBuffer.wrap(data); for (int i = 0; i < this.__flag.Length; i++) { this.__flag[i] = buf.get(); } if (this.hasIndex()) { this.index = buf.getInt(); } if (this.hasColor()) { this.color = buf.getInt(); } if (this.hasSize()) { this.size = buf.getInt(); } if (this.hasPokerStatus()) { this.pokerStatus = (NN_ENUM_POKER_STATUS)buf.get(); } }
public void SetPoker(NN_POKER poker) { if (poker.hasIndex()) { this.index = poker.index; } if (poker.hasColor()) { this.color = poker.color; } if (poker.hasSize()) { this.size = poker.size; } if (poker.hasPokerStatus()) { this.status = poker.pokerStatus; } }