Files
Nitrox/NitroxModel/Packets/PvPAttack.cs
2025-07-06 00:23:46 +02:00

25 lines
475 B
C#

using System;
namespace NitroxModel.Packets;
[Serializable]
public class PvPAttack : Packet
{
public ushort TargetPlayerId { get; }
public float Damage { get; set; }
public AttackType Type { get; }
public PvPAttack(ushort targetPlayerId, float damage, AttackType type)
{
TargetPlayerId = targetPlayerId;
Damage = damage;
Type = type;
}
public enum AttackType : byte
{
KnifeHit,
HeatbladeHit
}
}