first commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using NitroxClient.Communication.Packets.Processors.Abstract;
|
||||
using NitroxClient.GameLogic;
|
||||
using NitroxModel.DataStructures;
|
||||
using NitroxModel.Packets;
|
||||
|
||||
namespace NitroxClient.Communication.Packets.Processors;
|
||||
|
||||
public class SimulationOwnershipChangeProcessor : ClientPacketProcessor<SimulationOwnershipChange>
|
||||
{
|
||||
private readonly SimulationOwnership simulationOwnershipManager;
|
||||
|
||||
public SimulationOwnershipChangeProcessor(SimulationOwnership simulationOwnershipManager)
|
||||
{
|
||||
this.simulationOwnershipManager = simulationOwnershipManager;
|
||||
}
|
||||
|
||||
public override void Process(SimulationOwnershipChange simulationOwnershipChange)
|
||||
{
|
||||
foreach (SimulatedEntity simulatedEntity in simulationOwnershipChange.Entities)
|
||||
{
|
||||
simulationOwnershipManager.TreatSimulatedEntity(simulatedEntity);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user