Ejemplo n.º 1
0
    public bool FillSelected()
    {
        if (selected == null)
        {
            return(false);
        }

        Utils.For(selected.Length / 2, (n) =>
        {
            var x = selected[n * 2];
            var y = selected[n * 2 + 1];
            blocks[x, y].Layer++;

            var a = Triggers.Uncover(blocks[x, y].Layer - 1, x, y);
            if (a != null)
            {
                actors.Add(a);
            }
            pathFinder.SetHeight(x, y, -blocks[x, y].Layer);
        });

        Selected = null;
        return(true);
    }