ULimenHintsSetting
Overview
ULimenHintsSetting is a subclass of ULimenSelectionSetting designed to control whether tutorial messages are displayed in the game. It interacts with an instance of ALimenHintsManager to enable or disable hints based on the current setting.
Properties
Type | Name | Access | Description |
|---|---|---|---|
FString | Enabled | Private | String constant representing the "Enabled" state. |
FString | Disabled | Private | String constant representing the "Disabled" state. |
int32 | MaxRetries | Private | Maximum number of retries allowed for certain operations (not used in this class). |
TWeakObjectPtr< ALimenHintsManager > | HintsManager | Private | Weak pointer to the |
int32 | Retries | Private | Current retry count (not used in this class). |
HintsManagerSpawn | Private | Tick check for managing the |
Functions
Return Type | Signature | Description |
|---|---|---|
void | ApplyCurrentSetting(bool bUserRequest) | Applies the current setting to the game. If a valid |
void | SetDefaults() | Sets default values for the setting, including possible selections and the default selection. |
Usage & Implementation Notes
The class uses a weak pointer to manage the
ALimenHintsManager, ensuring that the manager can be garbage collected if no longer needed.The
ApplyCurrentSettingfunction checks for the validity of theHintsManagerbefore applying the setting, preventing potential crashes.The
SetDefaultsfunction initializes the possible selections and default selection, ensuring that the setting is properly configured when created.