public override void _Process(float delta) { for (int x = 0; x < Map.GetLength(0); x++) { for (int y = 0; y < Map.GetLength(1); y++) { Map[x, y].MatchSome(b => { if (b.Destroyed) { aMap.SetBlock(x, y, Option.None <Wall>()); } }); } } }
/// <summary> /// Set a block to a value on the blockMap, updating tileset in the process. /// </summary> public bool SetBlock(int x, int y, Option <Tile> block) { return(aMap.SetBlock(x, y, block)); }