star-entity ~master (2022-04-07T07:09:29.2539319)
Dub
Repo
EntityManager.addComponent
star
entity
entity
EntityManager
Add a component to the specified entity.
class
EntityManager
pure nothrow @
safe
void
addComponent
(
C
)
(
ID
id
,
C
component
)
out { assert (hasComponent!C(id)); }
Meta
Source
See Implementation
star
entity
entity
EntityManager
constructors
this
functions
addComponent
capacity
clear
component
count
create
destroy
empty
entities
entity
free
hasComponent
id
opSlice
removeComponent
valid
structs
Range
Add a component to the specified entity.