Class CharacterPartAttribute
Declares a CharacterPart and which characters get it.
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public sealed class CharacterPartAttribute : Attribute
- Inheritance
-
CharacterPartAttribute
- Inherited Members
Constructors
CharacterPartAttribute(Type, Type)
public CharacterPartAttribute(Type partType, Type appliesTo)
Parameters
Properties
AppliesTo
Characters that are this type (class or interface) get the part, for example IPlayerCharacter.
public Type AppliesTo { get; }
Property Value
PartType
The part's type (a CharacterPart).
public Type PartType { get; }