Struct EntityComponentAttributes
Allow to query attributes used on an EntityComponent
public struct EntityComponentAttributes
- Inherited Members
Fields
AllowMultipleComponents
Gets a boolean indicating whether the EntityComponent is supporting multiple components of the same type on an entity.
public readonly bool AllowMultipleComponents
Field Value
Methods
Get(Type)
Gets the attributes for the specified type.
public static EntityComponentAttributes Get(Type type)
Parameters
type
TypeThe type of the component.
Returns
- EntityComponentAttributes
The attributes for the specified type.
Exceptions
- ArgumentNullException
- ArgumentException
The type must be of EntityComponent;type
Get<T>()
Gets the attributes for the specified type.
public static EntityComponentAttributes Get<T>() where T : EntityComponent
Returns
- EntityComponentAttributes
The attributes for the specified type.
Type Parameters
T
Type of the component