feat: Paddle Data Send

This commit is contained in:
2024-07-14 23:55:06 +03:00
parent 2565617ff9
commit 1b1d9dcdac
2 changed files with 32 additions and 6 deletions

View File

@@ -9,6 +9,8 @@ public static class NetworkExtensions
{
public static Vector2D GetVector2D(this NetPacketReader reader)
=> new(reader.GetFloat(), reader.GetFloat());
public static void GetVector2D(this NetPacketReader reader, out Vector2D vector2D)
=> vector2D = new(reader.GetFloat(), reader.GetFloat());
public static void Put(this NetDataWriter writer, Vector2D vector)
{