~ruther/NosSmooth

79b27514e7c8b729701aff24c294329b5f7483d2 — Rutherther 2 years ago 9b3c495
chore: move PacketSerializer types to correct namespace
45 files changed, 57 insertions(+), 102 deletions(-)

M Core/NosSmooth.Core/Client/BaseNostaleClient.cs
M Core/NosSmooth.Core/Extensions/ServiceCollectionExtensions.cs
M Packets/NosSmooth.PacketSerializer/Converters/Basic/BasicTypeConverter.cs
M Packets/NosSmooth.PacketSerializer/Converters/Basic/BoolStringConverter.cs
M Packets/NosSmooth.PacketSerializer/Converters/Basic/ByteStringConverter.cs
M Packets/NosSmooth.PacketSerializer/Converters/Basic/CharStringConverter.cs
M Packets/NosSmooth.PacketSerializer/Converters/Basic/IntStringConverter.cs
M Packets/NosSmooth.PacketSerializer/Converters/Basic/LongStringConverter.cs
M Packets/NosSmooth.PacketSerializer/Converters/Basic/ShortStringConverter.cs
M Packets/NosSmooth.PacketSerializer/Converters/Basic/StringTypeConverter.cs
M Packets/NosSmooth.PacketSerializer/Converters/Basic/UIntStringConverter.cs
M Packets/NosSmooth.PacketSerializer/Converters/Basic/ULongStringConverter.cs
M Packets/NosSmooth.PacketSerializer/Converters/Basic/UShortStringConverter.cs
M Packets/NosSmooth.PacketSerializer/Converters/Common/NameStringConverter.cs
M Packets/NosSmooth.PacketSerializer/Converters/Packets/UpgradeRareSubPacketConverter.cs
M Packets/NosSmooth.PacketSerializer/Converters/Special/Converters/EnumStringConverter.cs
M Packets/NosSmooth.PacketSerializer/Converters/Special/Converters/ListStringConverter.cs
M Packets/NosSmooth.PacketSerializer/Converters/Special/Converters/NullableStringConverter.cs
M Packets/NosSmooth.PacketSerializer/Converters/Special/EnumStringConverterFactory.cs
M Packets/NosSmooth.PacketSerializer/Converters/Special/IStringConverterFactory.cs
M Packets/NosSmooth.PacketSerializer/Converters/Special/ListStringConverterFactory.cs
M Packets/NosSmooth.PacketSerializer/Converters/Special/NullableStringConverterFactory.cs
M Packets/NosSmooth.PacketSerializer/Converters/Special/StringSerializer.cs
M Packets/NosSmooth.PacketSerializer/Converters/StringConverterRepository.cs
M Packets/NosSmooth.PacketSerializer/Errors/AmbiguousHeaderError.cs
M Packets/NosSmooth.PacketSerializer/Errors/PacketConverterNotFoundError.cs
M Packets/NosSmooth.PacketSerializer/Errors/PacketMissingHeaderError.cs
M Packets/NosSmooth.PacketSerializer/Errors/TypeConverterNotFoundError.cs
M Packets/NosSmooth.PacketSerializer/Extensions/ConcurrentDictionaryExtensions.cs
M Packets/NosSmooth.PacketSerializer/Extensions/PacketTypesRepositoryExtensions.cs
M Packets/NosSmooth.PacketSerializer/Extensions/ResultExtensions.cs
M Packets/NosSmooth.PacketSerializer/Extensions/ServiceCollectionExtensions.cs
M Packets/NosSmooth.PacketSerializer/IPacketSerializer.cs
M Packets/NosSmooth.PacketSerializer/PacketSerializer.cs
M Packets/NosSmooth.PacketSerializer/Packets/IPacketTypesRepository.cs
M Packets/NosSmooth.PacketSerializer/Packets/PacketInfo.cs
M Samples/FileClient/App.cs
M Samples/FileClient/Client.cs
M Tests/NosSmooth.Packets.Tests/Converters/Basic/BoolStringConverterTests.cs
M Tests/NosSmooth.Packets.Tests/Converters/Basic/StringConverterTests.cs
M Tests/NosSmooth.Packets.Tests/Converters/Packets/FcPacketConverterTests.cs
M Tests/NosSmooth.Packets.Tests/Converters/Packets/InPacketConverterTests.cs
M Tests/NosSmooth.Packets.Tests/Converters/Packets/MovePacketConverterTests.cs
M Tests/NosSmooth.Packets.Tests/Converters/Packets/PinitPacketConverterTest.cs
M Tests/NosSmooth.Packets.Tests/Converters/Packets/SkiPacketConverterTests.cs
M Core/NosSmooth.Core/Client/BaseNostaleClient.cs => Core/NosSmooth.Core/Client/BaseNostaleClient.cs +1 -0
@@ 8,6 8,7 @@ using System.Threading;
using System.Threading.Tasks;
using NosSmooth.Core.Commands;
using NosSmooth.Packets;
using NosSmooth.PacketSerializer;
using Remora.Results;

