A game framework written with osu! in mind.
at master 25 lines 895 B view raw
1// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. 2// See the LICENCE file in the repository root for full licence text. 3 4using System.Collections.Generic; 5using osu.Framework.Graphics.Containers; 6 7namespace osu.Framework.Graphics 8{ 9 /// <summary> 10 /// Interface for <see cref="DrawNode"/>s which compose child <see cref="DrawNode"/>s. 11 /// <see cref="DrawNode"/>s implementing this interface can be used in <see cref="CompositeDrawable"/>s. 12 /// </summary> 13 public interface ICompositeDrawNode 14 { 15 /// <summary> 16 /// The child <see cref="DrawNode"/>s to draw. 17 /// </summary> 18 List<DrawNode> Children { get; set; } 19 20 /// <summary> 21 /// Whether <see cref="Children"/> should be updated by the parenting <see cref="CompositeDrawable"/>. 22 /// </summary> 23 bool AddChildDrawNodes { get; } 24 } 25}