21 lines
671 B
C#
21 lines
671 B
C#
using NitroxClient.Communication.Packets.Processors.Abstract;
|
|
using NitroxClient.GameLogic;
|
|
using NitroxModel.Packets;
|
|
|
|
namespace NitroxClient.Communication.Packets.Processors;
|
|
|
|
public class DropSimulationOwnershipProcessor : ClientPacketProcessor<DropSimulationOwnership>
|
|
{
|
|
private readonly SimulationOwnership simulationOwnershipManager;
|
|
|
|
public DropSimulationOwnershipProcessor(SimulationOwnership simulationOwnershipManager)
|
|
{
|
|
this.simulationOwnershipManager = simulationOwnershipManager;
|
|
}
|
|
|
|
public override void Process(DropSimulationOwnership packet)
|
|
{
|
|
simulationOwnershipManager.DropSimulationFrom(packet.EntityId);
|
|
}
|
|
}
|