Space Plunder
Loading...
Searching...
No Matches
FInteractionType Struct Reference

#include <BaseData.h>

Public Member Functions

 FInteractionType ()
 
 FInteractionType (const EInteractionType Type)
 
 FInteractionType (const EInteractionType Type, const bool bStartHidden)
 
 FInteractionType (const FString &CustomText)
 
 FInteractionType (const FString &CustomText, const bool bShowButtonPrompt)
 
bool operator== (const FInteractionType &Other) const
 

Static Public Member Functions

static FInteractionType None ()
 

Public Attributes

EInteractionType InteractionType = EInteractionType::Default
 
bool bHold = false
 
bool bAvailable = true
 
bool bHide = false
 
bool bShowButton = false
 
bool bCustomInteraction = false
 
FString CustomInteractionText = "Default"
 
float InteractTimeMultiplier = 1.0f
 
UInputAction * MappingContext = nullptr
 

Detailed Description

Different Interactions require different Key bindings eg. press E to Interact Hold R to Takedown

Constructor & Destructor Documentation

◆ FInteractionType() [1/5]

FInteractionType::FInteractionType ( )
inline
365 {
366
367 }

◆ FInteractionType() [2/5]

FInteractionType::FInteractionType ( const EInteractionType Type)
inlineexplicit
369 {
370 InteractionType = Type;
371 }
EInteractionType InteractionType
Definition BaseData.h:337

◆ FInteractionType() [3/5]

FInteractionType::FInteractionType ( const EInteractionType Type,
const bool bStartHidden )
inlineexplicit
373 {
374 InteractionType = Type;
375 bHide = bStartHidden;
376 }
bool bHide
Definition BaseData.h:343

◆ FInteractionType() [4/5]

FInteractionType::FInteractionType ( const FString & CustomText)
inlineexplicit
378 {
379 bCustomInteraction = true;
380 CustomInteractionText = CustomText;
381 }
bool bCustomInteraction
Definition BaseData.h:347
FString CustomInteractionText
Definition BaseData.h:349

◆ FInteractionType() [5/5]

FInteractionType::FInteractionType ( const FString & CustomText,
const bool bShowButtonPrompt )
inlineexplicit
383 {
384 bCustomInteraction = true;
385 CustomInteractionText = CustomText;
386 bShowButton = bShowButtonPrompt;
387 }
bool bShowButton
Definition BaseData.h:345

Member Function Documentation

◆ None()

static FInteractionType FInteractionType::None ( )
inlinestatic
389 {
391 return None;
392 }
Definition BaseData.h:333
static FInteractionType None()
Definition BaseData.h:388

◆ operator==()

bool FInteractionType::operator== ( const FInteractionType & Other) const
inline
394 {
395 bool bEqual = true;
396 if(InteractionType != Other.InteractionType)
397 {
398 bEqual = false;
399 }
400 // if(bHold != Other.bHold)
401 // {
402 // bEqual = false;
403 // }
404 // if(bAvailable != Other.bAvailable)
405 // {
406 // bEqual = false;
407 // }
408 // if(bAvailable != Other.bHide)
409 // {
410 // bEqual = false;
411 // }
412 return bEqual;
413 }

Member Data Documentation

◆ bAvailable

bool FInteractionType::bAvailable = true

◆ bCustomInteraction

bool FInteractionType::bCustomInteraction = false

◆ bHide

bool FInteractionType::bHide = false

◆ bHold

bool FInteractionType::bHold = false

◆ bShowButton

bool FInteractionType::bShowButton = false

◆ CustomInteractionText

FString FInteractionType::CustomInteractionText = "Default"

◆ InteractionType

EInteractionType FInteractionType::InteractionType = EInteractionType::Default

◆ InteractTimeMultiplier

float FInteractionType::InteractTimeMultiplier = 1.0f

How much extra does the Interaction Take,
Component Interact Time * This

◆ MappingContext

UInputAction* FInteractionType::MappingContext = nullptr

The documentation for this struct was generated from the following file: