diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2020-04-19 17:19:32 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2020-04-19 17:19:32 -0400 |
| commit | c55fba8ab2a1c9d3df65eda4a5a1e957f4aa1f78 (patch) | |
| tree | ee4d51c7c1d633e11f46453ef1edd3c77c4ef9f7 /Library/PackageCache/com.unity.timeline@1.2.13/Editor/Items/ItemsPerTrack.cs | |
| download | Project-Sandbox-c55fba8ab2a1c9d3df65eda4a5a1e957f4aa1f78.tar.gz Project-Sandbox-c55fba8ab2a1c9d3df65eda4a5a1e957f4aa1f78.tar.bz2 Project-Sandbox-c55fba8ab2a1c9d3df65eda4a5a1e957f4aa1f78.zip | |
Inital commit
Diffstat (limited to 'Library/PackageCache/com.unity.timeline@1.2.13/Editor/Items/ItemsPerTrack.cs')
| -rw-r--r-- | Library/PackageCache/com.unity.timeline@1.2.13/Editor/Items/ItemsPerTrack.cs | 45 |
1 files changed, 45 insertions, 0 deletions
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<ITimelineItem> items + { + get { return m_ItemsGroup.items; } + } + + public IEnumerable<TimelineClip> clips + { + get { return m_ItemsGroup.items.OfType<ClipItem>().Select(i => i.clip); } + } + + public IEnumerable<IMarker> markers + { + get { return m_ItemsGroup.items.OfType<MarkerItem>().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<ITimelineItem> items) + { + this.targetTrack = targetTrack; + m_ItemsGroup = new ItemsGroup(items); + } + } +} |
