From 6ccfc19d12e96eb352893ea907a2e632476041d6 Mon Sep 17 00:00:00 2001 From: vaporvee <80621863+cmod31@users.noreply.github.com> Date: Tue, 15 Nov 2022 09:02:31 +0100 Subject: [PATCH] now splits the collections array --- src/TilemapForeground.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/TilemapForeground.cs b/src/TilemapForeground.cs index 7ca32a8..1cab738 100644 --- a/src/TilemapForeground.cs +++ b/src/TilemapForeground.cs @@ -20,10 +20,10 @@ public class TilemapForeground : TileMap public void ReplaceStaticTiles(int CellID) { - //Vector2[] AllCells = GetUsedCellsById(CellID); //why isnt it just a normal array wtf - // for(int i = 0; i == AllCells.Length; i++) - // { - // GD.Print(AllCells[i]); - // } + Godot.Collections.Array allcells = GetUsedCellsById(CellID); //why isnt it just a normal array wtf + for(int i = 0; i < allcells.Count; i++) + { + GD.Print(allcells[i]); //needs a bit more stuff + } } }