Space Plunder
Loading...
Searching...
No Matches
UALSNotifyStateMovementAction Class Reference

#include <ALSNotifyStateMovementAction.h>

Inheritance diagram for UALSNotifyStateMovementAction:

Public Attributes

EALSMovementAction MovementAction = EALSMovementAction::None
 

Private Member Functions

virtual void NotifyBegin (USkeletalMeshComponent *MeshComp, UAnimSequenceBase *Animation, float TotalDuration, const FAnimNotifyEventReference &EventReference) override
 
virtual void NotifyEnd (USkeletalMeshComponent *MeshComp, UAnimSequenceBase *Animation, const FAnimNotifyEventReference &EventReference) override
 
virtual FString GetNotifyName_Implementation () const override
 

Member Function Documentation

◆ GetNotifyName_Implementation()

FString UALSNotifyStateMovementAction::GetNotifyName_Implementation ( ) const
overrideprivatevirtual
34{
35 FString Name(TEXT("Movement Action: "));
37 return Name;
38}
static FORCEINLINE FString GetEnumerationToString(const Enumeration InValue)
Definition ALSCharacterEnumLibrary.h:19
EALSMovementAction MovementAction
Definition ALSNotifyStateMovementAction.h:31

◆ NotifyBegin()

void UALSNotifyStateMovementAction::NotifyBegin ( USkeletalMeshComponent * MeshComp,
UAnimSequenceBase * Animation,
float TotalDuration,
const FAnimNotifyEventReference & EventReference )
overrideprivatevirtual
11{
12 Super::NotifyBegin(MeshComp, Animation, TotalDuration, EventReference);
13
14 AALSBaseCharacter* BaseCharacter = Cast<AALSBaseCharacter>(MeshComp->GetOwner());
15 if (BaseCharacter)
16 {
17 BaseCharacter->SetMovementAction(MovementAction);
18 }
19}
Definition ALSBaseCharacter.h:38
void SetMovementAction(EALSMovementAction NewAction, bool bForce=false)
Definition ALSBaseCharacter.cpp:385

◆ NotifyEnd()

void UALSNotifyStateMovementAction::NotifyEnd ( USkeletalMeshComponent * MeshComp,
UAnimSequenceBase * Animation,
const FAnimNotifyEventReference & EventReference )
overrideprivatevirtual
23{
24 Super::NotifyEnd(MeshComp, Animation, EventReference);
25
26 AALSBaseCharacter* BaseCharacter = Cast<AALSBaseCharacter>(MeshComp->GetOwner());
27 if (BaseCharacter && BaseCharacter->GetMovementAction() == MovementAction)
28 {
30 }
31}
EALSMovementAction GetMovementAction() const
Definition ALSBaseCharacter.h:108

Member Data Documentation

◆ MovementAction

EALSMovementAction UALSNotifyStateMovementAction::MovementAction = EALSMovementAction::None

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