Exemple #1
0
    public SelectLeaderPacket(byte[] data)
    {
        SelectLeaderSerializer serializer = new SelectLeaderSerializer();

        serializer.SetDeserializedData(data);
        serializer.Deserialize(ref m_packet);
    }
Exemple #2
0
    public byte[] GetData()
    {
        SelectLeaderSerializer serializer = new SelectLeaderSerializer();

        serializer.Serialize(m_packet);

        return(serializer.GetSerializedData());
    }