namespace NosSmooth.Core.Client;

M Core/NosSmooth.Core/Extensions/ServiceCollectionExtensions.cs => Core/NosSmooth.Core/Extensions/ServiceCollectionExtensions.cs +1 -1
@@ 14,7 14,7 @@ using NosSmooth.Core.Commands.Control;
using NosSmooth.Core.Commands.Walking;
using NosSmooth.Core.Packets;
using NosSmooth.Core.Stateful;
using NosSmooth.Packets.Extensions;
using NosSmooth.PacketSerializer.Extensions;

namespace NosSmooth.Core.Extensions;


M Packets/NosSmooth.PacketSerializer/Converters/Basic/BasicTypeConverter.cs => Packets/NosSmooth.PacketSerializer/Converters/Basic/BasicTypeConverter.cs +1 -1
@@ 8,7 8,7 @@ using System;
using NosSmooth.PacketSerializer.Abstractions;
using Remora.Results;

namespace NosSmooth.Packets.Converters.Basic;
namespace NosSmooth.PacketSerializer.Converters.Basic;

/// <summary>
/// Basic type converter for converting using <see cref="Convert"/>.

M Packets/NosSmooth.PacketSerializer/Converters/Basic/BoolStringConverter.cs => Packets/NosSmooth.PacketSerializer/Converters/Basic/BoolStringConverter.cs +1 -2
@@ 4,11 4,10 @@
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using NosSmooth.Packets.Errors;
using NosSmooth.PacketSerializer.Abstractions;
using Remora.Results;

namespace NosSmooth.Packets.Converters.Basic;
namespace NosSmooth.PacketSerializer.Converters.Basic;

/// <summary>
/// Converter of <see cref="bool"/>.

M Packets/NosSmooth.PacketSerializer/Converters/Basic/ByteStringConverter.cs => Packets/NosSmooth.PacketSerializer/Converters/Basic/ByteStringConverter.cs +1 -2
@@ 5,11 5,10 @@
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using NosSmooth.Packets.Errors;
using NosSmooth.PacketSerializer.Abstractions.Errors;
using Remora.Results;

namespace NosSmooth.Packets.Converters.Basic;
namespace NosSmooth.PacketSerializer.Converters.Basic;

/// <summary>
/// Converter of <see cref="byte"/>.

M Packets/NosSmooth.PacketSerializer/Converters/Basic/CharStringConverter.cs => Packets/NosSmooth.PacketSerializer/Converters/Basic/CharStringConverter.cs +1 -2
@@ 5,11 5,10 @@
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using NosSmooth.Packets.Errors;
using NosSmooth.PacketSerializer.Abstractions.Errors;
using Remora.Results;

namespace NosSmooth.Packets.Converters.Basic;
namespace NosSmooth.PacketSerializer.Converters.Basic;

