mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 08:25:20 +01:00
64 lines
1001 B
C#
64 lines
1001 B
C#
using System;
|
|
|
|
namespace CinemaDirector
|
|
{
|
|
[AttributeUsage(AttributeTargets.Class)]
|
|
public class CutsceneItemAttribute : Attribute
|
|
{
|
|
private string subCategory;
|
|
|
|
private string label;
|
|
|
|
private CutsceneItemGenre[] genres;
|
|
|
|
private Type requiredObjectType;
|
|
|
|
public string Category
|
|
{
|
|
get
|
|
{
|
|
return subCategory;
|
|
}
|
|
}
|
|
|
|
public string Label
|
|
{
|
|
get
|
|
{
|
|
return label;
|
|
}
|
|
}
|
|
|
|
public CutsceneItemGenre[] Genres
|
|
{
|
|
get
|
|
{
|
|
return genres;
|
|
}
|
|
}
|
|
|
|
public Type RequiredObjectType
|
|
{
|
|
get
|
|
{
|
|
return requiredObjectType;
|
|
}
|
|
}
|
|
|
|
public CutsceneItemAttribute(string category, string label, params CutsceneItemGenre[] genres)
|
|
{
|
|
subCategory = category;
|
|
this.label = label;
|
|
this.genres = genres;
|
|
}
|
|
|
|
public CutsceneItemAttribute(string category, string label, Type pairedObject, params CutsceneItemGenre[] genres)
|
|
{
|
|
subCategory = category;
|
|
this.label = label;
|
|
requiredObjectType = pairedObject;
|
|
this.genres = genres;
|
|
}
|
|
}
|
|
}
|