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