Click or drag to resize
EntityManagerAddComponent Method (Type, Int32, IAttributeTable)
Adds a component with the specified type to entity with the specified id and initializes it with the values taken from the passed attribute table.

Namespace: Slash.ECS.Components
Assembly: Slash.ECS (in Slash.ECS.dll) Version: 1.0.6018.40178
Syntax
public void AddComponent(
	Type componentType,
	int entityId,
	IAttributeTable attributeTable
)

Parameters

componentType
Type: SystemType
Type of the component to add.
entityId
Type: SystemInt32
Id of the entity to add the component to.
attributeTable
Type: Slash.Collections.AttributeTablesIAttributeTable
Attribute table to initialize the component with.
See Also