~ruther/NosSmooth

dbbd989e19b1a26ae9dce135ad45892e916682f5 — František Boháček 2 years ago 931dc27
feat(packets): update packets to not use nullable if not needed
M Core/NosSmooth.Game/PacketHandlers/Relations/FriendInitResponder.cs => Core/NosSmooth.Game/PacketHandlers/Relations/FriendInitResponder.cs +1 -1
@@ 63,7 63,7 @@ public class FriendInitResponder : IPacketResponder<FInfoPacket>, IPacketRespond
        var friends = packet.FriendSubPackets
            .Select
            (
                x => new Friend(x.PlayerId, x.RelationType ?? CharacterRelationType.Blocked)
                x => new Friend(x.PlayerId, x.RelationType)
                {
                    PlayerId = x.PlayerId,
                    CharacterName = x.Name,

M Packets/NosSmooth.Packets/Server/Character/AscrPacket.cs => Packets/NosSmooth.Packets/Server/Character/AscrPacket.cs +1 -1
@@ 42,5 42,5 @@ public record AscrPacket
    [PacketIndex(7)]
    int DieGroup,
    [PacketIndex(8)]
    AscrPacketType? Type
    AscrPacketType Type
) : IPacket;
\ No newline at end of file

M Packets/NosSmooth.Packets/Server/Portals/GpPacket.cs => Packets/NosSmooth.Packets/Server/Portals/GpPacket.cs +1 -1
@@ 29,7 29,7 @@ public record GpPacket
    [PacketIndex(2)]
    int TargetMapId,
    [PacketIndex(3)]
    PortalType? PortalType,
    PortalType PortalType,
    [PacketIndex(4)]
    long PortalId,
    [PacketIndex(5)]

M Packets/NosSmooth.Packets/Server/Relations/FInitSubPacket.cs => Packets/NosSmooth.Packets/Server/Relations/FInitSubPacket.cs +1 -1
@@ 25,7 25,7 @@ public record FInitSubPacket
    [PacketIndex(0)]
    long PlayerId,
    [PacketIndex(1)]
    CharacterRelationType? RelationType,
    CharacterRelationType RelationType,
    [PacketIndex(2)]
    bool IsConnected,
    [PacketIndex(3)]

Do not follow this link