Improve Win2D editor UX

This commit is contained in:
2026-05-09 02:41:05 +02:00
parent 6e8766db3f
commit e90609bcee
6 changed files with 191 additions and 28 deletions

View File

@@ -2,6 +2,7 @@
public enum EEditorTool
{
Cursor,
Floor,
Wall,
Reactor,
@@ -32,6 +33,7 @@ public static class LevelEditor
var cell = level.GetCell(position);
cell = tool switch {
EEditorTool.Cursor => cell,
EEditorTool.Floor => cell with { Terrain = ECellTerrain.Floor },
EEditorTool.Wall => cell with {
Terrain = ECellTerrain.Wall,