Skip to content

Commit

Permalink
Remove old, unused packet
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed Jun 8, 2024
1 parent 51e72b0 commit 75aa175
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 56 deletions.
9 changes: 0 additions & 9 deletions Fika.Core/Networking/FikaClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ public void Init()
packetProcessor.SubscribeNetSerializable<WeatherPacket>(OnWeatherPacketReceived);
packetProcessor.SubscribeNetSerializable<BTRPacket>(OnBTRPacketReceived);
packetProcessor.SubscribeNetSerializable<BTRInteractionPacket>(OnBTRInteractionPacketReceived);
packetProcessor.SubscribeNetSerializable<DeathPacket>(OnDeathPacketReceived);
packetProcessor.SubscribeNetSerializable<MinePacket>(OnMinePacketReceived);
packetProcessor.SubscribeNetSerializable<BorderZonePacket>(OnBorderZonePacketReceived);
packetProcessor.SubscribeNetSerializable<SendCharacterPacket>(OnSendCharacterPacketReceived);
Expand Down Expand Up @@ -258,14 +257,6 @@ private void OnMinePacketReceived(MinePacket packet)
}
}

private void OnDeathPacketReceived(DeathPacket packet)
{
if (Players.TryGetValue(packet.NetId, out CoopPlayer playerToApply))
{
playerToApply.HandleDeathPatchet(packet);
}
}

private void OnBTRInteractionPacketReceived(BTRInteractionPacket packet)
{
if (Players.TryGetValue(packet.NetId, out CoopPlayer player))
Expand Down
12 changes: 0 additions & 12 deletions Fika.Core/Networking/FikaServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ public async Task Init()
packetProcessor.SubscribeNetSerializable<WeatherPacket, NetPeer>(OnWeatherPacketReceived);
packetProcessor.SubscribeNetSerializable<BTRInteractionPacket, NetPeer>(OnBTRInteractionPacketReceived);
packetProcessor.SubscribeNetSerializable<BTRServicePacket, NetPeer>(OnBTRServicePacketReceived);
packetProcessor.SubscribeNetSerializable<DeathPacket, NetPeer>(OnDeathPacketReceived);
packetProcessor.SubscribeNetSerializable<MinePacket, NetPeer>(OnMinePacketReceived);
packetProcessor.SubscribeNetSerializable<BorderZonePacket, NetPeer>(OnBorderZonePacketReceived);
packetProcessor.SubscribeNetSerializable<SendCharacterPacket, NetPeer>(OnSendCharacterPacketReceived);
Expand Down Expand Up @@ -260,17 +259,6 @@ private void OnMinePacketReceived(MinePacket packet, NetPeer peer)
}
}

private void OnDeathPacketReceived(DeathPacket packet, NetPeer peer)
{
if (Players.TryGetValue(packet.NetId, out CoopPlayer playerToApply))
{
playerToApply.HandleDeathPatchet(packet);
}

_dataWriter.Reset();
SendDataToAll(_dataWriter, ref packet, DeliveryMethod.ReliableOrdered, peer);
}

private void OnBTRServicePacketReceived(BTRServicePacket packet, NetPeer peer)
{
if (coopHandler.serverBTR != null)
Expand Down
35 changes: 0 additions & 35 deletions Fika.Core/Networking/Packets/Player/DeathPacket.cs

This file was deleted.

0 comments on commit 75aa175

Please sign in to comment.