From: Stephen Seo Date: Wed, 6 Apr 2016 10:35:24 +0000 (+0900) Subject: Added note about manager's addComponent X-Git-Tag: 1.0~89 X-Git-Url: https://git.seodisparate.com/gitweb?a=commitdiff_plain;h=2a11d1e86c4882fdb525a125e363a68d107a2ee4;p=EntityComponentMetaSystem Added note about manager's addComponent AddComponent overwrites an already existing component if it exists. --- diff --git a/src/EC/Manager.hpp b/src/EC/Manager.hpp index 89614a9..27204cd 100644 --- a/src/EC/Manager.hpp +++ b/src/EC/Manager.hpp @@ -352,6 +352,9 @@ namespace EC Additional parameters given to this function will construct the Component with those 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: \code{.cpp} struct C0