Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ppy
GitHub Repository: ppy/osu
Path: blob/master/osu.Game/Screens/Edit/ClipboardContent.cs
2264 views
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.

#nullable disable

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();
        }
    }
}