ComponentAddComponentT Method |
Adds a component of the specified type T to the entity.
Namespace:
SampSharp.Entities
Assembly:
SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax public T AddComponent<T>()
where T : Component
Type Parameters
- T
- The type of the component to add.
Return Value
Type:
TThe created component.
See Also