Class RelatedFeatureAttribute
Used to highlight that the class/member is dependant on one of the features and hide/show it from client
Inheritance
System.Object
RelatedFeatureAttribute
Namespace: Eco.Core.Controller
Assembly: Eco.Core.dll
Syntax
public class RelatedFeatureAttribute : Attribute
Remarks
Note: Name of the feature must be the exactly the same as in Eco.Gameplay.Systems.FeatureConfig
Constructors
RelatedFeatureAttribute(String, Boolean)
Accepts the name of the feature and a bool if it should be required or not required.
Declaration
public RelatedFeatureAttribute(string featureName, bool required = true)
Parameters
Type | Name | Description |
---|---|---|
System.String | featureName | |
System.Boolean | required |
Fields
ParameterNameOfFeatureConfig
Declaration
public string ParameterNameOfFeatureConfig
Field Value
Type | Description |
---|---|
System.String |
Required
Declaration
public bool Required
Field Value
Type | Description |
---|---|
System.Boolean |