fix: added missing types for new primitives

This commit is contained in:
2025-10-19 19:03:30 +03:00
parent f8096377b2
commit b42f1f1881
19 changed files with 526 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
using LiteNetLib.Utils;
using Engine.Core;
namespace Engine.Systems.Network;
internal static class Line3DNetPacker
{
internal static void Write(NetDataWriter writer, Line3D data)
{
Vector3DNetPacker.Write(writer, data.From);
Vector3DNetPacker.Write(writer, data.To);
}
internal static Line3D Read(NetDataReader reader)
{
Vector3D from = Vector3DNetPacker.Read(reader);
Vector3D to = Vector3DNetPacker.Read(reader);
return new Line3D(from, to);
}
}