-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First pass of removing compat for older versions
- Loading branch information
1 parent
0124fed
commit 0fbcfee
Showing
88 changed files
with
356 additions
and
2,252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
BeatTogether.DedicatedServer.Kernel/Abstractions/BaseHandshakeMessageHandler.cs
This file was deleted.
Oops, something went wrong.
5 changes: 2 additions & 3 deletions
5
BeatTogether.DedicatedServer.Kernel/Abstractions/BasePacketHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
using BeatTogether.LiteNetLib.Abstractions; | ||
using System.Threading.Tasks; | ||
|
||
namespace BeatTogether.DedicatedServer.Kernel.Abstractions | ||
{ | ||
public abstract class BasePacketHandler<TPacket> : IPacketHandler<TPacket> | ||
where TPacket : class, INetSerializable | ||
{ | ||
public abstract Task Handle(IPlayer sender, TPacket packet); | ||
public abstract void Handle(IPlayer sender, TPacket packet); | ||
|
||
public Task Handle(IPlayer sender, INetSerializable packet) => | ||
public void Handle(IPlayer sender, INetSerializable packet) => | ||
Handle(sender, (TPacket)packet); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
BeatTogether.DedicatedServer.Kernel/Abstractions/IHandshakeMessageHandler.cs
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
BeatTogether.DedicatedServer.Kernel/Abstractions/IHandshakeService.cs
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
BeatTogether.DedicatedServer.Kernel/Abstractions/IHandshakeSessionRegistry.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
BeatTogether.DedicatedServer.Kernel/Abstractions/IPacketHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
using BeatTogether.LiteNetLib.Abstractions; | ||
using System.Threading.Tasks; | ||
|
||
namespace BeatTogether.DedicatedServer.Kernel.Abstractions | ||
{ | ||
public interface IPacketHandler | ||
{ | ||
Task Handle(IPlayer sender, INetSerializable packet); | ||
void Handle(IPlayer sender, INetSerializable packet); | ||
} | ||
|
||
public interface IPacketHandler<TPacket> : IPacketHandler | ||
where TPacket : class, INetSerializable | ||
{ | ||
Task Handle(IPlayer sender, TPacket packet); | ||
void Handle(IPlayer sender, TPacket packet); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
BeatTogether.DedicatedServer.Kernel/Abstractions/IUnconnectedDispatcher.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.