EntityComponentAttributes Struct
Namespace: Stride.EngineAssembly: Stride.Engine.dll
Allow to query attributes used on an EntityComponent
public struct EntityComponentAttributes
| Name | Description | |
|---|---|---|
| Fields | ||
| AllowMultipleComponents | Gets a boolean indicating whether the EntityComponent is supporting multiple components of the same type on an entity. |
|
| Methods | ||
| Get(Type) | Gets the attributes for the specified type. |
|
| Get<T>() | Gets the attributes for the specified type. |
|
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
| Type | Description |
|---|---|
| System.Boolean |
Methods
Get(Type)
Gets the attributes for the specified type.
public static EntityComponentAttributes Get(Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | type | The type of the component. |
Returns
| Type | Description |
|---|---|
| EntityComponentAttributes | The attributes for the specified type. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | |
| System.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
| Type | Description |
|---|---|
| EntityComponentAttributes | The attributes for the specified type. |
Type Parameters
| Name | Description |
|---|---|
| T | Type of the component |
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()