first commit
This commit is contained in:
24
NitroxModel/Packets/PvPAttack.cs
Normal file
24
NitroxModel/Packets/PvPAttack.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
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
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user