Skip to content

Commit

Permalink
Update SyncPacketHelper.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
laolarou726 committed Sep 12, 2023
1 parent c1ee038 commit 5e1f25a
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,17 @@ public static void RegisterSyncPacketRoutes<TSession>(this IDataDispatcher<TSess
return type switch
{
var t when t == typeof(BooleanSyncPacket) => typeof(ISyncPacket),
var t when t == typeof(CharSyncPacket) => typeof(ISyncPacket),
var t when t == typeof(DoubleSyncPacket) => typeof(ISyncPacket),
var t when t == typeof(Int16SyncPacket) => typeof(ISyncPacket),
var t when t == typeof(Int32SyncPacket) => typeof(ISyncPacket),
var t when t == typeof(Int64SyncPacket) => typeof(ISyncPacket),
var t when t == typeof(SingleSyncPacket) => typeof(ISyncPacket),
var t when t == typeof(StringSyncPacket) => typeof(ISyncPacket),
var t when t == typeof(UInt16SyncPacket) => typeof(ISyncPacket),
var t when t == typeof(UInt32SyncPacket) => typeof(ISyncPacket),
var t when t == typeof(UInt64SyncPacket) => typeof(ISyncPacket),
_ when type == typeof(BooleanSyncPacket) => typeof(ISyncPacket),
_ when type == typeof(CharSyncPacket) => typeof(ISyncPacket),
_ when type == typeof(DoubleSyncPacket) => typeof(ISyncPacket),
_ when type == typeof(Int16SyncPacket) => typeof(ISyncPacket),
_ when type == typeof(Int32SyncPacket) => typeof(ISyncPacket),
_ when type == typeof(Int64SyncPacket) => typeof(ISyncPacket),
_ when type == typeof(SingleSyncPacket) => typeof(ISyncPacket),
_ when type == typeof(StringSyncPacket) => typeof(ISyncPacket),
_ when type == typeof(UInt16SyncPacket) => typeof(ISyncPacket),
_ when type == typeof(UInt32SyncPacket) => typeof(ISyncPacket),
_ when type == typeof(UInt64SyncPacket) => typeof(ISyncPacket),
_ => null
};
});
Expand Down

0 comments on commit 5e1f25a

Please sign in to comment.