perf: ObjHideMessage is now a value type (#992)

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

View File

@ -336,16 +336,16 @@ public override void Serialize(NetworkWriter writer)
} }
} }
class ObjectHideMessage : MessageBase struct ObjectHideMessage : 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);
} }