1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 06:52:55 +08:00

Add comment regarding add/clear/remove overrides

This commit is contained in:
Dean Herbert 2018-07-06 13:02:00 +09:00
parent 48d90a67ae
commit e041352690

View File

@ -25,7 +25,8 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
Alpha = 0;
}
// Forward all internal management to shakeContainer
// Forward all internal management to shakeContainer.
// This is a bit ugly but we don't have the concept of InternalContent so it'll have to do for now. (https://github.com/ppy/osu-framework/issues/1690)
protected override void AddInternal(Drawable drawable) => shakeContainer.Add(drawable);
protected override void ClearInternal(bool disposeChildren = true) => shakeContainer.Clear(disposeChildren);
protected override bool RemoveInternal(Drawable drawable) => shakeContainer.Remove(drawable);