| 361 | } |
| 362 | |
| 363 | EntityGroup::EntityGroup(const std::vector<std::string>& components) { |
| 364 | _components.resize(components.size()); |
| 365 | for (int i = 0; i < s_cast<int>(components.size()); i++) { |
| 366 | _components[i] = SharedEntityPool.getIndex(components[i]); |
| 367 | } |
| 368 | } |
| 369 | |
| 370 | EntityGroup::~EntityGroup() { |
| 371 | if (Singleton<EntityPool>::isDisposed()) return; |