mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 00:02:56 +08:00
Clarify & cleanup comments some
This commit is contained in:
parent
a3e29b9154
commit
9e4a925ab1
@ -145,16 +145,19 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// When creating copies or clones of a Mod, this method will be called to copy explicitly adjusted user settings.
|
/// When creating copies or clones of a Mod, this method will be called
|
||||||
/// The base implementation will transfer the value via <see cref="Bindable{T}.Parse"/> and should be called unless replaced with custom logic.
|
/// to copy explicitly adjusted user settings from <paramref name="target"/>.
|
||||||
|
/// The base implementation will transfer the value via <see cref="Bindable{T}.Parse"/>
|
||||||
|
/// or by binding and unbinding (if <paramref name="source"/> is an <see cref="IBindable"/>)
|
||||||
|
/// and should be called unless replaced with custom logic.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="target">The target bindable to apply the adjustment.</param>
|
/// <param name="target">The target bindable to apply the adjustment to.</param>
|
||||||
/// <param name="source">The adjustment to apply.</param>
|
/// <param name="source">The adjustment to apply.</param>
|
||||||
internal virtual void CopyAdjustedSetting(IBindable target, object source)
|
internal virtual void CopyAdjustedSetting(IBindable target, object source)
|
||||||
{
|
{
|
||||||
if (source is IBindable sourceBindable)
|
if (source is IBindable sourceBindable)
|
||||||
{
|
{
|
||||||
//copy including transfer of default values.
|
// copy including transfer of default values.
|
||||||
target.BindTo(sourceBindable);
|
target.BindTo(sourceBindable);
|
||||||
target.UnbindFrom(sourceBindable);
|
target.UnbindFrom(sourceBindable);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user