👍 Updated .NET to 9 and C# to 13, comments
This commit is contained in:
parent
cb3c20bf11
commit
82923a311e
@ -1,13 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
|
||||
<IsPackable>false</IsPackable>
|
||||
|
||||
<LangVersion>12</LangVersion>
|
||||
<LangVersion>13</LangVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<RootNamespace>DAL</RootNamespace>
|
||||
<LangVersion>12</LangVersion>
|
||||
<LangVersion>13</LangVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
|
@ -1,4 +1,5 @@
|
||||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
||||
<s:Boolean x:Key="/Default/Dpa/ExcludeFilters/=_002A_003B_002A_003BpacMan_002EControllers_002EGameController_003BConnect/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/Environment/UnitTesting/CreateUnitTestDialog/ShowAdvancedOptions/@EntryValue">True</s:Boolean>
|
||||
<s:String x:Key="/Default/Environment/UnitTesting/CreateUnitTestDialog/TestProjectMapping/=60072632_002DA16F_002D4007_002D8A97_002DAC74B7E6703B/@EntryIndexedValue">35336347-32EB-4764-A28E-3F8FF6CA54C4</s:String>
|
||||
<s:String x:Key="/Default/Environment/UnitTesting/CreateUnitTestDialog/TestTemplateMapping/=NUnit3x/@EntryIndexedValue">db4927dd-2e12-48a7-9a84-2b7e3e31b9c8</s:String>
|
||||
|
5039
pac-man-board-game/ClientApp/pnpm-lock.yaml
generated
5039
pac-man-board-game/ClientApp/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -68,7 +68,6 @@ public abstract class GenericController(ILogger<GenericController> logger, IWebS
|
||||
|
||||
Send(segment);
|
||||
} while (true);
|
||||
|
||||
var disconnectSegment = Disconnect();
|
||||
if (disconnectSegment is not null)
|
||||
SendDisconnectMessage((ArraySegment<byte>)disconnectSegment);
|
||||
|
@ -8,6 +8,7 @@ public class Character : IEquatable<Character>
|
||||
|
||||
[JsonPropertyName("position")] public MovePath? Position { get; set; }
|
||||
|
||||
// TODO isEdible
|
||||
[JsonInclude]
|
||||
[JsonPropertyName("isEatable")]
|
||||
public bool IsEatable { get; set; } = true;
|
||||
|
@ -24,6 +24,7 @@ public class Game(Queue<DirectionalPosition> spawns)
|
||||
public List<Player> Players
|
||||
{
|
||||
get => _players;
|
||||
// TODO what if different length?
|
||||
set
|
||||
{
|
||||
if (_players.Count > 0)
|
||||
@ -56,7 +57,7 @@ public class Game(Queue<DirectionalPosition> spawns)
|
||||
|
||||
// TODO edge-case when game has started but all players have disconnected, Disconnected property?
|
||||
/// <summary>
|
||||
/// Whether or not the game has started.
|
||||
/// Whether the game has started.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The game is considered started if the count is greater than zero and at least one player is in the "InGame" state.
|
||||
@ -146,7 +147,7 @@ public class Game(Queue<DirectionalPosition> spawns)
|
||||
/// Sets the state of the player with the specified username to Ready.
|
||||
/// </summary>
|
||||
/// <param name="username">The username of the player.</param>
|
||||
/// <returns>An enumerable collection of Player objects.</returns>
|
||||
/// <returns>All players</returns>
|
||||
public IEnumerable<Player> SetReady(string username)
|
||||
{
|
||||
var player = Players.FirstOrDefault(p => p.Username == username);
|
||||
|
@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
|
||||
<TypeScriptToolsVersion>Latest</TypeScriptToolsVersion>
|
||||
@ -13,7 +13,7 @@
|
||||
<RootNamespace>pacMan</RootNamespace>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||
<LangVersion>12</LangVersion>
|
||||
<LangVersion>13</LangVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
Loading…
x
Reference in New Issue
Block a user