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