From c55fba8ab2a1c9d3df65eda4a5a1e957f4aa1f78 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 19 Apr 2020 17:19:32 -0400 Subject: Inital commit --- .../Editor/Items/ItemsPerTrack.cs | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Library/PackageCache/com.unity.timeline@1.2.13/Editor/Items/ItemsPerTrack.cs (limited to 'Library/PackageCache/com.unity.timeline@1.2.13/Editor/Items/ItemsPerTrack.cs') diff --git a/Library/PackageCache/com.unity.timeline@1.2.13/Editor/Items/ItemsPerTrack.cs b/Library/PackageCache/com.unity.timeline@1.2.13/Editor/Items/ItemsPerTrack.cs new file mode 100644 index 0000000..78a86ef --- /dev/null +++ b/Library/PackageCache/com.unity.timeline@1.2.13/Editor/Items/ItemsPerTrack.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using UnityEngine.Timeline; + +namespace UnityEditor.Timeline +{ + class ItemsPerTrack + { + public virtual TrackAsset targetTrack { get; } + + public IEnumerable items + { + get { return m_ItemsGroup.items; } + } + + public IEnumerable clips + { + get { return m_ItemsGroup.items.OfType().Select(i => i.clip); } + } + + public IEnumerable markers + { + get { return m_ItemsGroup.items.OfType().Select(i => i.marker); } + } + + public ITimelineItem leftMostItem + { + get { return m_ItemsGroup.leftMostItem; } + } + + public ITimelineItem rightMostItem + { + get { return m_ItemsGroup.rightMostItem; } + } + + protected readonly ItemsGroup m_ItemsGroup; + + public ItemsPerTrack(TrackAsset targetTrack, IEnumerable items) + { + this.targetTrack = targetTrack; + m_ItemsGroup = new ItemsGroup(items); + } + } +} -- cgit v1.2.3