quakeball/Assets/Scripts/Networking/Packets/HitPckt.cs

20 lines
452 B
C#
Raw Normal View History

2020-08-08 06:00:17 +02:00
using NeonTea.Quakeball.TeaNet.Packets;
namespace NeonTea.Quakeball.Networking.Packets {
public class HitPckt : Packet {
public ulong Target;
public HitPckt() { }
public HitPckt(ulong id) { Target = id; }
public override void Read(ByteBuffer buffer) {
Target = buffer.ReadULong();
}
public override void Write(ByteBuffer buffer) {
buffer.Write(Target);
}
}
}