first commit
This commit is contained in:
33
NitroxModel/Packets/SimulationOwnershipChange.cs
Normal file
33
NitroxModel/Packets/SimulationOwnershipChange.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user