Files
BH3/Assets/Plugins/Assembly-CSharp-firstpass/CinemaDirector/TrackGroupAttribute.cs
2025-08-13 09:26:42 +08:00

36 lines
607 B
C#

using System;
using System.Collections.Generic;
namespace CinemaDirector
{
[AttributeUsage(AttributeTargets.Class)]
public class TrackGroupAttribute : Attribute
{
private string label;
private List<TimelineTrackGenre> trackGenres = new List<TimelineTrackGenre>();
public string Label
{
get
{
return label;
}
}
public TimelineTrackGenre[] AllowedTrackGenres
{
get
{
return trackGenres.ToArray();
}
}
public TrackGroupAttribute(string label, params TimelineTrackGenre[] TrackGenres)
{
this.label = label;
trackGenres.AddRange(TrackGenres);
}
}
}