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,25 @@
using NitroxClient.Communication.Packets.Processors.Abstract;
using NitroxClient.GameLogic;
using NitroxModel.DataStructures.GameLogic;
using NitroxModel.Packets;
namespace NitroxClient.Communication.Packets.Processors;
public class PermsChangedProcessor : ClientPacketProcessor<PermsChanged>
{
private LocalPlayer localPlayer;
public delegate void PermissionsChanged(Perms perms);
public PermissionsChanged OnPermissionsChanged;
public PermsChangedProcessor(LocalPlayer localPlayer)
{
this.localPlayer = localPlayer;
}
public override void Process(PermsChanged packet)
{
localPlayer.Permissions = packet.NewPerms;
OnPermissionsChanged(packet.NewPerms);
}
}