Adventure Kit  4.16
Public Member Functions | Public Attributes | List of all members
AAdvKitUsable Class Reference

Base class for all sorts of usable scene actors (like levers or buttons). More...

#include <AdvKitUsable.h>

Inheritance diagram for AAdvKitUsable:
AAdvKitPickup AAdvKitUsableSimpleSwitch AAdvKitAmmunitionPickup AAdvKitInventoryPickup

Public Member Functions

 AAdvKitUsable (const FObjectInitializer &ObjectInitializer)
 
void UsedBy (class AAdvKitCharacter *Character, class AAdvKitInventoryItem *WithItem=nullptr)
 
virtual void UsedBy_Implementation (class AAdvKitCharacter *Character, class AAdvKitInventoryItem *WithItem=nullptr)
 
bool CanBeUsedBy (class AAdvKitCharacter *Character, class AAdvKitInventoryItem *WithItem=nullptr)
 
virtual bool CanBeUsedBy_Implementation (class AAdvKitCharacter *Character, class AAdvKitInventoryItem *WithItem=nullptr)
 

Public Attributes

FUsedBySignature OnUsedBy
 

Detailed Description

Base class for all sorts of usable scene actors (like levers or buttons).

Constructor & Destructor Documentation

AAdvKitUsable::AAdvKitUsable ( const FObjectInitializer &  ObjectInitializer)

Constructor

Member Function Documentation

bool AAdvKitUsable::CanBeUsedBy ( class AAdvKitCharacter Character,
class AAdvKitInventoryItem WithItem = nullptr 
)

Called before UsedBy to check whether or not a character can use this object.

Parameters
CharacterThe using character.
WithItemOptional item the character used with this object (e.g. a key).
Returns
true if usable
void AAdvKitUsable::UsedBy ( class AAdvKitCharacter Character,
class AAdvKitInventoryItem WithItem = nullptr 
)

Called when a character uses this object.

Parameters
CharacterThe using character.
WithItemOptional item the character used with this object (e.g. a key).

Member Data Documentation

FUsedBySignature AAdvKitUsable::OnUsedBy

Delegate that is called when this actor was used.


The documentation for this class was generated from the following files: