1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 05:32:54 +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; 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) public SkinProvidingContainer(ISkin skin)
: this() : this()
{ {
SkinSources.Add(skin); 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() protected SkinProvidingContainer()
{ {
RelativeSizeAxes = Axes.Both; RelativeSizeAxes = Axes.Both;