Agrarsense
Classes | Enumerations | Functions
TickManager.h File Reference
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "UObject/Object.h"
#include "Delegates/IDelegateInstance.h"
#include "Async/TaskGraphInterfaces.h"
#include "GenericPlatform/GenericPlatformMisc.h"
#include "Engine/World.h"
#include <functional>
#include <algorithm>
#include <vector>
#include "TickManager.generated.h"
Include dependency graph for TickManager.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  FTickEntry
 
class  ATickManager
 

Enumerations

enum class  ETickType : uint8 {
  UMETA =(DisplayName = "FullFrameTaskParallel") , UMETA =(DisplayName = "FullFrameTaskBeforeLateTickParallel") , UMETA =(DisplayName = "EarlyTickParallel") , UMETA =(DisplayName = "LateTickParallel") ,
  UMETA =(DisplayName = "NONE")
}
 

Functions

template<typename ObjectType , typename FunctionType >
static auto BindTick (ObjectType *Object, FunctionType Function)
 

Enumeration Type Documentation

◆ ETickType

enum class ETickType : uint8
strong
Enumerator
UMETA 

Tick that runs across the whole frame in the background using FGraphEventRef. Starts at PreActorTick and ends at PostActorTick.

UMETA 

Tick that runs across the whole frame in the background using FGraphEventRef. Starts at PreActorTick after FullFrameTaskParallel and ends at PostActorTick before FullFrameTaskParallel ends.

UMETA 

Tick that ticks all added functions in PreActorTick. Waits before continuing.

UMETA 

Tick that ticks all added functions in PostActorTick. Executed after FullFrameTaskBeforeLateTickParallel but before FullFrameTaskParallel.

UMETA 

None.

Definition at line 23 of file TickManager.h.

24{
29 FullFrameTaskParallel UMETA(DisplayName = "FullFrameTaskParallel"),
30
35 FullFrameTaskBeforeLateTickParallel UMETA(DisplayName = "FullFrameTaskBeforeLateTickParallel"),
36
40 EarlyTickParallel UMETA(DisplayName = "EarlyTickParallel"),
41
46 LateTickParallel UMETA(DisplayName = "LateTickParallel"),
47
51 NONE UMETA(DisplayName = "NONE")
52};

Function Documentation

◆ BindTick()

template<typename ObjectType , typename FunctionType >
static auto BindTick ( ObjectType *  Object,
FunctionType  Function 
)
static

Definition at line 182 of file TickManager.h.

183{
184 return [Object, Function](float DeltaTime)
185 {
186 (Object->*Function)(DeltaTime);
187 };
188}

Referenced by ALidarManager::AddRaycastLidar(), ACamera::BeginPlay(), and ATransformSensor::BeginPlay().