ComponentAddComponentT Method (Object) |
Adds a component of the specified type T to the entity with the specified constructor args.
Namespace:
SampSharp.Entities
Assembly:
SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-local+709673996c0cc3c0733358a87691d1009326afa7
Syntaxpublic T AddComponent<T>(
params Object[] args
)
where T : Component
Parameters
- args
- Type: SystemObject
The arguments of the constructor of the component.
Type Parameters
- T
- The type of the component to add.
Return Value
Type:
TThe created component.
See Also