From ec797a5885effb08318f4eef08de64ae61f628de Mon Sep 17 00:00:00 2001 From: Timothy Schenk Date: Mon, 20 Nov 2023 19:56:14 +0100 Subject: [PATCH] chore: formatting --- .editorconfig | 2 +- .../CharacterCreationHandler.cs | 2 ++ Server/PacketHandlers/LoginHandler.cs | 5 +++- Server/Server.csproj | 26 +++++++++---------- Wonderking/Game/Data/Item/ElementalStats.cs | 2 ++ Wonderking/Game/Data/Item/Stats.cs | 2 ++ 6 files changed, 24 insertions(+), 15 deletions(-) diff --git a/.editorconfig b/.editorconfig index 14ff673..bd5069d 100644 --- a/.editorconfig +++ b/.editorconfig @@ -25,7 +25,7 @@ trim_trailing_whitespace = true insert_final_newline = true [*.cs] -file_header_template = // Copyright (c) 2023 Timothy Schenk. Subject to the GNU AGPL Version 3 License. +file_header_template = // Copyright (c) 2023 Timothy Schenk.Subject to the GNU AGPL Version 3 License. indent_size = 4 dotnet_sort_system_directives_first = true dotnet_diagnostic.MA0007.severity = none diff --git a/Server/PacketHandlers/CharacterCreationHandler.cs b/Server/PacketHandlers/CharacterCreationHandler.cs index 6df2f58..8bc9504 100644 --- a/Server/PacketHandlers/CharacterCreationHandler.cs +++ b/Server/PacketHandlers/CharacterCreationHandler.cs @@ -1,3 +1,5 @@ +// // Copyright (c) 2023 Timothy Schenk.Subject to the GNU AGPL Version 3 License. + using Microsoft.EntityFrameworkCore; using NetCoreServer; using Server.DB; diff --git a/Server/PacketHandlers/LoginHandler.cs b/Server/PacketHandlers/LoginHandler.cs index 1681460..500477d 100644 --- a/Server/PacketHandlers/LoginHandler.cs +++ b/Server/PacketHandlers/LoginHandler.cs @@ -1,3 +1,5 @@ +// // Copyright (c) 2023 Timothy Schenk.Subject to the GNU AGPL Version 3 License. + using System.Security.Cryptography; using System.Text; using Konscious.Security.Cryptography; @@ -31,7 +33,8 @@ public class LoginHandler : IPacketHandler { LoginResponseReason loginResponseReason; _logger.LoginData(packet.Username, packet.Password); - var account = await _wonderkingContext.Accounts.FirstOrDefaultAsync(a => a.Username == packet.Username).ConfigureAwait(false); + var account = await _wonderkingContext.Accounts.FirstOrDefaultAsync(a => a.Username == packet.Username) + .ConfigureAwait(false); if (account == null) { diff --git a/Server/Server.csproj b/Server/Server.csproj index a3ff269..30512ac 100644 --- a/Server/Server.csproj +++ b/Server/Server.csproj @@ -82,25 +82,25 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + - + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - - - - - - + + + + + + + + + + + diff --git a/Wonderking/Game/Data/Item/ElementalStats.cs b/Wonderking/Game/Data/Item/ElementalStats.cs index b2bc464..9eaa0f4 100644 --- a/Wonderking/Game/Data/Item/ElementalStats.cs +++ b/Wonderking/Game/Data/Item/ElementalStats.cs @@ -1,3 +1,5 @@ +// // Copyright (c) 2023 Timothy Schenk.Subject to the GNU AGPL Version 3 License. + using System.Runtime.InteropServices; namespace Wonderking.Game.Data.Item; diff --git a/Wonderking/Game/Data/Item/Stats.cs b/Wonderking/Game/Data/Item/Stats.cs index 0d0b105..4883abc 100644 --- a/Wonderking/Game/Data/Item/Stats.cs +++ b/Wonderking/Game/Data/Item/Stats.cs @@ -1,3 +1,5 @@ +// // Copyright (c) 2023 Timothy Schenk.Subject to the GNU AGPL Version 3 License. + using System.Runtime.InteropServices; namespace Wonderking.Game.Data.Item;