ALimenHintsManager
Overview
ALimenHintsManager is a subclass of ALimenGameplayManager responsible for managing hints in the game. It handles the creation, initialization, enabling, and disabling of hints based on user input or other triggers. The manager also manages the hint widget class that will be used to display the hints.
Properties
Type | Name | Access | Description |
|---|---|---|---|
| HintClasses | EditAnywhere, Category=" Limen " | A list of hint classes that can be instantiated. |
| Hints | N/A | An array of strong pointers to the currently active hints. |
| HintWidgetClass | EditDefaultsOnly, Category=" Limen " | The class of the hint widget that will be used to display the hints. |
| bHintsEnabled | N/A | A boolean indicating whether hints are currently enabled. |
Functions
Return Type | Signature | Description |
|---|---|---|
|
| Sets the class of the hint widget that will be used to display the hints. |
|
| Initializes all hints by creating instances and setting their properties. |
|
| Enables all currently active hints. |
|
| Disables all currently active hints. |
|
| Returns whether hints are currently enabled. |
Usage & Implementation Notes
The manager ensures that the hint widget class is not null before proceeding with initialization.
Hints are created synchronously using
NewObject, and their properties are set accordingly.The manager handles enabling and disabling of hints based on the state of
bHintsEnabled.The
EndPlayfunction empties the array of hints to clean up resources.