29 lines
965 B
C#
29 lines
965 B
C#
using System;
|
|
using NitroxModel.DataStructures;
|
|
using NitroxModel.Packets;
|
|
|
|
namespace NitroxModel_Subnautica.Packets
|
|
{
|
|
[Serializable]
|
|
public class CyclopsDamagePointRepaired : Packet
|
|
{
|
|
public NitroxId Id { get; }
|
|
public int DamagePointIndex { get; }
|
|
public float RepairAmount { get; }
|
|
|
|
/// <param name="id">The Cyclops id</param>
|
|
/// <param name="repairAmount">The amount to repair the damage by. A large repair amount is passed if the point is meant to be fully repaired</param>
|
|
public CyclopsDamagePointRepaired(NitroxId id, int damagePointIndex, float repairAmount)
|
|
{
|
|
Id = id;
|
|
DamagePointIndex = damagePointIndex;
|
|
RepairAmount = repairAmount;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"[CyclopsDamagePointRepaired - Id: {Id}, DamagePointIndex: {DamagePointIndex}, RepairAmount: {RepairAmount}]";
|
|
}
|
|
}
|
|
}
|