Add Godot conversion extensions and update related code for integration

This commit is contained in:
2025-08-08 16:03:25 +02:00
parent cabf13d164
commit ba366157fd
15 changed files with 50 additions and 23 deletions

View File

@@ -1,5 +1,6 @@
using System;
using Civilization.Core.Actions;
using Civilization.GodotIntegration.Utils;
using Godot;
namespace Civilization.GodotIntegration;
@@ -31,7 +32,7 @@ public partial class InputSystem : Node
if (selected != null)
{
if (!isRightClick) return;
var move = new MoveUnitAction(selected.Id, position);
var move = new MoveUnitAction(selected.Id, position.ToCore());
if (!move.CanExecute(context)) return;