Class MayHaveComponentAttribute
Declare this objects that may or may not have a given component. This is needed because any component that is not [Required] or [MayRequire] will be removed on server load, as a way of migrating away old component.
Inheritance
System.Object
MayHaveComponentAttribute
Namespace: Eco.Gameplay.Objects
Assembly: Eco.Gameplay.dll
Syntax
public class MayHaveComponentAttribute : Attribute
Constructors
MayHaveComponentAttribute(Type, String)
Declaration
public MayHaveComponentAttribute(Type type, string name = null)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | |
System.String | name |
Fields
ComponentName
Declaration
public string ComponentName
Field Value
Type | Description |
---|---|
System.String |
Properties
ComponentType
Declaration
public Type ComponentType { get; }
Property Value
Type | Description |
---|---|
System.Type |