2020-09-11 18:54:20 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
using osu.Game.IO.Serialization.Converters;
|
|
|
|
using osu.Game.Rulesets.Objects;
|
|
|
|
|
|
|
|
namespace osu.Game.Screens.Edit
|
|
|
|
{
|
2021-08-31 13:38:35 +08:00
|
|
|
public class ClipboardContent
|
2020-09-11 18:54:20 +08:00
|
|
|
{
|
|
|
|
[JsonConverter(typeof(TypedListConverter<HitObject>))]
|
|
|
|
public IList<HitObject> HitObjects;
|
|
|
|
|
|
|
|
public ClipboardContent()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public ClipboardContent(EditorBeatmap editorBeatmap)
|
|
|
|
{
|
|
|
|
HitObjects = editorBeatmap.SelectedHitObjects.ToList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|