chore!: renamed AABB to AABB2D

This commit is contained in:
2025-10-19 18:33:01 +03:00
parent 61ff0887e2
commit 1d63391975
11 changed files with 165 additions and 165 deletions

View File

@@ -0,0 +1,22 @@
using LiteNetLib.Utils;
using Engine.Core;
namespace Engine.Systems.Network;
internal static class AABB2DNetPacker
{
internal static void Write(NetDataWriter writer, AABB2D data)
{
Vector2DNetPacker.Write(writer, data.LowerBoundary);
Vector2DNetPacker.Write(writer, data.UpperBoundary);
}
internal static AABB2D Read(NetDataReader reader)
{
Vector2D lowerBoundary = Vector2DNetPacker.Read(reader);
Vector2D upperBoundary = Vector2DNetPacker.Read(reader);
return new AABB2D(lowerBoundary, upperBoundary);
}
}