1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 03:22:57 +08:00

Add simple xmldoc to ctors explaining their deal with SkinSources

This commit is contained in:
Salman Ahmed 2021-06-10 11:56:13 +03:00
parent 18edbdd135
commit 530026b675

View File

@ -40,12 +40,19 @@ namespace osu.Game.Skinning
protected virtual bool AllowColourLookup => true;
/// <summary>
/// Constructs a new <see cref="SkinProvidingContainer"/> with a single skin added to the protected <see cref="SkinSources"/> list.
/// </summary>
public SkinProvidingContainer(ISkin skin)
: this()
{
SkinSources.Add(skin);
}
/// <summary>
/// Constructs a new <see cref="SkinProvidingContainer"/> with no sources.
/// Up to the implementation for adding to the <see cref="SkinSources"/> list.
/// </summary>
protected SkinProvidingContainer()
{
RelativeSizeAxes = Axes.Both;