2019-12-27 09:26:59 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
2018-05-29 18:32:14 -04:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "CoreMinimal.h"
|
|
|
|
|
#include "UObject/ObjectMacros.h"
|
|
|
|
|
#include "Evaluation/MovieSceneEvalTemplate.h"
|
|
|
|
|
#include "MovieSceneGeometryCacheSection.h"
|
|
|
|
|
#include "MovieSceneGeometryCacheTemplate.generated.h"
|
|
|
|
|
|
|
|
|
|
USTRUCT()
|
2019-03-11 18:57:59 -04:00
|
|
|
struct FMovieSceneGeometryCacheSectionTemplateParameters : public FMovieSceneGeometryCacheParams
|
2018-05-29 18:32:14 -04:00
|
|
|
{
|
|
|
|
|
GENERATED_BODY()
|
|
|
|
|
|
2019-03-11 18:57:59 -04:00
|
|
|
FMovieSceneGeometryCacheSectionTemplateParameters() {}
|
|
|
|
|
FMovieSceneGeometryCacheSectionTemplateParameters(const FMovieSceneGeometryCacheParams& BaseParams, FFrameNumber InSectionStartTime, FFrameNumber InSectionEndTime)
|
|
|
|
|
: FMovieSceneGeometryCacheParams(BaseParams)
|
2018-05-29 18:32:14 -04:00
|
|
|
, SectionStartTime(InSectionStartTime)
|
|
|
|
|
, SectionEndTime(InSectionEndTime)
|
|
|
|
|
{}
|
2019-01-30 08:39:29 -05:00
|
|
|
|
2019-03-11 18:57:59 -04:00
|
|
|
float MapTimeToAnimation(float ComponentDuration, FFrameTime InPosition, FFrameRate InFrameRate) const;
|
2019-02-27 10:40:38 -05:00
|
|
|
|
2018-05-29 18:32:14 -04:00
|
|
|
UPROPERTY()
|
|
|
|
|
FFrameNumber SectionStartTime;
|
|
|
|
|
|
|
|
|
|
UPROPERTY()
|
|
|
|
|
FFrameNumber SectionEndTime;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
USTRUCT()
|
|
|
|
|
struct FMovieSceneGeometryCacheSectionTemplate : public FMovieSceneEvalTemplate
|
|
|
|
|
{
|
|
|
|
|
GENERATED_BODY()
|
2019-02-27 10:40:38 -05:00
|
|
|
|
2018-05-29 18:32:14 -04:00
|
|
|
FMovieSceneGeometryCacheSectionTemplate() {}
|
|
|
|
|
FMovieSceneGeometryCacheSectionTemplate(const UMovieSceneGeometryCacheSection& Section);
|
|
|
|
|
|
|
|
|
|
virtual UScriptStruct& GetScriptStructImpl() const override { return *StaticStruct(); }
|
|
|
|
|
virtual void Evaluate(const FMovieSceneEvaluationOperand& Operand, const FMovieSceneContext& Context, const FPersistentEvaluationData& PersistentData, FMovieSceneExecutionTokens& ExecutionTokens) const override;
|
|
|
|
|
|
|
|
|
|
UPROPERTY()
|
|
|
|
|
FMovieSceneGeometryCacheSectionTemplateParameters Params;
|
|
|
|
|
};
|