/// <summary>
/// Converter of <see cref="char"/>.

M Packets/NosSmooth.PacketSerializer/Converters/Basic/IntStringConverter.cs => Packets/NosSmooth.PacketSerializer/Converters/Basic/IntStringConverter.cs +1 -2
@@ 5,11 5,10 @@
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using NosSmooth.Packets.Errors;
using NosSmooth.PacketSerializer.Abstractions.Errors;
using Remora.Results;

namespace NosSmooth.Packets.Converters.Basic;
namespace NosSmooth.PacketSerializer.Converters.Basic;

/// <summary>
/// Converter of <see cref="int"/>.

M Packets/NosSmooth.PacketSerializer/Converters/Basic/LongStringConverter.cs => Packets/NosSmooth.PacketSerializer/Converters/Basic/LongStringConverter.cs +1 -2
@@ 5,11 5,10 @@
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using NosSmooth.Packets.Errors;
using NosSmooth.PacketSerializer.Abstractions.Errors;
using Remora.Results;

namespace NosSmooth.Packets.Converters.Basic;
namespace NosSmooth.PacketSerializer.Converters.Basic;

/// <summary>
/// Converter of <see cref="long"/>.

M Packets/NosSmooth.PacketSerializer/Converters/Basic/ShortStringConverter.cs => Packets/NosSmooth.PacketSerializer/Converters/Basic/ShortStringConverter.cs +1 -2
@@ 5,11 5,10 @@
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using NosSmooth.Packets.Errors;
using NosSmooth.PacketSerializer.Abstractions.Errors;
using Remora.Results;

namespace NosSmooth.Packets.Converters.Basic;
namespace NosSmooth.PacketSerializer.Converters.Basic;

/// <summary>
/// Converter of <see cref="short"/>.

M Packets/NosSmooth.PacketSerializer/Converters/Basic/StringTypeConverter.cs => Packets/NosSmooth.PacketSerializer/Converters/Basic/StringTypeConverter.cs +1 -1
@@ 7,7 7,7 @@
using System;
using Remora.Results;

namespace NosSmooth.Packets.Converters.Basic;
namespace NosSmooth.PacketSerializer.Converters.Basic;

/// <summary>
/// Converter of <see cref="string"/>.

M Packets/NosSmooth.PacketSerializer/Converters/Basic/UIntStringConverter.cs => Packets/NosSmooth.PacketSerializer/Converters/Basic/UIntStringConverter.cs +1 -2
@@ 5,11 5,10 @@
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using NosSmooth.Packets.Errors;
using NosSmooth.PacketSerializer.Abstractions.Errors;
using Remora.Results;

namespace NosSmooth.Packets.Converters.Basic;
namespace NosSmooth.PacketSerializer.Converters.Basic;

/// <summary>
/// Converter of <see cref="uint"/>.

M Packets/NosSmooth.PacketSerializer/Converters/Basic/ULongStringConverter.cs => Packets/NosSmooth.PacketSerializer/Converters/Basic/ULongStringConverter.cs +1 -2
@@ 5,11 5,10 @@
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using NosSmooth.Packets.Errors;
using NosSmooth.PacketSerializer.Abstractions.Errors;
using Remora.Results;

namespace NosSmooth.Packets.Converters.Basic;
namespace NosSmooth.PacketSerializer.Converters.Basic;

/// <summary>
/// Converter of <see cref="ulong"/>.

M Packets/NosSmooth.PacketSerializer/Converters/Basic/UShortStringConverter.cs => Packets/NosSmooth.PacketSerializer/Converters/Basic/UShortStringConverter.cs +1 -2
@@ 5,11 5,10 @@
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using NosSmooth.Packets.Errors;
using NosSmooth.PacketSerializer.Abstractions.Errors;
using Remora.Results;

namespace NosSmooth.Packets.Converters.Basic;
namespace NosSmooth.PacketSerializer.Converters.Basic;

/// <summary>
/// Converter of <see cref="ushort"/>.

