fix: added missing types for new primitives
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using LiteNetLib.Utils;
|
||||
|
||||
using Engine.Core;
|
||||
|
||||
namespace Engine.Systems.Network;
|
||||
|
||||
internal static class Vector2DIntNetPacker
|
||||
{
|
||||
internal static void Write(NetDataWriter writer, Vector2DInt data)
|
||||
{
|
||||
writer.Put(data.X);
|
||||
writer.Put(data.Y);
|
||||
}
|
||||
|
||||
internal static Vector2DInt Read(NetDataReader reader)
|
||||
{
|
||||
int x = reader.GetInt();
|
||||
int y = reader.GetInt();
|
||||
|
||||
return new Vector2DInt(x, y);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user