summaryrefslogtreecommitdiff
path: root/Net.cs
diff options
context:
space:
mode:
authorSarah B <git@sarahduck.ca>2024-01-22 18:22:31 -0800
committerSarah B <git@sarahduck.ca>2024-01-22 18:22:31 -0800
commit3f4fe74715124357ba3341e635fdb2bda3fcd92d (patch)
treecff33fd322e7a9ad1f5cb0a75adf77341d60ebea /Net.cs
parent5be6cc2168c4efe5f72f5b9ef52ca48c26523bc2 (diff)
Updated LiteNetLib to 1.2.0
Diffstat (limited to 'Net.cs')
-rw-r--r--Net.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Net.cs b/Net.cs
index 8ade4e8..694b4b8 100644
--- a/Net.cs
+++ b/Net.cs
@@ -46,6 +46,11 @@ public static class NetExtensions
float Y = reader.GetFloat();
return new Vector2(X, Y);
}
+
+ public static void ResetReader(this NetDataReader reader)
+ {
+ reader.SetPosition(PacketInfo.SizeOf+1);
+ }
}
public enum PacketType : byte