#region usings using SM.Base.Contexts; using SM.Base.Scene; using SM.Base.Types; using SM2D.Types; #endregion namespace SM2D.Scene { public class ItemCollection : GenericItemCollection, I2DShowItem { public ItemCollection() { Transform.Size = new CVector2(1); } public override void Draw(DrawContext context) { Sort((x, y) => x.ZIndex - y.ZIndex); base.Draw(context); } public int ZIndex { get; set; } } }