There is no spoon
UE3:UIDataProvider (UT3)
From Unreal Wiki, The Unreal Engine Documentation Site
Contents |
- Package:
- Engine
- Direct subclasses:
- UIConfigProvider, UIDataProvider_OnlinePlayerDataBase, UIDataProvider_OnlineProfileSettingsArray, UIDataProvider_SettingsArray, UIDataStore, UIDynamicFieldProvider, UIPropertyDataProvider, UTUIDataProvider_CharacterFaction, UTUIDataProvider_CharacterPart, UTUIDataProvider_Character, UTUIDataProvider_SimpleElementProvider
- This class in other games:
- UDK
| This is an auto-generated page and may need human attention. Please remove this tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
Base class for all classes which provide data stores with data about specific instances of a particular data type.
Copyright 1998-2007 Epic Games, Inc. All Rights Reserved
[edit] Properties
[edit] ProviderChangedNotifies
Type: array<delegate<OnDataProviderPropertyChange> >
The list of delegates to call when data exposed by this provider has been updated.
Todo: change into a map of property name => delegate, so that when a property name is passed to NotifyPropertyChanged, only those delegates are called.
[edit] WriteAccessType
Type: EProviderAccessType
Determines whether/how subscribers to this data store are allowed to publish changes to property values.
[edit] Enums
[edit] EProviderAccessType
Types of write access that data providers can specify.
- ACCESS_ReadOnly
- no fields are writeable - readonly
- ACCESS_WriteAll
- all fields are writeable
[edit] Structs
[edit] UIDataProviderField
Modifiers: native, transient
Contains data about a single data field exposed by this data provider.
- name FieldTag
- the tag used to access this field
- UIRoot.EUIDataProviderFieldType FieldType
- the type of field this tag corresponds to
- array<UIDataProvider> FieldProviders
- The list of providers associated with this field. Only relevant if FieldType is DATATYPE_Provider or
DATATYPE_ProviderCollection. If FieldType is DATATYPE_Provider, the list should contain only one element.
[edit] Delegates
[edit] OnDataProviderPropertyChange
Delegate that notifies that a property has changed Intended only for use between data providers and their owning data stores. For external notifications, use the callbacks in UIDataStore instead.
Parameters:
- SourceProvider - the data provider that generated the notification
- PropTag - the property that changed
[edit] Functions
[edit] Events
[edit] GenerateFillerData
Callback to allow script-only child classes to return filler data for their own data fields.
Parameters:
- DataTag - the tag corresponding to the data field that we want filler data for
Returns:
- a string of made-up data which is indicative of the typical values for the specified field.
[edit] GenerateScriptMarkupString
Callback to allow script-only child classes to generate a markup string for their own data fields. Called from the native implementation of GenerateDataMarkupString if the tag specified doesn't correspond to any tags in the data store.
Parameters:
- DataTag - the data field tag to generate the markup string for
Returns:
- a datastore markup string which resolves to the datastore field associated with DataTag, in the format: <DataStoreTag:DataFieldTag>
[edit] GetFieldValue
Resolves the value of the data field specified and stores it in the output parameter.
Parameters:
- FieldName - the data field to resolve the value for; guaranteed to correspond to a property that this provider can resolve the value for (i.e. not a tag corresponding to an internal provider, etc.)
- out_FieldValue - receives the resolved value for the property specified.
- ArrayIndex - optional array index for use with data collections
Returns:
- TRUE to indicate that this value was processed by script.
See: ParseDataStoreReference for additional notes
[edit] GetSupportedScriptFields
Callback to allow script-only child classes to add their own supported tags when GetSupportedDataFields is called.
Parameters:
- out_Fields - the list of data tags supported by this data store.
[edit] NotifyPropertyChanged
Iterates over the list of subscribed delegates and fires off the event. Called whenever the value of a field managed by this data provider is modified.
Parameters:
- PropTag - the name of the property that changed
[edit] SetFieldValue
Resolves the value of the data field specified and stores the value specified to the appropriate location for that field.
Parameters:
- FieldName - the data field to resolve the value for; guaranteed to correspond to a property that this provider can resolve the value for (i.e. not a tag corresponding to an internal provider, etc.)
- FieldValue - the value to store for the property specified.
- ArrayIndex - optional array index for use with data collections
Returns:
- TRUE to indicate that this value was processed by script.
[edit] Other instance functions
[edit] AddPropertyNotificationChangeRequest
Subscribes a function for receiving notifications that a property in this data provider has changed. Intended only for use between data providers and their owning data stores. For external notifications, use the callbacks in UIDataStore instead.
Parameters:
- InDelegate - the delegate to add to the notification list
[edit] RemovePropertyNotificationChangeRequest
Removes the delegate from the notification list
Parameters:
- InDelegate - the delegate to remove from the list
