Payback 0.0.1
CK Graduation Project
로딩중...
검색중...
일치하는것 없음
ProjectileLauncherComponent.h
이 파일의 문서화 페이지로 가기
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Components/ActorComponent.h"
8#include "ProjectileLauncherComponent.generated.h"
9
10
12
13
14UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent))
15class CK_UE_API UProjectileLauncherComponent : public UActorComponent
16{
17 GENERATED_BODY()
18
19public:
21
22public:
23 virtual AProjectileBase* Launch(const TSubclassOf<AProjectileBase> ProjectileClass, const FVector From, const FVector Direction);
24 virtual AProjectileBase* LaunchTo(const TSubclassOf<AProjectileBase> ProjectileClass, const FVector From, const FVector To);
26 virtual AProjectileBase* SpawnProjectile(const TSubclassOf<AProjectileBase> ProjectileClass, const FVector From, const FVector Direction);
27
28protected:
29 virtual void BeginPlay() override;
30
31public:
32 FProjectileLaunchedDelegate OnProjectileLaunchedDelegate;
33 FProjectileDeactivatedDelegate OnProjectileDeactivatedDelegate;
34
35private:
36 UProjectileSpawnSystemComponent* ResolveProjectileSpawnSystem();
37
38 UFUNCTION()
39 void ForwardDeactivated(AProjectileBase* Projectile, EProjectileDeactivationOption Option);
40
41private:
42 UPROPERTY(Transient)
43 TWeakObjectPtr<UProjectileSpawnSystemComponent> CachedProjectileSpawnSystem;
44};
EProjectileDeactivationOption
Definition ProjectileBase.h:40
Definition ProjectileBase.h:82
Definition ProjectileLauncherComponent.h:16
FProjectileDeactivatedDelegate OnProjectileDeactivatedDelegate
Definition ProjectileLauncherComponent.h:33
FProjectileLaunchedDelegate OnProjectileLaunchedDelegate
Definition ProjectileLauncherComponent.h:32
Definition ProjectileSpawnSystemComponent.h:28
AProjectileBase * SpawnProjectile(UObject *Outer, const TSubclassOf< AProjectileBase > ProjectileClass, const FVector &Location, const FRotator &Rotation)
Definition ProjectileSpawnSystemComponent.cpp:66