mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
feat: Added Read<T> Method to NetworkReader (#1480)
* Added Read<T> Method * Renamed to ReadMessage
This commit is contained in:
parent
02e4245f3d
commit
58df3fd6d6
@ -369,5 +369,10 @@ public static Uri ReadUri(this NetworkReader reader)
|
||||
{
|
||||
return new Uri(reader.ReadString());
|
||||
}
|
||||
|
||||
public static void ReadMessage<T>(this NetworkReader reader, T msg) where T : IMessageBase
|
||||
{
|
||||
msg.Deserialize(reader);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user