public TurnEndPacket(byte[] data) { TurnEndSerializer serializer = new TurnEndSerializer(); serializer.SetDeserializedData(data); serializer.Deserialize(ref m_packet); }
public byte[] GetData() { TurnEndSerializer serializer = new TurnEndSerializer(); serializer.Serialize(m_packet); return(serializer.GetSerializedData()); }