 | EntityManagerAddComponent Method (Int32, IEntityComponent) |
Attaches the passed component to the entity with the specified id.
Namespace: Slash.ECS.ComponentsAssembly: Slash.ECS (in Slash.ECS.dll) Version: 1.0.6018.40178
Syntaxpublic void AddComponent(
int entityId,
IEntityComponent component
)
Public Sub AddComponent (
entityId As Integer,
component As IEntityComponent
)
public:
void AddComponent(
int entityId,
IEntityComponent^ component
)
member AddComponent :
entityId : int *
component : IEntityComponent -> unit
Parameters
- entityId
- Type: SystemInt32
Id of the entity to attach the component to. - component
- Type: Slash.ECS.ComponentsIEntityComponent
Component to attach.
Exceptions
See Also