23 lines
		
	
	
		
			475 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			475 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using LiteNetLib.Utils;
 | 
						|
 | 
						|
using Engine.Core;
 | 
						|
 | 
						|
namespace Engine.Systems.Network.Packers;
 | 
						|
 | 
						|
internal static class Projection1DNetPacker
 | 
						|
{
 | 
						|
    internal static void Write(NetDataWriter writer, Projection1D data)
 | 
						|
    {
 | 
						|
        writer.Put(data.Min);
 | 
						|
        writer.Put(data.Max);
 | 
						|
    }
 | 
						|
 | 
						|
    internal static Projection1D Read(NetDataReader reader)
 | 
						|
    {
 | 
						|
        float min = reader.GetFloat();
 | 
						|
        float max = reader.GetFloat();
 | 
						|
 | 
						|
        return new Projection1D(min, max);
 | 
						|
    }
 | 
						|
}
 |