34 lines
871 B
C#
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;
|
|
}
|
|
}
|
|
}
|