M Packets/NosSmooth.PacketSerializer/Converters/Common/NameStringConverter.cs => Packets/NosSmooth.PacketSerializer/Converters/Common/NameStringConverter.cs +1 -2
@@ 4,12 4,11 @@
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using NosSmooth.Packets.Converters.Basic;
using NosSmooth.PacketSerializer.Abstractions;
using NosSmooth.PacketSerializer.Abstractions.Common;
using Remora.Results;

namespace NosSmooth.Packets.Converters.Common;
namespace NosSmooth.PacketSerializer.Converters.Common;

/// <summary>
/// Converter of <see cref="NameString"/>.

M Packets/NosSmooth.PacketSerializer/Converters/Packets/UpgradeRareSubPacketConverter.cs => Packets/NosSmooth.PacketSerializer/Converters/Packets/UpgradeRareSubPacketConverter.cs +1 -2
@@ 4,13 4,12 @@
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using NosSmooth.Packets.Errors;
using NosSmooth.Packets.Server.Weapons;
using NosSmooth.PacketSerializer.Abstractions;
using NosSmooth.PacketSerializer.Abstractions.Errors;
using Remora.Results;

namespace NosSmooth.Packets.Converters.Packets;
namespace NosSmooth.PacketSerializer.Converters.Packets;

/// <summary>
/// Converter for <see cref="UpgradeRareSubPacket"/>.

M Packets/NosSmooth.PacketSerializer/Converters/Special/Converters/EnumStringConverter.cs => Packets/NosSmooth.PacketSerializer/Converters/Special/Converters/EnumStringConverter.cs +1 -2
@@ 4,11 4,10 @@
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using NosSmooth.PacketSerializer.Abstractions;
using Remora.Results;

namespace NosSmooth.Packets.Converters.Special.Converters;
namespace NosSmooth.PacketSerializer.Converters.Special.Converters;

/// <summary>
/// Converts enum with the given underlying type.

M Packets/NosSmooth.PacketSerializer/Converters/Special/Converters/ListStringConverter.cs => Packets/NosSmooth.PacketSerializer/Converters/Special/Converters/ListStringConverter.cs +1 -4
@@ 4,15 4,12 @@
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using System.Collections;
using System.Collections.Generic;
using NosSmooth.Packets.Errors;
using NosSmooth.PacketSerializer.Abstractions;
using NosSmooth.PacketSerializer.Abstractions.Errors;
using Remora.Results;

namespace NosSmooth.Packets.Converters.Special.Converters;
namespace NosSmooth.PacketSerializer.Converters.Special.Converters;

/// <summary>
/// Converter for list types.

M Packets/NosSmooth.PacketSerializer/Converters/Special/Converters/NullableStringConverter.cs => Packets/NosSmooth.PacketSerializer/Converters/Special/Converters/NullableStringConverter.cs +1 -1
@@ 8,7 8,7 @@ using System;
using NosSmooth.PacketSerializer.Abstractions;
using Remora.Results;

namespace NosSmooth.Packets.Converters.Special.Converters;
namespace NosSmooth.PacketSerializer.Converters.Special.Converters;

#pragma warning disable SA1125
/// <summary>

M Packets/NosSmooth.PacketSerializer/Converters/Special/EnumStringConverterFactory.cs => Packets/NosSmooth.PacketSerializer/Converters/Special/EnumStringConverterFactory.cs +2 -3
@@ 6,12 6,11 @@

using System;
using Microsoft.Extensions.DependencyInjection;
using NosSmooth.Packets.Converters.Special.Converters;
using NosSmooth.Packets.Extensions;
using NosSmooth.PacketSerializer.Abstractions;
using NosSmooth.PacketSerializer.Converters.Special.Converters;
using Remora.Results;

namespace NosSmooth.Packets.Converters.Special;
namespace NosSmooth.PacketSerializer.Converters.Special;

/// <summary>
/// Factory for all enum converters.

