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