first commit

This commit is contained in:
2025-07-06 00:23:46 +02:00
commit 38f50c8819
1788 changed files with 112878 additions and 0 deletions

View 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;
}
}