Exemple #1
0
    public override BeatmapObjectContainer SpawnObject(BeatmapObject obj, out BeatmapObjectContainer conflicting, bool removeConflicting = true)
    {
        conflicting = null;
        if (!customEventTypes.Contains((obj as BeatmapCustomEvent)?._type))
        {
            customEventTypes.Add((obj as BeatmapCustomEvent)?._type);
            RefreshTrack();
        }
        BeatmapCustomEventContainer beatmapCustomEvent = BeatmapCustomEventContainer.SpawnCustomEvent(obj as BeatmapCustomEvent, this, ref customEventPrefab);

        beatmapCustomEvent.transform.SetParent(GridTransform);
        beatmapCustomEvent.UpdateGridPosition();
        LoadedContainers.Add(beatmapCustomEvent);
        SelectionController.RefreshMap();
        return(beatmapCustomEvent);
    }
 public override BeatmapObjectContainer CreateContainer() => BeatmapCustomEventContainer.SpawnCustomEvent(null, this, ref customEventPrefab);