mirror of
https://github.com/ppy/osu.git
synced 2024-11-09 09:30:08 +08:00
c25ab6835c
Was pretty pointless and made it hard to use the custom serialisation terms arbitrarily in tests.
27 lines
698 B
C#
27 lines
698 B
C#
// 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
|
|
{
|
|
public class ClipboardContent
|
|
{
|
|
[JsonConverter(typeof(TypedListConverter<HitObject>))]
|
|
public IList<HitObject> HitObjects;
|
|
|
|
public ClipboardContent()
|
|
{
|
|
}
|
|
|
|
public ClipboardContent(EditorBeatmap editorBeatmap)
|
|
{
|
|
HitObjects = editorBeatmap.SelectedHitObjects.ToList();
|
|
}
|
|
}
|
|
}
|