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