]> git.seodisparate.com - EntityComponentMetaSystem/commitdiff
Added note about manager's addComponent
authorStephen Seo <seo.disparate@gmail.com>
Wed, 6 Apr 2016 10:35:24 +0000 (19:35 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Wed, 6 Apr 2016 10:35:24 +0000 (19:35 +0900)
AddComponent overwrites an already existing component
if it exists.

src/EC/Manager.hpp

index 89614a9bfb0723d4131ee0dffe6aeafbe7bf8d31..27204cd59c1f35811c041e44f70e7d46ce5176ba 100644 (file)
@@ -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