Mortar Pro Plugin  Version 2
Modular Turret Plugin
All Classes Namespaces Functions Variables Enumerations Enumerator Pages
UMortarProAggregateTickSubsystem Class Reference

#include <MortarProAggregateTickSubsystem.h>

+ Inheritance diagram for UMortarProAggregateTickSubsystem:
+ Collaboration diagram for UMortarProAggregateTickSubsystem:

Public Member Functions

void DeRegisterComponent (FActorComponentTickFunction *TickFunction)
 
void ExecuteTick (ETickingGroup TickGroup, float DeltaTime, ELevelTick TickType, ENamedThreads::Type CurrentThread, const FGraphEventRef &MyCompletionGraphEvent)
 
void RegisterComponent (FActorComponentTickFunction *TickFunction)
 

Protected Member Functions

virtual void Initialize (FSubsystemCollectionBase &Collection) override
 

Protected Attributes

TArray< FActorComponentTickFunction * > CleanupQueue
 
FMortarProTickablesTickFunction ComponentsTick
 
TArray< class UMortarProProjectileMovement * > ProRefs
 
TArray< class UMortarProProjectileMovement * > ProRefsClean
 
TArray< FActorComponentTickFunction * > TickableComponents
 

Detailed Description

Registered tick of the subsystem with the standard tick task graph

Member Function Documentation

◆ DeRegisterComponent()

void UMortarProAggregateTickSubsystem::DeRegisterComponent ( FActorComponentTickFunction *  TickFunction)

DeRegister Component to tick from this sub system.

Parameters
[in]TickFunctionType FActorComponentTickFunction

◆ ExecuteTick()

void UMortarProAggregateTickSubsystem::ExecuteTick ( ETickingGroup  TickGroup,
float  DeltaTime,
ELevelTick  TickType,
ENamedThreads::Type  CurrentThread,
const FGraphEventRef &  MyCompletionGraphEvent 
)

Execute Tick for this sub system. This tick will call tick of all other actor components

◆ Initialize()

virtual void UMortarProAggregateTickSubsystem::Initialize ( FSubsystemCollectionBase &  Collection)
overrideprotectedvirtual

Initializes Subsystem and Initializes Componment Tick

◆ RegisterComponent()

void UMortarProAggregateTickSubsystem::RegisterComponent ( FActorComponentTickFunction *  TickFunction)

Register Component to tick via aggregate tick sub system

Parameters
[in]TickFunctionType FActorComponentTickFunction

Member Data Documentation

◆ CleanupQueue

TArray<FActorComponentTickFunction*> UMortarProAggregateTickSubsystem::CleanupQueue
protected

Queue Containg Tick function of actors that needs to be removed This happen when we Deregister. We Cleanup after tick to avoid asserts when we get destroyed during iteration

◆ ComponentsTick

FMortarProTickablesTickFunction UMortarProAggregateTickSubsystem::ComponentsTick
protected

Tick Function for this subsystem.

◆ ProRefs

TArray<class UMortarProProjectileMovement*> UMortarProAggregateTickSubsystem::ProRefs
protected

◆ ProRefsClean

TArray<class UMortarProProjectileMovement*> UMortarProAggregateTickSubsystem::ProRefsClean
protected

◆ TickableComponents

TArray<FActorComponentTickFunction*> UMortarProAggregateTickSubsystem::TickableComponents
protected

Stores Array of Actor Component's tick functions


The documentation for this class was generated from the following file: