From 3e26b444b9befa9a0c5785dc1d46bf4c43d2feda Mon Sep 17 00:00:00 2001 From: David Markowitz Date: Sat, 9 Mar 2024 21:10:50 -0800 Subject: [PATCH] Update TriggerComponent.cpp --- dGame/dComponents/TriggerComponent.cpp | 30 -------------------------- 1 file changed, 30 deletions(-) diff --git a/dGame/dComponents/TriggerComponent.cpp b/dGame/dComponents/TriggerComponent.cpp index 6be9e64b..ad060bb3 100644 --- a/dGame/dComponents/TriggerComponent.cpp +++ b/dGame/dComponents/TriggerComponent.cpp @@ -353,36 +353,6 @@ void TriggerComponent::HandleUpdateMission(Entity* targetEntity, std::vectorProgress(eMissionTaskType::EXPLORE, 0, 0, argArray.at(4)); } -void TriggerComponent::HandleTurnAroundOnPath(Entity* targetEntity){ - auto* movementAIComponent = targetEntity->GetComponent(); - if (!movementAIComponent) return; - movementAIComponent->ReversePath(); -} - -void TriggerComponent::HandleGoForwardOnPath(Entity* targetEntity){ - auto* movementAIComponent = targetEntity->GetComponent(); - if (!movementAIComponent) return; - if (movementAIComponent->GetIsInReverse()) movementAIComponent->ReversePath(); -} - -void TriggerComponent::HandleGoBackwardOnPath(Entity* targetEntity){ - auto* movementAIComponent = targetEntity->GetComponent(); - if (!movementAIComponent) return; - if (!movementAIComponent->GetIsInReverse()) movementAIComponent->ReversePath(); -} - -void TriggerComponent::HandleStopPathing(Entity* targetEntity){ - auto* movementAIComponent = targetEntity->GetComponent(); - if (!movementAIComponent) return; - movementAIComponent->Pause(); -} - -void TriggerComponent::HandleStartPathing(Entity* targetEntity){ - auto* movementAIComponent = targetEntity->GetComponent(); - if (!movementAIComponent) return; - movementAIComponent->Resume(); -} - void TriggerComponent::HandlePlayEffect(Entity* targetEntity, std::vector argArray) { if (argArray.size() < 3) return; const auto effectID = GeneralUtils::TryParse(argArray.at(1));