first commit

This commit is contained in:
2025-07-06 00:23:46 +02:00
commit 38f50c8819
1788 changed files with 112878 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
using NitroxModel.Packets;
using NitroxServer.GameLogic;
using NitroxServer.GameLogic.Bases;
namespace NitroxServer.Communication.Packets.Processors;
public class LargeWaterParkDeconstructedProcessor : BuildingProcessor<LargeWaterParkDeconstructed>
{
public LargeWaterParkDeconstructedProcessor(BuildingManager buildingManager, PlayerManager playerManager) : base(buildingManager, playerManager) { }
public override void Process(LargeWaterParkDeconstructed packet, Player player)
{
// SeparateChildrenToWaterParks must happen before ReplacePieceByGhost
// so the water park's children can be moved before it being removed
if (buildingManager.SeparateChildrenToWaterParks(packet) &&
buildingManager.ReplacePieceByGhost(player, packet, out _, out int operationId))
{
packet.BaseData = null;
SendToOtherPlayersWithOperationId(packet, player, operationId);
}
}
}