M Packets/NosSmooth.PacketSerializer/Converters/Special/IStringConverterFactory.cs => Packets/NosSmooth.PacketSerializer/Converters/Special/IStringConverterFactory.cs +1 -2
@@ 5,11 5,10 @@
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using NosSmooth.Packets.Errors;
using NosSmooth.PacketSerializer.Abstractions;
using Remora.Results;

namespace NosSmooth.Packets.Converters.Special;
namespace NosSmooth.PacketSerializer.Converters.Special;

/// <summary>
/// Converts special types such as enums or lists.

M Packets/NosSmooth.PacketSerializer/Converters/Special/ListStringConverterFactory.cs => Packets/NosSmooth.PacketSerializer/Converters/Special/ListStringConverterFactory.cs +2 -10
@@ 6,20 6,12 @@

using System;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Text;
using Microsoft.Extensions.DependencyInjection;
using NosSmooth.Packets.Converters.Special.Converters;
using NosSmooth.Packets.Errors;
using NosSmooth.Packets.Extensions;
using NosSmooth.PacketSerializer.Abstractions;
using NosSmooth.PacketSerializer.Converters.Special.Converters;
using Remora.Results;

namespace NosSmooth.Packets.Converters.Special;
namespace NosSmooth.PacketSerializer.Converters.Special;

/// <summary>
/// Converts lists.

M Packets/NosSmooth.PacketSerializer/Converters/Special/NullableStringConverterFactory.cs => Packets/NosSmooth.PacketSerializer/Converters/Special/NullableStringConverterFactory.cs +2 -3
@@ 6,12 6,11 @@

using System;
using Microsoft.Extensions.DependencyInjection;
using NosSmooth.Packets.Converters.Special.Converters;
using NosSmooth.Packets.Extensions;
using NosSmooth.PacketSerializer.Abstractions;
using NosSmooth.PacketSerializer.Converters.Special.Converters;
using Remora.Results;

namespace NosSmooth.Packets.Converters.Special;
namespace NosSmooth.PacketSerializer.Converters.Special;

/// <inheritdoc />
public class NullableStringConverterFactory : IStringConverterFactory

M Packets/NosSmooth.PacketSerializer/Converters/Special/StringSerializer.cs => Packets/NosSmooth.PacketSerializer/Converters/Special/StringSerializer.cs +1 -2
@@ 5,11 5,10 @@
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using NosSmooth.Packets.Errors;
using NosSmooth.PacketSerializer.Abstractions;
using Remora.Results;

namespace NosSmooth.Packets.Converters.Special;
namespace NosSmooth.PacketSerializer.Converters.Special;

/// <inheritdoc />
public class StringSerializer : IStringSerializer

M Packets/NosSmooth.PacketSerializer/Converters/StringConverterRepository.cs => Packets/NosSmooth.PacketSerializer/Converters/StringConverterRepository.cs +3 -4
@@ 9,13 9,12 @@ using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Extensions.DependencyInjection;
using NosSmooth.Packets.Converters.Special;
using NosSmooth.Packets.Errors;
using NosSmooth.Packets.Extensions;
using NosSmooth.PacketSerializer.Abstractions;
using NosSmooth.PacketSerializer.Converters.Special;
using NosSmooth.PacketSerializer.Errors;
using Remora.Results;

namespace NosSmooth.Packets.Converters;
namespace NosSmooth.PacketSerializer.Converters;

/// <summary>
/// Repository for <see cref="IStringConverter"/>.

M Packets/NosSmooth.PacketSerializer/Errors/AmbiguousHeaderError.cs => Packets/NosSmooth.PacketSerializer/Errors/AmbiguousHeaderError.cs +2 -3
@@ 4,14 4,13 @@
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using System.Collections.Generic;
using System.Linq;
using NosSmooth.Packets.Packets;
using NosSmooth.PacketSerializer.Abstractions.Attributes;
using NosSmooth.PacketSerializer.Packets;
using Remora.Results;

