Class CustomRoleAttribute
- Namespace
- Exiled.API.Features.Attributes
- Assembly
- Exiled.API.dll
An attribute to easily manage CustomRole initialization.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public sealed class CustomRoleAttribute : Attribute, _Attribute
- Inheritance
-
CustomRoleAttribute
- Implements
- Inherited Members
- Extension Methods
Constructors
CustomRoleAttribute(RoleTypeId)
Initializes a new instance of the CustomRoleAttribute class.
public CustomRoleAttribute(RoleTypeId type)
Parameters
type
RoleTypeIdThe PlayerRoles.RoleTypeId to serialize.
Properties
RoleTypeId
Gets the attribute's PlayerRoles.RoleTypeId.
public RoleTypeId RoleTypeId { get; }
Property Value
- RoleTypeId