first commit
This commit is contained in:
29
NitroxModel/Packets/PlayerStats.cs
Normal file
29
NitroxModel/Packets/PlayerStats.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using NitroxModel.Networking;
|
||||
|
||||
namespace NitroxModel.Packets;
|
||||
|
||||
[Serializable]
|
||||
public class PlayerStats : Packet
|
||||
{
|
||||
public ushort PlayerId { get; set; }
|
||||
public float Oxygen { get; }
|
||||
public float MaxOxygen { get; }
|
||||
public float Health { get; }
|
||||
public float Food { get; }
|
||||
public float Water { get; }
|
||||
public float InfectionAmount { get; }
|
||||
|
||||
public PlayerStats(ushort playerId, float oxygen, float maxOxygen, float health, float food, float water, float infectionAmount)
|
||||
{
|
||||
PlayerId = playerId;
|
||||
Oxygen = oxygen;
|
||||
MaxOxygen = maxOxygen;
|
||||
Health = health;
|
||||
Food = food;
|
||||
Water = water;
|
||||
InfectionAmount = infectionAmount;
|
||||
|
||||
DeliveryMethod = NitroxDeliveryMethod.DeliveryMethod.RELIABLE_ORDERED_LAST;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user