| 58 | } |
| 59 | |
| 60 | bool GameObject::post_initialize() const { |
| 61 | return std::ranges::all_of(all_components_, [](const auto& comp) { |
| 62 | const auto& [name, component] = comp; |
| 63 | return component->post_initialize(); |
| 64 | }); |
| 65 | } |
| 66 | |
| 67 | void GameObject::update() const { |
| 68 | for (const auto& comp : all_components_ | std::views::values) { |