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