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 = "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 ticks all added functions in PostActorTick. Executed before FullFrameTaskParallel.

UMETA 

None.

Definition at line 23 of file TickManager.h.

24{
29 FullFrameTaskParallel UMETA(DisplayName = "FullFrameTaskParallel"),
30
35 LateTickParallel UMETA(DisplayName = "LateTickParallel"),
36
40 NONE UMETA(DisplayName = "NONE")
41};

Function Documentation

◆ BindTick()

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

Definition at line 162 of file TickManager.h.

163{
164 return [Object, Function](float DeltaTime)
165 {
166 (Object->*Function)(DeltaTime);
167 };
168}

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