diff --git a/NuGet.config b/NuGet.config new file mode 100644 index 0000000..e450169 --- /dev/null +++ b/NuGet.config @@ -0,0 +1,6 @@ + + + + + + diff --git a/README.md b/README.md index 4daa3f0..1d02d40 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,11 @@ # Reactor Maintenance -C# WinUI 3 + Win2D level editor for the deterministic grid simulation described in `docs/design.md`. +C# simulation with WinUI 3 + Win2D editor and an empty Godot frontend shell for the deterministic grid simulation described in `docs/design.md`. ## Projects - `src/ReactorMaintenance.Simulation`: UI-independent level model, editor operations, validation, forecasts, simulation turns, versioned JSON serialization, and deterministic balancing defaults. +- `src/ReactorMaintenance.Godot`: empty Godot 4.5 .NET frontend project shell referencing the simulation core. - `src/ReactorMaintenance.Win2D`: Win2D editor app for authoring terrain, underground fuel/coolant/electricity networks, props, explicit leak access faces, door edges, reactor consumer bindings, rule events, surface hazards, robot start, loading/saving levels, ending turns, interacting with props, and activating a ready reactor. - `tests/ReactorMaintenance.Simulation.Tests`: unit tests for deterministic simulation behavior, validation, serialization, and editor operations. @@ -19,6 +20,8 @@ C# WinUI 3 + Win2D level editor for the deterministic grid simulation described ## Commands ```powershell +dotnet build src\ReactorMaintenance.Godot\ReactorMaintenance.Godot.csproj +..\Godot_v4.5.1-stable_mono_win64\Godot_v4.5.1-stable_mono_win64_console.exe --headless --editor --quit --path src\ReactorMaintenance.Godot dotnet test tests\ReactorMaintenance.Simulation.Tests\ReactorMaintenance.Simulation.Tests.csproj dotnet build src\ReactorMaintenance.Win2D\ReactorMaintenance.Win2D.csproj -p:Platform=x64 -p:EnableWindowsTargeting=true dotnet run --project src\ReactorMaintenance.Win2D\ReactorMaintenance.Win2D.csproj -p:Platform=x64 diff --git a/ReactorMaintenance.slnx b/ReactorMaintenance.slnx index 4550a38..932f4b5 100644 --- a/ReactorMaintenance.slnx +++ b/ReactorMaintenance.slnx @@ -1,5 +1,6 @@  + diff --git a/src/ReactorMaintenance.Godot/ReactorMaintenance.Godot.csproj b/src/ReactorMaintenance.Godot/ReactorMaintenance.Godot.csproj new file mode 100644 index 0000000..fecc773 --- /dev/null +++ b/src/ReactorMaintenance.Godot/ReactorMaintenance.Godot.csproj @@ -0,0 +1,13 @@ + + + net8.0 + ReactorMaintenance.Godot + enable + enable + true + + + + + + diff --git a/src/ReactorMaintenance.Godot/project.godot b/src/ReactorMaintenance.Godot/project.godot new file mode 100644 index 0000000..ba96c51 --- /dev/null +++ b/src/ReactorMaintenance.Godot/project.godot @@ -0,0 +1,18 @@ +; Engine configuration file. +; It is best edited using the Godot editor UI and not directly, +; since the parameters that go here are not all obvious. +; +; Format: +; [section] ; section goes between [] +; param=value ; assign values to parameters + +config_version=5 + +[application] + +config/name="Reactor Maintenance" +config/features=PackedStringArray("4.5", "C#", "Forward Plus") + +[dotnet] + +project/assembly_name="ReactorMaintenance.Godot" diff --git a/src/ReactorMaintenance.Simulation/ReactorMaintenance.Simulation.csproj b/src/ReactorMaintenance.Simulation/ReactorMaintenance.Simulation.csproj index 0e42146..595335a 100644 --- a/src/ReactorMaintenance.Simulation/ReactorMaintenance.Simulation.csproj +++ b/src/ReactorMaintenance.Simulation/ReactorMaintenance.Simulation.csproj @@ -1,7 +1,7 @@  - net10.0 + net8.0 enable enable diff --git a/src/ReactorMaintenance.Win2D/ReactorMaintenance.Win2D.csproj b/src/ReactorMaintenance.Win2D/ReactorMaintenance.Win2D.csproj index 1f3e746..0afa4a2 100644 --- a/src/ReactorMaintenance.Win2D/ReactorMaintenance.Win2D.csproj +++ b/src/ReactorMaintenance.Win2D/ReactorMaintenance.Win2D.csproj @@ -1,7 +1,7 @@  WinExe - net10.0-windows10.0.19041.0 + net8.0-windows10.0.19041.0 10.0.17763.0 ReactorMaintenance.Win2D app.manifest diff --git a/tests/ReactorMaintenance.Simulation.Tests/ReactorMaintenance.Simulation.Tests.csproj b/tests/ReactorMaintenance.Simulation.Tests/ReactorMaintenance.Simulation.Tests.csproj index 0023d27..471f2c0 100644 --- a/tests/ReactorMaintenance.Simulation.Tests/ReactorMaintenance.Simulation.Tests.csproj +++ b/tests/ReactorMaintenance.Simulation.Tests/ReactorMaintenance.Simulation.Tests.csproj @@ -1,7 +1,7 @@  - net10.0 + net8.0 enable enable