Class RequireComponentReferenceAttribute
Indicates this class requires a reference to the specified Component to function, this attribute will be inherited by subclasses.
Inheritance
RequireComponentReferenceAttribute
Assembly: LobsterFramework.dll
Syntax
[RegisterInitialization(0, AttributeType = InitializationAttributeType.Dual)]
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
public sealed class RequireComponentReferenceAttribute : InitializationAttribute, _Attribute
Constructors
|
Improve this Doc
View Source
RequireComponentReferenceAttribute(Type)
Declaration
public RequireComponentReferenceAttribute(Type requiredType)
Parameters
Type |
Name |
Description |
Type |
requiredType |
|
|
Improve this Doc
View Source
RequireComponentReferenceAttribute(Type, int)
Declaration
public RequireComponentReferenceAttribute(Type requiredType, int numOfFields)
Parameters
Type |
Name |
Description |
Type |
requiredType |
|
int |
numOfFields |
|
|
Improve this Doc
View Source
RequireComponentReferenceAttribute(Type, string)
Declaration
public RequireComponentReferenceAttribute(Type requiredType, string fieldName)
Parameters
Type |
Name |
Description |
Type |
requiredType |
|
string |
fieldName |
|
|
Improve this Doc
View Source
RequireComponentReferenceAttribute(Type, string, string)
Declaration
public RequireComponentReferenceAttribute(Type requiredType, string fieldName, string description)
Parameters
|
Improve this Doc
View Source
RequireComponentReferenceAttribute(Type, Type)
Declaration
public RequireComponentReferenceAttribute(Type requiredType, Type enumList)
Parameters
Type |
Name |
Description |
Type |
requiredType |
|
Type |
enumList |
|
Fields
|
Improve this Doc
View Source
Requirement
Contains the set of requirements according to RequireComponentReferenceAttribute applied to classes.
Access Pattern: RequesterType -> RequiredType -> Index of the field description you are looking for
Declaration
public static ReadOnlyDictionary<Type, Dictionary<Type, List<RequirementDescription>>> Requirement
Field Value
Methods
|
Improve this Doc
View Source
Init(Type)
Perform initialization tasks
Declaration
protected override void Init(Type requesterType)
Parameters
Type |
Name |
Description |
Type |
requesterType |
|
Overrides
|
Improve this Doc
View Source
IsCompatible(Type)
Declaration
public static bool IsCompatible(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
Implements