ULimenStorageItem
Overview
ULimenStorageItem is an abstract class implementing the ILimenSaveObjectInterface. It serves as a base for storing data with properties like development name, category, and display name. The class provides blueprint callable functions to access these properties and overrides several lifecycle events related to saving and loading data.
Properties
Type | Name | Access | Description |
|---|---|---|---|
FName | DevelopmentName | EditAnywhere | A unique identifier for the item used during development. |
FText | Category | EditAnywhere | The category under which this item falls, useful for organizing items in a user interface. |
FText | DisplayName | EditAnywhere | The name that will be displayed to users, providing a human-readable label for the item. |
Functions
Return Type | Signature | Description |
|---|---|---|
FName | GetDevelopmentName() const | Returns the development name of the item. |
FText | GetCategory() const | Returns the category of the item. |
FText | GetDisplayName() const | Returns the display name of the item. |
bool | ShouldSaveData() const | Determines if data for this item should be saved. Always returns |
bool | ShouldLoadData() const | Determines if data for this item should be loaded. Always returns |
void | PreDataSaved() override | Called before data is saved. Does nothing by default. |
void | PostDataSaved() override | Called after data is saved. Does nothing by default. |
void | PreDataLoaded() override | Called before data is loaded. Does nothing by default. |
void | PostDataLoaded() override | Called after data is loaded. Does nothing by default. |
FName | GetUniqueDeterministicId() const override | Returns the development name as a unique identifier for this item. |
Usage & Implementation Notes
This class is abstract and must be inherited to provide specific implementations for saving and loading logic.
The
ShouldSaveDataandShouldLoadDatamethods always returntrue, indicating that data should always be saved and loaded by default.The lifecycle events (
PreDataSaved,PostDataSaved,PreDataLoaded,PostDataLoaded) are provided but do nothing, making them suitable for overriding in derived classes to add custom behavior.