| UObjectBase
|
Module |
|
Header |
/Engine/Plugins/Runtime/DataRegistry/Source/DataRegistry/Public/DataRegistry.h |
Include |
#include "DataRegistry.h" |
[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)()
class UDataRegistry : public UObject
Defines a place to efficiently store and retrieve structure data, can be used as a wrapper around Data/Curve Tables or extended with other sources
Name | Description | ||
---|---|---|---|
|
DataSources |
List of data sources to search for items |
|
|
DefaultCachePolicy |
Editor-set cache policy |
|
|
IdFormat |
Rules for specifying valid item Ids, if default than any name can be used |
|
|
const UScriptSt... |
ItemStruct |
Structure type of all for items in this registry |
|
OnCacheVersionInvalidatedCallback |
Callback for when cache version changes, might be moved later |
|
|
RegistryType |
Globally unique name used to identify this registry |
|
|
RuntimeCachePolicy |
Runtime override |
|
|
RuntimeSources |
TODO remove VisibleDefaultsOnly or figure out how to stop it from letting you edit the instance properties. |
|
|
float |
TimerUpdateFrequency |
How often to check for cache updates |
Name | Description | |
---|---|---|
|
UDataRegistry() |
Name | Description | |
---|---|---|
|
~UDataRegistry() |
Name | Description | ||
---|---|---|---|
|
AcquireItem ( |
Start an async request for a single item |
|
|
AcquireItemInternal ( |
Start an async request |
|
|
AddAllIdsForResolvedName ( |
Adds all possible source ids for resolved name to set, regardless of request context, default just uses the name |
|
|
AddReferencedObjects ( |
||
|
ApplyCachePolicy() |
Applies the cache policy, is called regularly but can be manually executed |
|
|
BatchAcquireItems ( |
Start an async request for multiple items |
|
|
BatchAcquireSourceItems ( |
Request a list of source items |
|
|
Deinitialize() |
Disable access and restore to state before initialization, won't do anything if not initialized |
|
|
DelayedHandleSuccessCallbacks ( |
Frame-delayed callback to call success for already loaded items |
|
|
DoesItemStructMatchFilter ( |
Returns true if this registry struct inherits from a particular named struct |
|
|
EditorRefreshRegistry() |
Validate and refresh registration |
|
|
const FCache... |
FindCachedData ( |
Returns internal cached data or raw memory ptr for precached data |
|
FDataRegistr... |
GetAllCachedItems ( |
Fills in a map with all cached (and precached) ids and items for fast iteration. |
|
GetAllSourceItems ( |
Returns all source ids for editor display |
|
|
FDataRegistr... |
GetCachedCurveRaw ( |
Curve wrapper for get function |
|
const T *... |
GetCachedItem ( |
Finds the cached item, using the request context to handle remapping |
|
FDataRegistr... |
GetCachedItemRaw ( |
Returns the raw cached data and struct type, useful for generic C++ calls |
|
FDataRegistr... |
GetCachedItemRawFromLookup ( |
Finds the cached item using a resolved lookup, this can be useful after a load has happened to ensure you get the exact item requested |
|
FDataRegistr... |
GetCacheResultVersion() |
Returns the current cache version for a successful get, may change depending on stack-specific resolve settings |
|
GetChildRuntimeSources ( |
Gets list of child runtime sources created by passed in source, in order registered |
|
|
float |
GetCurrentTime() |
Gets the current time |
|
const FDataR... |
GetIdFormat() |
Gets the formatting for this Id |
|
const UScrip... |
GetItemStruct() |
Returns the struct used by this registry, everything returned will be this or a subclass |
|
EDataRegistr... |
GetLowestAvailability() |
Returns the worst availability for anything stored in this registry, if this is Precached then this registry is a wrapper around already loaded data |
|
GetPossibleRegistryIds ( |
Fills in a list of all item ids provided by this registry, sorted for display |
|
|
GetRegistryDescription() |
Gets a human readable summary of registry, for UI usage |
|
|
const FName |
GetRegistryType() |
Returns the name for type exposed by this registry |
|
const FDataR... |
GetRuntimeCachePolicy() |
Gets the current general cache policy |
|
GetSourceIndex ( |
Returns the index of a source in the source list |
|
|
FTimerManage... |
GetTimerManager() |
Returns a timer manager that is safe to use for asset loading actions. |
|
HandleAcquireCallbacks ( |
Handle sending completion/error callbacks |
|
|
HandleAcquireResult ( |
Call to indicate that a item is available, will insert into cache |
|
|
HandleCacheEntryState ( |
Advances state machine for a cached entry |
|
|
Initialize() |
Initialize for requests, called when subsystem starts up and should return true on success |
|
|
InvalidateCacheVersion() |
Bump the cache version from some external event like game-specific file loading |
|
|
IsCacheGetResultValid ( |
Checks if a previous cached get is still valid |
|
|
IsInitialized() |
Returns true if this state has been initialized for use |
|
|
UDataRegistr... |
LookupSource ( |
Find the source associated with a lookup index |
|
MapIdToResolvedName ( |
Maps from a type:name pair to a per-source resolved name, default just returns the name |
|
|
MarkRuntimeDirty() |
Marks this registry for needing a runtime refresh at next opportunity |
|
|
FDataRegistr... |
OnCacheVersionInvalidated() |
Accesses the delegate called when cache version changes |
|
RefreshRuntimeSources() |
Refresh the RuntimeSources list |
|
|
RegisterSpecificAsset ( |
Attempt to register a specified asset with a source, returns true if any changes were made. |
|
|
ResetRuntimeState() |
Reset caches and state because gameplay finished due to PIE shutting down or the game registering a return to main menu, but stay initialized for future use |
|
|
ResolveDataRegistryId ( |
Resolves an item id into a specific source and unique id, this can remap the names using game-specific rules. |
|
|
RuntimeRefreshIfNeeded() |
Conditionally refresh the runtime state if needed |
|
|
SetRuntimeCachePolicy ( |
Sets the current cache policy, could cause items to get released |
|
|
TimerUpdate() |
Called on timer tick when initialized |
|
|
UnregisterAssetsWithPriority ( |
Unregisters all previously registered assets in a specific registry with a specific priority, can be used as a batch reset. |
|
|
UnregisterSpecificAsset ( |
Removes references to a specific asset, returns bool if it was removed |
|
|
UpdateBatchRequest ( |
Check on any batch requests that need processing, if filter is empty will process all |
Name | Description | ||
---|---|---|---|
|
BeginDestroy() |
Called before destroying the object. |
|
|
PostEditChangeProperty ( |
Called when a property on this object has been modified externally |
|
|
PostRename |
Called at the end of Rename(), but only if the rename was actually carried out |