Files
Nitrox/NitroxModel/Packets/SimulationOwnershipChange.cs
2025-07-06 00:23:46 +02:00

34 lines
871 B
C#

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