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,33 @@
using System;
using System.Collections.Generic;
using NitroxModel.DataStructures;
namespace NitroxModel.Packets
{
[Serializable]
public class SimulationOwnershipChange : Packet
{
public List<SimulatedEntity> Entities { get; }
public SimulationOwnershipChange(NitroxId id, ushort owningPlayerId, SimulationLockType lockType, bool changesPosition = false)
{
Entities = new List<SimulatedEntity>
{
new(id, owningPlayerId, changesPosition, lockType)
};
}
public SimulationOwnershipChange(SimulatedEntity entity)
{
Entities = new List<SimulatedEntity>
{
entity
};
}
public SimulationOwnershipChange(List<SimulatedEntity> entities)
{
Entities = entities;
}
}
}