#include <ProjectileLauncherComponent.h>
◆ UProjectileLauncherComponent()
| UProjectileLauncherComponent::UProjectileLauncherComponent |
( |
| ) |
|
13{
14 PrimaryComponentTick.bCanEverTick = true;
15}
◆ BeginPlay()
| void UProjectileLauncherComponent::BeginPlay |
( |
| ) |
|
|
overrideprotectedvirtual |
19{
20 Super::BeginPlay();
22}
UProjectileSpawnSystemComponent * ResolveProjectileSpawnSystem()
Definition ProjectileLauncherComponent.cpp:25
다음을 참조함 : ResolveProjectileSpawnSystem().
◆ ForwardDeactivated()
◆ Launch()
| AProjectileBase * UProjectileLauncherComponent::Launch |
( |
const TSubclassOf< AProjectileBase > |
ProjectileClass, |
|
|
const FVector |
From, |
|
|
const FVector |
Direction |
|
) |
| |
|
virtual |
75{
77 {
78 Projectile->OnLaunched(GetOwner(), From, Direction);
79 return Projectile;
80 }
81 else
82 {
83 LOG_ERROR(LogCK,
"Failed to spawn projectile");
84 return nullptr;
85 }
86}
#define LOG_ERROR(Category, Format,...)
Definition CK_UE.h:41
Definition ProjectileBase.h:82
virtual AProjectileBase * SpawnProjectile(const TSubclassOf< AProjectileBase > ProjectileClass, const FVector From, const FVector Direction)
Definition ProjectileLauncherComponent.cpp:51
다음을 참조함 : LOG_ERROR, AProjectileBase::OnLaunched(), SpawnProjectile().
◆ LaunchTo()
| AProjectileBase * UProjectileLauncherComponent::LaunchTo |
( |
const TSubclassOf< AProjectileBase > |
ProjectileClass, |
|
|
const FVector |
From, |
|
|
const FVector |
To |
|
) |
| |
|
virtual |
◆ ResolveProjectileSpawnSystem()
◆ SpawnProjectile()
| AProjectileBase * UProjectileLauncherComponent::SpawnProjectile |
( |
const TSubclassOf< AProjectileBase > |
ProjectileClass, |
|
|
const FVector |
From, |
|
|
const FVector |
Direction |
|
) |
| |
|
virtual |
발사 전 연출을 위해 풀에서 투사체만 준비합니다. 발사는 OnLaunched로 시작합니다.
52{
54
55 if (IsValid(SpawnSystem) == false)
56 {
58 return nullptr;
59 }
60
62
63 if (IsValid(Projectile) == false)
64 {
66 return nullptr;
67 }
68
70 return Projectile;
71}
#define NAMEOF(Type)
Definition CK_UE.h:31
AProjectileBase * SpawnProjectile(UObject *Outer, const TSubclassOf< AProjectileBase > ProjectileClass, const FVector &Location, const FRotator &Rotation)
Definition ProjectileSpawnSystemComponent.cpp:66
다음을 참조함 : ForwardDeactivated(), LOG_ERROR, NAMEOF, AProjectileBase::OnProjectileDeactivatedDelegate, ResolveProjectileSpawnSystem(), UProjectileSpawnSystemComponent::SpawnProjectile().
다음에 의해서 참조됨 : Launch(), UGA_Skill_StarFall::LaunchDonationWeapon(), LaunchTo().
◆ CachedProjectileSpawnSystem
◆ OnProjectileDeactivatedDelegate
| FProjectileDeactivatedDelegate UProjectileLauncherComponent::OnProjectileDeactivatedDelegate |
◆ OnProjectileLaunchedDelegate
| FProjectileLaunchedDelegate UProjectileLauncherComponent::OnProjectileLaunchedDelegate |
이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: