feat: Add component ID to root component object (#1893)

This commit is contained in:
David Markowitz
2025-10-03 18:57:42 -07:00
committed by GitHub
parent 25418fd8b2
commit e8c0b3e6da
106 changed files with 263 additions and 260 deletions

View File

@@ -12,5 +12,5 @@ void AgStromlingProperty::OnStartup(Entity* self) {
4
};
self->AddComponent<MovementAIComponent>(movementInfo);
self->AddComponent<MovementAIComponent>(-1, movementInfo);
}

View File

@@ -273,7 +273,7 @@ void SGCannon::DoSpawnTimerFunc(Entity* self, const std::string& name) {
auto* enemy = Game::entityManager->CreateEntity(info, nullptr, self);
auto* movementAI = enemy->AddComponent<MovementAIComponent>(MovementAIInfo{});
auto* movementAI = enemy->AddComponent<MovementAIComponent>(-1, MovementAIInfo{});
auto* simplePhysicsComponent = enemy->GetComponent<SimplePhysicsComponent>();
if (simplePhysicsComponent) {
simplePhysicsComponent->SetPhysicsMotionState(4);