Add Basic Spell System (#9)
Co-authored-by: alhashij <alhashimy.janna@gmail.com> Reviewed-on: #9 Co-authored-by: Lance1416 <lanceli1416@gmail.com> Co-committed-by: Lance1416 <lanceli1416@gmail.com>
This commit was merged in pull request #9.
This commit is contained in:
@@ -15,8 +15,6 @@ class USpringArmComponent;
|
||||
class UCameraComponent;
|
||||
struct FInputActionValue;
|
||||
|
||||
DECLARE_LOG_CATEGORY_EXTERN(LogLumiCharacter, Log, All);
|
||||
|
||||
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FJumpDelegate);
|
||||
|
||||
DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FStanceChangedDelegate,
|
||||
@@ -145,13 +143,24 @@ public:
|
||||
OnSpellActionCompleted();
|
||||
void
|
||||
OnSpellPositionActionTriggered(const FInputActionValue& Value);
|
||||
void
|
||||
OnSpellTrainSwitchActionCompleted();
|
||||
|
||||
void OnSpellTrainSwitchActionCompleted();
|
||||
UFUNCTION(BlueprintCallable, Category = "Spell")
|
||||
void
|
||||
SetIsTraining(const bool bTraining);
|
||||
|
||||
void SetIsTraining(const bool bTraining);
|
||||
void HideTrainWidget();
|
||||
void ShowTrainWidget();
|
||||
void AddSpellTemplateToTable(const FString& Name);
|
||||
UFUNCTION(BlueprintCallable, Category = "Spell")
|
||||
void
|
||||
HideTrainWidget();
|
||||
|
||||
UFUNCTION(BlueprintCallable, Category = "Spell")
|
||||
void
|
||||
ShowTrainWidget();
|
||||
|
||||
UFUNCTION(BlueprintCallable, Category = "Spell")
|
||||
void
|
||||
AddSpellTemplateToTable(const FString& Name);
|
||||
|
||||
protected:
|
||||
/**
|
||||
@@ -192,6 +201,10 @@ protected:
|
||||
virtual void
|
||||
BeginPlay() override;
|
||||
|
||||
UFUNCTION(BlueprintNativeEvent, Category = "Spell")
|
||||
void
|
||||
OnSpellCast(const FString& SpellName);
|
||||
|
||||
private:
|
||||
bool
|
||||
GetPlayerController(APlayerController*& LumiController) const;
|
||||
|
||||
Reference in New Issue
Block a user