using LiteNetLib.Utils; using Engine.Core; namespace Engine.Systems.Network; internal static class Vector3DIntNetPacker { internal static void Write(NetDataWriter writer, Vector3DInt data) { writer.Put(data.X); writer.Put(data.Y); writer.Put(data.Z); } internal static Vector3DInt Read(NetDataReader reader) { int x = reader.GetInt(); int y = reader.GetInt(); int z = reader.GetInt(); return new Vector3DInt(x, y, z); } }