Skip to content

Instantly share code, notes, and snippets.

View KaosSpectrum's full-sized avatar

const* UKaosSpectrum KaosSpectrum

View GitHub Profile
// 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"
// (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"
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);