namespace NosSmooth.Packets.Errors;
namespace NosSmooth.PacketSerializer.Errors;

/// <summary>
/// The header was ambiguous, there were at least two packets with the same header and source.

M Packets/NosSmooth.PacketSerializer/Errors/PacketConverterNotFoundError.cs => Packets/NosSmooth.PacketSerializer/Errors/PacketConverterNotFoundError.cs +1 -1
@@ 6,7 6,7 @@

using Remora.Results;

namespace NosSmooth.Packets.Errors;
namespace NosSmooth.PacketSerializer.Errors;

/// <summary>
/// The converter for the given packet was not found.

M Packets/NosSmooth.PacketSerializer/Errors/PacketMissingHeaderError.cs => Packets/NosSmooth.PacketSerializer/Errors/PacketMissingHeaderError.cs +2 -2
@@ 4,10 4,10 @@
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using NosSmooth.Packets.Packets;
using NosSmooth.Packets;
using Remora.Results;

namespace NosSmooth.Packets.Errors;
namespace NosSmooth.PacketSerializer.Errors;

/// <summary>
/// Packet is missing header and thus cannot be serialized correctly.

M Packets/NosSmooth.PacketSerializer/Errors/TypeConverterNotFoundError.cs => Packets/NosSmooth.PacketSerializer/Errors/TypeConverterNotFoundError.cs +1 -1
@@ 7,7 7,7 @@
using System;
using Remora.Results;

namespace NosSmooth.Packets.Errors;
namespace NosSmooth.PacketSerializer.Errors;

/// <summary>
/// Could not find type converter for the given type.

M Packets/NosSmooth.PacketSerializer/Extensions/ConcurrentDictionaryExtensions.cs => Packets/NosSmooth.PacketSerializer/Extensions/ConcurrentDictionaryExtensions.cs +1 -3
@@ 6,11 6,9 @@

using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Net.Http;
using Remora.Results;

namespace NosSmooth.Packets.Extensions;
namespace NosSmooth.PacketSerializer.Extensions;

/// <summary>
/// Extension methods for <see cref="ConcurrentDictionary{TKey,TValue}"/>.

M Packets/NosSmooth.PacketSerializer/Extensions/PacketTypesRepositoryExtensions.cs => Packets/NosSmooth.PacketSerializer/Extensions/PacketTypesRepositoryExtensions.cs +3 -2
@@ 6,10 6,11 @@

using System.Linq;
using System.Reflection;
using NosSmooth.Packets.Packets;
using NosSmooth.Packets;
using NosSmooth.PacketSerializer.Packets;
using Remora.Results;

namespace NosSmooth.Packets.Extensions;
namespace NosSmooth.PacketSerializer.Extensions;

/// <summary>
/// Extension methods for <see cref="IPacketTypesRepository"/>.

M Packets/NosSmooth.PacketSerializer/Extensions/ResultExtensions.cs => Packets/NosSmooth.PacketSerializer/Extensions/ResultExtensions.cs +1 -2
@@ 4,10 4,9 @@
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using Remora.Results;

namespace NosSmooth.Packets.Extensions;
namespace NosSmooth.PacketSerializer.Extensions;

/// <summary>
/// Extensions for <see cref="Result{TEntity}"/> class.

M Packets/NosSmooth.PacketSerializer/Extensions/ServiceCollectionExtensions.cs => Packets/NosSmooth.PacketSerializer/Extensions/ServiceCollectionExtensions.cs +8 -7
@@ 8,15 8,16 @@ using System;
using System.Linq;
using System.Reflection;
using Microsoft.Extensions.DependencyInjection;
using NosSmooth.Packets.Converters;
using NosSmooth.Packets.Converters.Basic;
using NosSmooth.Packets.Converters.Common;
using NosSmooth.Packets.Converters.Packets;
using NosSmooth.Packets.Converters.Special;
using NosSmooth.Packets.Packets;
using NosSmooth.Packets;
using NosSmooth.PacketSerializer.Abstractions;
using NosSmooth.PacketSerializer.Converters;
using NosSmooth.PacketSerializer.Converters.Basic;
using NosSmooth.PacketSerializer.Converters.Common;
using NosSmooth.PacketSerializer.Converters.Packets;
using NosSmooth.PacketSerializer.Converters.Special;
using NosSmooth.PacketSerializer.Packets;

