CriWare Unreal Engine
Plug-ins for CriWare solutions.
Loading...
Searching...
No Matches
Atom::FShuffleUtil Struct Reference

#include <AtomGameplayShuffle.h>

Public Member Functions

CRI_API uint8 GetNextIndex ()
CRI_API void Initialize (int32 ArraySize)

Protected Member Functions

CRI_API void Shuffle ()

Protected Attributes

TArray< uint8 > ShuffleArray
uint8 ShuffleMarker = 0

Detailed Description

FShuffleUtil - Utility to provide a fast random index in an array without replacement ie, all elements will be returned from GetNextIndex exactly once before repeating

Member Function Documentation

◆ GetNextIndex()

uint8 Atom::FShuffleUtil::GetNextIndex ( )

Returns next valid index, or INDEX_NONE if not initialized. Shuffles array if needed

◆ Initialize()

void Atom::FShuffleUtil::Initialize ( int32 ArraySize)

Initializes the Shuffle Array

◆ Shuffle()

void Atom::FShuffleUtil::Shuffle ( )
protected

Shuffles the internal array

Member Data Documentation

◆ ShuffleArray

TArray<uint8> Atom::FShuffleUtil::ShuffleArray
protected

◆ ShuffleMarker

uint8 Atom::FShuffleUtil::ShuffleMarker = 0
protected

The documentation for this struct was generated from the following files:
  • C:/git/uev2/Engine/Plugins/Runtime/CriWare/CriWare/Source/CriWareCore/Public/Atom/Gameplay/AtomGameplayShuffle.h
  • C:/git/uev2/Engine/Plugins/Runtime/CriWare/CriWare/Source/CriWareCore/Private/Atom/Gameplay/AtomGameplayShuffle.cpp