mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
perf: ObjHideMessage is now a value type (#992)
This commit is contained in:
parent
d071438d01
commit
a49d938fbe
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user