mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 16:34:41 +01:00
36 lines
607 B
C#
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);
|
|
}
|
|
}
|
|
}
|