Change `CalculateHits` and `ProcessHits` from public to protected

This commit is contained in:
Louis Hobbs 2023-03-13 21:56:23 +00:00
parent 403eff6029
commit f7216d25f9
3 changed files with 10 additions and 6 deletions

View File

@ -212,6 +212,6 @@ void ANakatomiCharacter::CalculateHits(TArray<FHitResult>* hits)
{ {
} }
void ANakatomiCharacter::ProcessHits(TArray<FHitResult>* hits) void ANakatomiCharacter::ProcessHits(TArray<FHitResult> hits)
{ {
} }

View File

@ -79,7 +79,9 @@ public:
int GetCurrentInventorySlot(); int GetCurrentInventorySlot();
protected:
virtual void CalculateHits(TArray<FHitResult>* hits); virtual void CalculateHits(TArray<FHitResult>* hits);
virtual void ProcessHits(TArray<FHitResult>* hits); virtual void ProcessHits(TArray<FHitResult> hits);
}; };

View File

@ -114,10 +114,6 @@ public:
void SetWalkingCallback(const FInputActionInstance& Instance); void SetWalkingCallback(const FInputActionInstance& Instance);
virtual void CalculateHits(TArray<FHitResult>* hits) override;
virtual void ProcessHits(TArray<FHitResult> hits) override;
void WeaponSwitchingCallback(const FInputActionInstance& Instance); void WeaponSwitchingCallback(const FInputActionInstance& Instance);
void OnFire(); void OnFire();
@ -131,4 +127,10 @@ public:
UFUNCTION(BlueprintCallable) UFUNCTION(BlueprintCallable)
float GetCurrentHealthCount(); float GetCurrentHealthCount();
protected:
virtual void CalculateHits(TArray<FHitResult>* hits) override;
virtual void ProcessHits(TArray<FHitResult> hits) override;
}; };