Added note about manager's addComponent
AddComponent overwrites an already existing component if it exists.
This commit is contained in:
parent
577132554e
commit
2a11d1e86c
1 changed files with 3 additions and 0 deletions
|
@ -352,6 +352,9 @@ namespace EC
|
||||||
Additional parameters given to this function will construct the Component with those
|
Additional parameters given to this function will construct the Component with those
|
||||||
parameters.
|
parameters.
|
||||||
|
|
||||||
|
Note that if the Entity already has the same component, then it will be overwritten
|
||||||
|
by the newly created Component with the given arguments.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
\code{.cpp}
|
\code{.cpp}
|
||||||
struct C0
|
struct C0
|
||||||
|
|
Loading…
Reference in a new issue