Files
Cog/Source/CogSample/CogSampleTargetableInterface.h
T
Eduardo Valencia 7543b49ef7 Updated to 5.3.x, renamed interface function, and more
In CogSampleSpawnPredictionComponent.cpp, lines 299 through 302 have return statements of FColor::FColor, these have been updated to a single FColor return statement
In CogSampleTargetableInterface.h, the GetTargetLocation function does not compile against Linux. Reason being that it interferes with built in functions that share the same name (notably within the AIController class). This has been changed to GetTargetActorLocation to maintain a similar name. Recommend adding comments when possible.

Additionaly, the sample project and the editor have had their IncludeOrderVersion updated to 5.2. This was done to clear the warning listing that 5.1 will be deprecated in the next major version release.

The project compiles against Windows and Linux (likely other platforms too, unable to check)
Happy to help! :)
2024-02-15 18:59:25 -05:00

25 lines
609 B
C++

#pragma once
#include "CoreMinimal.h"
#include "CogSampleTargetableInterface.generated.h"
class UCapsuleComponent;
//--------------------------------------------------------------------------------------------------------------------------
UINTERFACE(MinimalAPI, Blueprintable)
class UCogSampleTargetableInterface : public UInterface
{
GENERATED_BODY()
};
class ICogSampleTargetableInterface
{
GENERATED_BODY()
public:
virtual FVector GetTargetActorLocation() const { return FVector::ZeroVector; }
virtual void GetTargetCapsules(TArray<const UCapsuleComponent*>& Capsules) const { }
};