namespace NosSmooth.Packets.Extensions;
namespace NosSmooth.PacketSerializer.Extensions;

/// <summary>
/// Extensions for <see cref="IServiceCollection"/>.

M Packets/NosSmooth.PacketSerializer/IPacketSerializer.cs => Packets/NosSmooth.PacketSerializer/IPacketSerializer.cs +2 -3
@@ 4,12 4,11 @@
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using NosSmooth.Packets.Errors;
using NosSmooth.Packets.Packets;
using NosSmooth.Packets;
using NosSmooth.PacketSerializer.Abstractions.Attributes;
using Remora.Results;

namespace NosSmooth.Packets;
namespace NosSmooth.PacketSerializer;

/// <summary>
/// Serializer of packets.

M Packets/NosSmooth.PacketSerializer/PacketSerializer.cs => Packets/NosSmooth.PacketSerializer/PacketSerializer.cs +4 -5
@@ 4,16 4,15 @@
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using NosSmooth.Packets.Converters;
using NosSmooth.Packets.Errors;
using NosSmooth.Packets.Packets;
using NosSmooth.Packets;
using NosSmooth.PacketSerializer.Abstractions;
using NosSmooth.PacketSerializer.Abstractions.Attributes;
using NosSmooth.PacketSerializer.Abstractions.Errors;
using NosSmooth.PacketSerializer.Errors;
using NosSmooth.PacketSerializer.Packets;
using Remora.Results;

namespace NosSmooth.Packets;
namespace NosSmooth.PacketSerializer;

/// <summary>
/// Serializer of packets.

M Packets/NosSmooth.PacketSerializer/Packets/IPacketTypesRepository.cs => Packets/NosSmooth.PacketSerializer/Packets/IPacketTypesRepository.cs +2 -3
@@ 6,12 6,11 @@

using System;
using System.Collections.Generic;
using System.Reflection;
using NosSmooth.Packets.Errors;
using NosSmooth.Packets;
using NosSmooth.PacketSerializer.Abstractions.Attributes;
using Remora.Results;

namespace NosSmooth.Packets.Packets;
namespace NosSmooth.PacketSerializer.Packets;

/// <summary>
/// Repository of packet types for finding information about packets.

M Packets/NosSmooth.PacketSerializer/Packets/PacketInfo.cs => Packets/NosSmooth.PacketSerializer/Packets/PacketInfo.cs +1 -2
@@ 5,10 5,9 @@
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using NosSmooth.Packets.Converters;
using NosSmooth.PacketSerializer.Abstractions;

namespace NosSmooth.Packets.Packets;
namespace NosSmooth.PacketSerializer.Packets;

/// <summary>
/// Information about a packet type.

M Samples/FileClient/App.cs => Samples/FileClient/App.cs +0 -2
@@ 9,8 9,6 @@ using Microsoft.Extensions.Logging;
using NosSmooth.Core.Client;
using NosSmooth.Core.Extensions;
using NosSmooth.Data.NOSFiles;
using NosSmooth.Packets.Extensions;
using NosSmooth.Packets.Packets;
using Remora.Results;

namespace FileClient;

M Samples/FileClient/Client.cs => Samples/FileClient/Client.cs +0 -1
@@ 11,7 11,6 @@ using NosSmooth.Core.Commands;
using NosSmooth.Core.Extensions;
using NosSmooth.Core.Packets;
using NosSmooth.Packets;
using NosSmooth.Packets.Errors;
using NosSmooth.PacketSerializer.Abstractions.Attributes;
using Remora.Results;


