This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Fill out your copyright notice in the Description page of Project Settings. | |
#include "AresBuffDisplayContainer.h" | |
#include "AbilitySystemComponent.h" | |
#include "AbilitySystemGlobals.h" | |
#include "AresBuffDisplaySlot.h" | |
#include "Components/HorizontalBox.h" | |
#include "CoreFramework/AresGameplayTags.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// (C)2022 InterKaos Games. | |
#include "AbilitySystem/Tasks/AbilityTask_InputDirection.h" | |
#include "EngineGlobals.h" | |
#include "Engine/Engine.h" | |
#include "AbilitySystemComponent.h" | |
#include "AbilitySystem/Abilities/KaosGameplayAbility.h" | |
#include "Pawn/KaosPawn.h" | |
#include "Player/Controller/KaosPlayerController.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template <class T> | |
void ShuffleArray(T& InArray) | |
{ | |
const int32 LastIndex = InArray.Num() - 1; | |
for (int32 i = 0; i < LastIndex; ++i) | |
{ | |
int32 Index = FMath::RandRange(0, LastIndex); | |
if (i != Index) | |
{ | |
InArray.Swap(i, Index); |