ALimenPhysicalItem
Overview
ALimenPhysicalItem is an abstract base class derived from ALimenItemBase. It represents items with a physical presence in the game world, such as weapons. The class manages item state tags and provides functionality to set and get attachment socket names.
Properties
Type | Name | Access | Description |
|---|---|---|---|
FName | AttachSocketName | EditAnywhere | Socket name for attaching the item to another object. |
Functions
Return Type | Signature | Description |
|---|---|---|
void | SetTagState(const FGameplayTag& InTag, bool bEnable) | Sets or removes a tag from the item's state tags based on the provided boolean value. |
const FName& | GetAttachmentSocketName() const | Returns the name of the socket used for attaching the item to another object. |
Usage & Implementation Notes
The
AttachSocketNameproperty is editable in the Unreal Editor and can be customized per instance.The
SetTagStatefunction checks if the tag state can be changed using theCanSetTagStatemethod before modifying theItemStateTags.The
TagStateChangedfunction is a placeholder that can be overridden to handle changes in item tags.The
CanSetTagStatefunction ensures that the tag state is toggled only when necessary, preventing redundant operations.