M Tests/NosSmooth.Packets.Tests/Converters/Basic/BoolStringConverterTests.cs => Tests/NosSmooth.Packets.Tests/Converters/Basic/BoolStringConverterTests.cs +0 -2
@@ 5,8 5,6 @@
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using Microsoft.Extensions.DependencyInjection;
using NosSmooth.Packets.Converters.Basic;
using NosSmooth.Packets.Extensions;
using NosSmooth.PacketSerializer.Abstractions;
using Xunit;


M Tests/NosSmooth.Packets.Tests/Converters/Basic/StringConverterTests.cs => Tests/NosSmooth.Packets.Tests/Converters/Basic/StringConverterTests.cs +0 -1
@@ 6,7 6,6 @@

using System.ComponentModel;
using Microsoft.Extensions.DependencyInjection;
using NosSmooth.Packets.Extensions;
using NosSmooth.PacketSerializer.Abstractions;
using Xunit;


M Tests/NosSmooth.Packets.Tests/Converters/Packets/FcPacketConverterTests.cs => Tests/NosSmooth.Packets.Tests/Converters/Packets/FcPacketConverterTests.cs +0 -1
@@ 6,7 6,6 @@

using Microsoft.Extensions.DependencyInjection;
using NosSmooth.Packets.Enums;
using NosSmooth.Packets.Extensions;
using NosSmooth.Packets.Server.Act4;
using NosSmooth.PacketSerializer.Abstractions.Attributes;
using Xunit;

M Tests/NosSmooth.Packets.Tests/Converters/Packets/InPacketConverterTests.cs => Tests/NosSmooth.Packets.Tests/Converters/Packets/InPacketConverterTests.cs +0 -1
@@ 9,7 9,6 @@ using Microsoft.Extensions.DependencyInjection;
using NosSmooth.Packets.Enums;
using NosSmooth.Packets.Enums.Entities;
using NosSmooth.Packets.Enums.Players;
using NosSmooth.Packets.Extensions;
using NosSmooth.Packets.Server.Entities;
using NosSmooth.Packets.Server.Maps;
using NosSmooth.Packets.Server.Players;

M Tests/NosSmooth.Packets.Tests/Converters/Packets/MovePacketConverterTests.cs => Tests/NosSmooth.Packets.Tests/Converters/Packets/MovePacketConverterTests.cs +0 -1
@@ 6,7 6,6 @@

using Microsoft.Extensions.DependencyInjection;
using NosSmooth.Packets.Enums;
using NosSmooth.Packets.Extensions;
using NosSmooth.Packets.Server.Entities;
using NosSmooth.PacketSerializer.Abstractions.Attributes;
using Xunit;

M Tests/NosSmooth.Packets.Tests/Converters/Packets/PinitPacketConverterTest.cs => Tests/NosSmooth.Packets.Tests/Converters/Packets/PinitPacketConverterTest.cs +0 -1
@@ 6,7 6,6 @@

using Microsoft.Extensions.DependencyInjection;
using NosSmooth.Packets.Enums;
using NosSmooth.Packets.Extensions;
using NosSmooth.Packets.Server.Groups;
using NosSmooth.PacketSerializer.Abstractions.Attributes;
using Xunit;

M Tests/NosSmooth.Packets.Tests/Converters/Packets/SkiPacketConverterTests.cs => Tests/NosSmooth.Packets.Tests/Converters/Packets/SkiPacketConverterTests.cs +0 -2
@@ 6,8 6,6 @@

using Microsoft.Extensions.DependencyInjection;
using NosSmooth.Packets.Enums;
using NosSmooth.Packets.Extensions;
using NosSmooth.Packets.Packets;
using NosSmooth.Packets.Server.Groups;
using NosSmooth.Packets.Server.Skills;
using NosSmooth.PacketSerializer.Abstractions.Attributes;

Do not follow this link