public override byte[] GetPacketData() // 바이트형 패킷(송신용) { EquipUpgradeSerializer serializer = new EquipUpgradeSerializer(); serializer.Serialize(m_data); return(serializer.GetSerializedData()); }
public EquipUpgradePacket(byte[] data) // 패킷을 데이터로 변환(수신용) { m_data = new EquipUpgradeData(); EquipUpgradeSerializer serializer = new EquipUpgradeSerializer(); serializer.SetDeserializedData(data); serializer.Deserialize(ref m_data); }