From a32c5a945689285241cadb809b24c2883ac6078c Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Mon, 29 Jul 2019 08:52:19 -0500 Subject: [PATCH] perf: objdestroy message is now a value type (#993) --- Assets/Mirror/Runtime/Messages.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/Mirror/Runtime/Messages.cs b/Assets/Mirror/Runtime/Messages.cs index 8c9d57b89..efd318e2b 100644 --- a/Assets/Mirror/Runtime/Messages.cs +++ b/Assets/Mirror/Runtime/Messages.cs @@ -321,16 +321,16 @@ public void Deserialize(NetworkReader reader) { } public void Serialize(NetworkWriter writer) { } } - class ObjectDestroyMessage : MessageBase + struct ObjectDestroyMessage : IMessageBase { public uint netId; - public override void Deserialize(NetworkReader reader) + public void Deserialize(NetworkReader reader) { netId = reader.ReadPackedUInt32(); } - public override void Serialize(NetworkWriter writer) + public void Serialize(NetworkWriter writer) { writer.WritePackedUInt32(netId); }