1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 19:22:56 +08:00

add xmldoc

This commit is contained in:
cdwcgt 2022-11-21 19:04:05 +09:00
parent 9c6421a462
commit 564f136945
No known key found for this signature in database
GPG Key ID: 144396D01095C3A2

View File

@ -55,6 +55,11 @@ namespace osu.Game.Database
notifications?.Post(notification);
}
/// <summary>
/// Export the model to default folder.
/// </summary>
/// <param name="item">The model should export.</param>
/// <returns></returns>
public async Task ExportAsync(RealmObject item)
{
if (item is TModel model)
@ -68,6 +73,12 @@ namespace osu.Game.Database
}
}
/// <summary>
/// Export te model corresponding to uuid to given stream.
/// </summary>
/// <param name="uuid">The medel which have <see cref="IHasGuidPrimaryKey"/>.</param>
/// <param name="stream">The stream to export.</param>
/// <returns></returns>
public virtual async Task ExportToStreamAsync(TModel uuid, Stream stream)
{
Guid id = uuid.ID;