structure du projet, ajout de la lib hexagonal
This commit is contained in:
14
Src/Giants.Infrastructure/Giants.Infrastructure.csproj
Normal file
14
Src/Giants.Infrastructure/Giants.Infrastructure.csproj
Normal file
@@ -0,0 +1,14 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Giants.Core\Giants.Core.csproj" />
|
||||
<ProjectReference Include="..\HexagonalLib\src\HexagonalLib.Net\HexagonalLib.Net\HexagonalLib.Net.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
16
Src/Giants.Infrastructure/Src/HexagonalGridImpl.cs
Normal file
16
Src/Giants.Infrastructure/Src/HexagonalGridImpl.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
namespace Giants.Infrastructure;
|
||||
|
||||
using Giants.Core.Interfaces;
|
||||
|
||||
using HexagonalLib;
|
||||
|
||||
public class HexagonalGridImpl : IHexagonalGrid
|
||||
{
|
||||
private readonly HexagonalGrid _grid;
|
||||
|
||||
public HexagonalGridImpl()
|
||||
{
|
||||
_grid = new HexagonalGrid(HexagonalGridType.PointyEven, 1.0f);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user