using QuantumUNET.Transport;
using UnityEngine.Networking;

namespace QuantumUNET.Messages
{
	internal class QObjectDestroyMessage : QMessageBase
	{
		public NetworkInstanceId NetId;

		public override void Serialize(QNetworkWriter writer) => writer.Write(NetId);

		public override void Deserialize(QNetworkReader reader) => NetId = reader.ReadNetworkId();
	}
}