perf: objdestroy message is now a value type (#993)

This commit is contained in:
Paul Pacheco 2019-07-29 08:52:19 -05:00 committed by vis2k
parent a49d938fbe
commit a32c5a9456

View File

@ -321,16 +321,16 @@ public void Deserialize(NetworkReader reader) { }
public void Serialize(NetworkWriter writer) { } public void Serialize(NetworkWriter writer) { }
} }
class ObjectDestroyMessage : MessageBase struct ObjectDestroyMessage : IMessageBase
{ {
public uint netId; public uint netId;
public override void Deserialize(NetworkReader reader) public void Deserialize(NetworkReader reader)
{ {
netId = reader.ReadPackedUInt32(); netId = reader.ReadPackedUInt32();
} }
public override void Serialize(NetworkWriter writer) public void Serialize(NetworkWriter writer)
{ {
writer.WritePackedUInt32(netId); writer.WritePackedUInt32(netId);
} }