 | InspectorUtilsCreateFromAttributeTableT Method |
Creates an object of the specified type and initializes it with
values from the passed attribute table, or default values of the
respective inspector properties, if no attribute value is present.
Namespace: Slash.ECS.Inspector.UtilsAssembly: Slash.ECS (in Slash.ECS.dll) Version: 1.0.6018.40178
Syntaxpublic static T CreateFromAttributeTable<T>(
EntityManager entityManager,
InspectorType inspectorType,
IAttributeTable attributeTable
)
where T : class
Public Shared Function CreateFromAttributeTable(Of T As Class) (
entityManager As EntityManager,
inspectorType As InspectorType,
attributeTable As IAttributeTable
) As T
public:
generic<typename T>
where T : ref class
static T CreateFromAttributeTable(
EntityManager^ entityManager,
InspectorType^ inspectorType,
IAttributeTable^ attributeTable
)
static member CreateFromAttributeTable :
entityManager : EntityManager *
inspectorType : InspectorType *
attributeTable : IAttributeTable -> 'T when 'T : not struct
Parameters
- entityManager
- Type: Slash.ECS.ComponentsEntityManager
Entity manager to use for initializing the object, e.g. for creating entities from entity
configuration attributes.
- inspectorType
- Type: Slash.ECS.Inspector.DataInspectorType
Inspector data of the type of the object to create. - attributeTable
- Type: Slash.Collections.AttributeTablesIAttributeTable
Attribute table to initialize the object with.
Type Parameters
- T
- Type of the object to create.
Return Value
Type:
TInitialized new object of the specified type.
See Also