From 2a11d1e86c4882fdb525a125e363a68d107a2ee4 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Wed, 6 Apr 2016 19:35:24 +0900 Subject: [PATCH] Added note about manager's addComponent AddComponent overwrites an already existing component if it exists. --- src/EC/Manager.hpp | 3 +++ 1 file changed, 3 insertions(+) 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