Mostly Harmless
UE3:OnlinePlayerStorage (UDK)
Object >> OnlinePlayerStorage |
Contents
- 1 Properties
- 2 Enums
- 3 Structs
- 4 Delegates
- 5 Functions
- 5.1 Native functions
- 5.1.1 AddSettingFloat
- 5.1.2 AddSettingInt
- 5.1.3 FindProfileMappingIndex
- 5.1.4 FindProfileMappingIndexByName
- 5.1.5 FindProfileSettingIndex
- 5.1.6 GetProfileSettingColumnHeader
- 5.1.7 GetProfileSettingId
- 5.1.8 GetProfileSettingMappingType
- 5.1.9 GetProfileSettingName
- 5.1.10 GetProfileSettingRange
- 5.1.11 GetProfileSettingValue
- 5.1.12 GetProfileSettingValueByName
- 5.1.13 GetProfileSettingValueFloat
- 5.1.14 GetProfileSettingValueId
- 5.1.15 GetProfileSettingValueInt
- 5.1.16 GetProfileSettingValueName
- 5.1.17 GetProfileSettingValues
- 5.1.18 GetRangedProfileSettingValue
- 5.1.19 IsProfileSettingIdMapped
- 5.1.20 SetProfileSettingValue
- 5.1.21 SetProfileSettingValueByName
- 5.1.22 SetProfileSettingValueFloat
- 5.1.23 SetProfileSettingValueId
- 5.1.24 SetProfileSettingValueInt
- 5.1.25 SetRangedProfileSettingValue
- 5.2 Events
- 5.1 Native functions
- Package:
- Engine
- Direct subclass:
- OnlineProfileSettings
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
This class holds the data used in reading/writing online player data. The online player data is stored by an external service.
Properties[edit]
AsyncState[edit]
Type: EOnlinePlayerStorageAsyncState
Modifiers: const
Indicates the state of the profile (whether an async action is happening and what type)
ProfileMappings[edit]
Type: array<Settings.SettingsPropertyPropertyMetaData>
Holds the set of mappings from native format to human readable format
ProfileSettings[edit]
Type: array<OnlineProfileSetting>
Current set of player data that is either returned from a read or to be written out
VersionNumber[edit]
Type: int
Modifiers: const
Used to determine if the read online player data is the proper version or not
Default value: -1
Enums[edit]
EOnlinePlayerStorageAsyncState[edit]
Enum indicating the current async action happening on the player data
- OPAS_None
- OPAS_Read
- OPAS_Write
EOnlineProfilePropertyOwner[edit]
Enum indicating who owns a given online profile proprety
- OPPO_None
- No owner assigned
- OPPO_OnlineService
- Owned by the online service
- OPPO_Game
- Owned by the game in question
Structs[edit]
OnlineProfileSetting[edit]
Modifiers: native
Structure used to hold the information for a given profile setting
- EOnlineProfilePropertyOwner Owner
- Which party owns the data (online service vs game)
- Settings.SettingsProperty ProfileSetting
- The profile setting comprised of unique id and union of held types
Delegates[edit]
NotifySettingValueUpdated[edit]
Notification that the value of a ProfileSetting in this object has been updated.
Parameters:
- SettingName - the name of the setting that was changed.
Functions[edit]
Native functions[edit]
AddSettingFloat[edit]
Adds an id to the array, assuming that it doesn't already exist
Parameters:
- SettingId - the id to add to the array
AddSettingInt[edit]
Adds an id to the array, assuming that it doesn't already exist
Parameters:
- SettingId - the id to add to the array
FindProfileMappingIndex[edit]
Finds the index of SettingsPropertyPropertyMetaData struct, given its settings id.
Parameters:
- ProfileSettingId - the id of the struct to search for
Returns:
- the index into the ProfileMappings array for the struct with the matching id.
FindProfileMappingIndexByName[edit]
Finds the index of SettingsPropertyPropertyMetaData struct, given its settings name.
Parameters:
- ProfileSettingId - the id of the struct to search for
Returns:
- the index into the ProfileMappings array for the struct with the matching name.
FindProfileSettingIndex[edit]
Finds the index of an OnlineProfileSetting struct given its settings id.
Parameters:
- ProfileSettingId - the id of the struct to search for
Returns:
- the index into the ProfileSettings array for the struct with the matching id.
GetProfileSettingColumnHeader[edit]
Finds the localized column header text for the profile setting
Parameters:
- ProfileSettingId - the id to look up in the mappings table
Returns:
- the string to use as the list column header for the profile setting that matches the id, or an empty string if not found.
GetProfileSettingId[edit]
Searches the profile setting array for the matching string setting name and returns the id
Parameters:
- ProfileSettingName - the name of the profile setting being searched for
- ProfileSettingId - the id of the context that matches the name
Returns:
- true if the seting was found, false otherwise
GetProfileSettingMappingType[edit]
Determines the mapping type for the specified property
Parameters:
- ProfileId - the ID to get the mapping type for
- OutType - the out var the value is placed in
Returns:
- TRUE if found, FALSE otherwise
GetProfileSettingName[edit]
Finds the human readable name for the profile setting
Parameters:
- ProfileSettingId - the id to look up in the mappings table
Returns:
- the name of the string setting that matches the id or NAME_None if not found
GetProfileSettingRange[edit]
Determines the min and max values of a property that is clamped to a range
Parameters:
- ProfileId - the ID to get the mapping type for
- OutMinValue - the out var the min value is placed in
- OutMaxValue - the out var the max value is placed in
- RangeIncrement - the amount the range can be adjusted by the UI in any single update
- bFormatAsInt - whether the range's value should be treated as an int.
Returns:
- TRUE if found and is a range property, FALSE otherwise
GetProfileSettingValue[edit]
Finds the human readable name for a profile setting's value. Searches the profile settings mappings for the specifc profile setting and then searches the set of values for the specific value index and returns that value's human readable name
Parameters:
- ProfileSettingId - the id to look up in the mappings table
- Value - the out param that gets the value copied to it
- ValueMapID - optional parameter that allows you to select a specific index in the ValueMappings instead of automatically using the currently set index (if -1 is passed in, which is the default, it means to just use the set index
Returns:
- true if found, false otherwise
GetProfileSettingValueByName[edit]
Finds the human readable name for a profile setting's value. Searches the profile settings mappings for the specifc profile setting and then searches the set of values for the specific value index and returns that value's human readable name
Parameters:
- ProfileSettingName - the name of the profile setting to find the string value of
- Value - the out param that gets the value copied to it
Returns:
- true if found, false otherwise
GetProfileSettingValueFloat[edit]
Searches for the profile setting by id and gets the value index
Parameters:
- ProfileSettingId - the id of the profile setting to return
- Value - the out value of the setting
Returns:
- true if the profile setting was found and not id mapped, false otherwise
GetProfileSettingValueId[edit]
Searches for the profile setting by id and gets the value index
Parameters:
- ProfileSettingId - the id of the profile setting to return
- ValueId - the out value of the id
- ListIndex - the out value of the index where that value lies in the ValueMappings list
Returns:
- true if the profile setting was found and id mapped, false otherwise
GetProfileSettingValueInt[edit]
Searches for the profile setting by id and gets the value index
Parameters:
- ProfileSettingId - the id of the profile setting to return
- Value - the out value of the setting
Returns:
- true if the profile setting was found and not id mapped, false otherwise
GetProfileSettingValueName[edit]
Finds the human readable name for a profile setting's value. Searches the profile settings mappings for the specifc profile setting and then searches the set of values for the specific value index and returns that value's human readable name
Parameters:
- ProfileSettingId - the id to look up in the mappings table
Returns:
- the name of the value or NAME_None if not value mapped
GetProfileSettingValues[edit]
Searches the profile settings mappings for the specifc profile setting and then adds all of the possible values to the out parameter
Parameters:
- ProfileSettingId - the id to look up in the mappings table
- Values - the out param that gets the list of values copied to it
Returns:
- true if found and value mapped, false otherwise
GetRangedProfileSettingValue[edit]
Gets the value of a ranged property
Parameters:
- ProfileId - the ID to get the value of
- OutValue - the out var that receives the value
Returns:
- TRUE if found and is a range property, FALSE otherwise
IsProfileSettingIdMapped[edit]
Determines if the setting is id mapped or not
Parameters:
- ProfileSettingId - the id to look up in the mappings table
Returns:
- TRUE if the setting is id mapped, FALSE if it is a raw value
SetProfileSettingValue[edit]
Searches for the profile setting by name and sets the value index to the value contained in the profile setting meta data
Parameters:
- ProfileSettingName - the name of the profile setting to set the string value of
- NewValue - the string value to use
Returns:
- true if the profile setting was found and the value was set, false otherwise
SetProfileSettingValueByName[edit]
Searches for the profile setting by name and sets the value index to the value contained in the profile setting meta data
Parameters:
- ProfileSettingName - the name of the profile setting to find
- NewValue - the string value to use
Returns:
- true if the profile setting was found and the value was set, false otherwise
SetProfileSettingValueFloat[edit]
Searches for the profile setting by id and sets the value
Parameters:
- ProfileSettingId - the id of the profile setting to return
- Value - the new value
Returns:
- true if the profile setting was found and not id mapped, false otherwise
SetProfileSettingValueId[edit]
Searches for the profile setting by id and sets the value
Parameters:
- ProfileSettingId - the id of the profile setting to return
- Value - the new value
Returns:
- true if the profile setting was found and id mapped, false otherwise
SetProfileSettingValueInt[edit]
Searches for the profile setting by id and sets the value
Parameters:
- ProfileSettingId - the id of the profile setting to return
- Value - the new value
Returns:
- true if the profile setting was found and not id mapped, false otherwise
SetRangedProfileSettingValue[edit]
Sets the value of a ranged property, clamping to the min/max values
Parameters:
- ProfileId - the ID of the property to set
- NewValue - the new value to apply to the
Returns:
- TRUE if found and is a range property, FALSE otherwise
Events[edit]
SetToDefaults[edit]
Clear out the settings. Subclasses can override to set their own defaults.