| 240 | } |
| 241 | |
| 242 | void Entity::onPostAdd() |
| 243 | { |
| 244 | mInitialized = true; |
| 245 | |
| 246 | //everything's done and added. go ahead and initialize the components |
| 247 | for (U32 i = 0; i < mComponents.size(); i++) |
| 248 | { |
| 249 | mComponents[i]->onComponentAdd(); |
| 250 | } |
| 251 | |
| 252 | if (isMethod("onAdd")) |
| 253 | Con::executef(this, "onAdd"); |
| 254 | } |
| 255 | |
| 256 | void Entity::setDataField(StringTableEntry slotName, const char *array, const char *value) |
| 257 | { |
no test coverage detected