Skip to content

ISortsInParts

namespace Griff.Scenes;
public interface ISortsInParts : IDrawable

A drawable whose draws sort in several places among the rest when the camera sorts by Y, each part at its own height (it marks them with SortAt as it draws): a tilemap sorting its rows of tiles by Y. Tools that show the order without drawing ask it for the parts (the renderer’s DrawParts).

public abstract IEnumerable<ValueTuple<int, float>> SortParts()

Its parts back to front, each a number it knows them by and the world height it sorts at; none when it sorts as one with its entity.