Exemple #1
0
    public override byte[] GetPacketData() // 바이트형 패킷(송신용)
    {
        MonsterStatusSerializer serializer = new MonsterStatusSerializer();

        serializer.Serialize(m_data);
        return(serializer.GetSerializedData());
    }
Exemple #2
0
    public MonsterStatusPacket(byte[] data) // 패킷을 데이터로 변환(수신용)
    {
        m_data = new MonsterStatusData();
        MonsterStatusSerializer serializer = new MonsterStatusSerializer();

        serializer.SetDeserializedData(data);
        serializer.Deserialize(ref m_data);
    }