Program Listing for File ZagalaSpecPDCheckDisplacement.h#

↰ Return to documentation for file (ZagalaSpecExamples/Public/Hoverboard/ProtocolDriver/ZagalaSpecPDCheckDisplacement.h)

// Copyright (c) 2026, Zagala Game Solutions. All rights reserved.

#pragma once

#include "CoreMinimal.h"
#include "ProtocolDriver/ZagalaSpecPDWaitForTicks.h"
#include "ZagalaSpecPDCheckDisplacement.generated.h"

DECLARE_LOG_CATEGORY_EXTERN(LogZagalaSpecPDCheckDisplacement, Log, All);

class AZagalaSpecExamplesHoverboardActor;

UCLASS()
class ZAGALASPECEXAMPLES_API UZagalaSpecPDCheckDisplacement : public UZagalaSpecPDWaitForTicks
{
    GENERATED_BODY()

protected:
    virtual void InternalExecute_Implementation(const TScriptInterface<IZagalaSpecTaggedDataCacher>& AssignedCacher) override;

    virtual EZagalaSpecTickCheckResult OnTickCheck(
        IZagalaSpecTaggedDataCacher* Cacher,
        int32 TicksSoFar,
        FString& OutFailureReason) override;

    TWeakObjectPtr<AZagalaSpecExamplesHoverboardActor> Hoverboard;

    FVector SnapshotLocation;

    FVector SnapshotForwardVector;

    FString ExpectedDirection;

    float ExpectedRelativeDisplacement;
};