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,4 +1,5 @@
using Civilization.Core;
using Civilization.GodotIntegration.Utils;
using Godot;
namespace Civilization.GodotIntegration;
@@ -33,7 +34,7 @@ public partial class MapRenderer : Node2D
var pos = tile.Position;
var tileId = (int)tile.Type + TileIndexOffset;
var atlasCoords = tileSetSource.GetTileId(tileId);
TileMapLayer.SetCell(pos, tileId, atlasCoords);
TileMapLayer.SetCell(pos.ToGodot(), tileId, atlasCoords);
}
}