Skip to content

Commit

Permalink
Removed encryption layers
Browse files Browse the repository at this point in the history
  • Loading branch information
cubicgraphics committed Apr 2, 2024
1 parent 5dd6876 commit fa8cfdf
Show file tree
Hide file tree
Showing 12 changed files with 4 additions and 597 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,5 @@ public interface IPacketDispatcher
void SendExcludingPlayer(IPlayer excludedPlayer, INetSerializable[] packets, IgnoranceChannelTypes deliveryMethod);
void SendFromPlayer(IPlayer fromPlayer, INetSerializable packet, IgnoranceChannelTypes deliveryMethod);
void SendFromPlayer(IPlayer fromPlayer, INetSerializable[] packets, IgnoranceChannelTypes deliveryMethod);

/*
Task SendToNearbyPlayersAndAwait(INetSerializable packet, DeliveryMethod deliveryMethod);
Task SendToNearbyPlayersAndAwait(INetSerializable[] packets, DeliveryMethod deliveryMethod);
Task SendExcludingPlayerAndAwait(IPlayer excludedPlayer, INetSerializable packet, DeliveryMethod deliveryMethod);
Task SendExcludingPlayerAndAwait(IPlayer excludedPlayer, INetSerializable[] packets, DeliveryMethod deliveryMethod);
Task SendFromPlayerAndAwait(IPlayer fromPlayer, INetSerializable packet, DeliveryMethod deliveryMethod);
Task SendFromPlayerAndAwait(IPlayer fromPlayer, INetSerializable[] packets, DeliveryMethod deliveryMethod);
Task SendFromPlayerToPlayerAndAwait(IPlayer fromPlayer, IPlayer toPlayer, INetSerializable packet, DeliveryMethod deliveryMethod);
Task SendFromPlayerToPlayerAndAwait(IPlayer fromPlayer, IPlayer toPlayer, INetSerializable[] packets, DeliveryMethod deliveryMethod);
Task SendToPlayerAndAwait(IPlayer player, INetSerializable packet, DeliveryMethod deliveryMethod);
Task SendToPlayerAndAwait(IPlayer player, INetSerializable[] packets, DeliveryMethod deliveryMethod);
*/
}
}
6 changes: 1 addition & 5 deletions BeatTogether.DedicatedServer.Kernel/DedicatedInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.Threading.Tasks;
using BeatTogether.DedicatedServer.Kernel.Abstractions;
using BeatTogether.DedicatedServer.Kernel.Configuration;
using BeatTogether.DedicatedServer.Kernel.Encryption;
using BeatTogether.DedicatedServer.Kernel.ENet;
using BeatTogether.DedicatedServer.Kernel.Enums;
using BeatTogether.DedicatedServer.Kernel.Extensions;
Expand Down Expand Up @@ -47,7 +46,6 @@ public sealed class DedicatedInstance : ENetServer, IDedicatedInstance

private readonly IPlayerRegistry _playerRegistry;
private readonly IServiceProvider _serviceProvider;
private readonly PacketEncryptionLayer _packetEncryptionLayer;
private readonly IPacketDispatcher PacketDispatcher;
private readonly PacketSource ConnectedMessageSource;

Expand All @@ -68,14 +66,12 @@ public DedicatedInstance(
IPlayerRegistry playerRegistry,
IPacketDispatcher packetDispatcher,
PacketSource connectedMessageSource,
IServiceProvider serviceProvider,
PacketEncryptionLayer packetEncryptionLayer)
IServiceProvider serviceProvider)
: base (configuration.Port)
{
_configuration = configuration;
_playerRegistry = playerRegistry;
_serviceProvider = serviceProvider;
_packetEncryptionLayer = packetEncryptionLayer;
PacketDispatcher = packetDispatcher;
ConnectedMessageSource = connectedMessageSource;
}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit fa8cfdf

Please sign in to comment.