I'm a doctor, not a mechanic
UE3:OnlineProfileSettings (UT3)
Object >> OnlineProfileSettings |
Contents
- 1 Properties
- 2 Enums
- 3 Structs
- 4 Functions
- 4.1 Native functions
- 4.1.1 SetToDefaults
- 4.1.2 AppendVersionToReadIds
- 4.1.3 AppendVersionToSettings
- 4.1.4 GetProfileSettingColumnHeader
- 4.1.5 GetProfileSettingId
- 4.1.6 GetProfileSettingMappingType
- 4.1.7 GetProfileSettingName
- 4.1.8 GetProfileSettingRange
- 4.1.9 GetProfileSettingValue
- 4.1.10 GetProfileSettingValueByName
- 4.1.11 GetProfileSettingValueFloat
- 4.1.12 GetProfileSettingValueId
- 4.1.13 GetProfileSettingValueInt
- 4.1.14 GetProfileSettingValueName
- 4.1.15 GetProfileSettingValues
- 4.1.16 GetRangedProfileSettingValue
- 4.1.17 GetVersionNumber
- 4.1.18 IsProfileSettingIdMapped
- 4.1.19 ReconcileProfileSettings
- 4.1.20 SetDefaultVersionNumber
- 4.1.21 SetProfileSettingValue
- 4.1.22 SetProfileSettingValueByName
- 4.1.23 SetProfileSettingValueFloat
- 4.1.24 SetProfileSettingValueId
- 4.1.25 SetProfileSettingValueInt
- 4.1.26 SetRangedProfileSettingValue
- 4.2 Events
- 4.1 Native functions
- Package:
- Engine
- Direct subclass:
- UTProfileSettings
- This class in other games:
- UDK
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 profile settings. Online profile settings are stored by an external service.
Properties
AsyncState
Type: EOnlineProfileAsyncState
Modifiers: const
Indicates the state of the profile (whether an async action is happening and what type)
DefaultSettings
Type: array<OnlineProfileSetting>
These are the settings to use when no setting has been specified yet for a given id. These values should be used by subclasses to fill in per game default settings
OwnerMappings
Type: array<Settings.IdToStringMapping>
Modifiers: const
Mappings for owner information
Default value, index 1:
Member | Value |
---|---|
Id | 1 |
Name | 'Online Service Setting' |
Default value, index 2:
Member | Value |
---|---|
Id | 2 |
Name | 'Game Setting' |
ProfileMappings
Type: array<Settings.SettingsPropertyPropertyMetaData>
Holds the set of mappings from native format to human readable format
Default value, index 0:
Member | Value | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Id | 1 | ||||||||||
MappingType | PVMT_IdMapped | ||||||||||
Name | 'Controller Vibration' | ||||||||||
ValueMappings |
|
Default value, index 1:
Member | Value | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Id | 2 | ||||||||||
MappingType | PVMT_IdMapped | ||||||||||
Name | 'Invert Y' | ||||||||||
ValueMappings |
|
Default value, index 2:
Member | Value | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Id | 5 | ||||||||||
MappingType | PVMT_IdMapped | ||||||||||
Name | 'Mute Voice' | ||||||||||
ValueMappings |
|
Default value, index 3:
Member | Value | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Id | 6 | ||||||||||||||||
MappingType | PVMT_IdMapped | ||||||||||||||||
Name | 'Voice Via Speakers' | ||||||||||||||||
ValueMappings |
|
Default value, index 4:
Member | Value |
---|---|
Id | 7 |
Name | 'Voice Volume' |
Default value, index 5:
Member | Value | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Id | 12 | ||||||||||||||||
MappingType | PVMT_IdMapped | ||||||||||||||||
Name | 'Difficulty Level' | ||||||||||||||||
ValueMappings |
|
Default value, index 6:
Member | Value | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Id | 13 | ||||||||||||||||
MappingType | PVMT_IdMapped | ||||||||||||||||
Name | 'Controller Sensitivity' | ||||||||||||||||
ValueMappings |
|
Default value, index 7:
Member | Value | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Id | 14 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MappingType | PVMT_IdMapped | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Name | 'First Preferred Color' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ValueMappings |
|
Default value, index 8:
Member | Value | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Id | 15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MappingType | PVMT_IdMapped | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Name | 'Second Preferred Color' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ValueMappings |
|
Default value, index 9:
Member | Value | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Id | 16 | ||||||||||
MappingType | PVMT_IdMapped | ||||||||||
Name | 'Auto Aim' | ||||||||||
ValueMappings |
|
Default value, index 10:
Member | Value | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Id | 17 | ||||||||||
MappingType | PVMT_IdMapped | ||||||||||
Name | 'Auto Center' | ||||||||||
ValueMappings |
|
Default value, index 11:
Member | Value | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Id | 18 | ||||||||||
MappingType | PVMT_IdMapped | ||||||||||
Name | 'Movement Control' | ||||||||||
ValueMappings |
|
Default value, index 12:
Member | Value | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Id | 19 | ||||||||||
MappingType | PVMT_IdMapped | ||||||||||
Name | 'Transmission Preference' | ||||||||||
ValueMappings |
|
Default value, index 13:
Member | Value | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Id | 20 | ||||||||||||||||
MappingType | PVMT_IdMapped | ||||||||||||||||
Name | 'Race Camera Preference' | ||||||||||||||||
ValueMappings |
|
Default value, index 14:
Member | Value | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Id | 21 | ||||||||||
MappingType | PVMT_IdMapped | ||||||||||
Name | 'Brake Preference' | ||||||||||
ValueMappings |
|
Default value, index 15:
Member | Value | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Id | 22 | ||||||||||
MappingType | PVMT_IdMapped | ||||||||||
Name | 'Accelerator Preference' | ||||||||||
ValueMappings |
|
ProfileSettingIds
Holds the list of profile settings to read from the service. NOTE: Only used for a read request and populated by the subclass
ProfileSettings
Type: array<OnlineProfileSetting>
Holds the set of profile settings that are either returned from a read or to be written out
VersionNumber
Type: int
Modifiers: const
Used to determine if the read profile is the proper version or not
Default value: -1
Enums
See OnlineProfileSettings enums.
Structs
OnlineProfileSetting
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
Functions
Native functions
SetToDefaults
Sets all of the profile settings to their default values
AppendVersionToReadIds
Adds the version id to the read ids if it is not present
AppendVersionToSettings
Adds the version number to the read data if not present
GetProfileSettingColumnHeader
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
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
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
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
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
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
Returns:
- true if found, false otherwise
GetProfileSettingValueByName
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
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
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
Returns:
- true if the profile setting was found and id mapped, false otherwise
GetProfileSettingValueInt
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
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
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
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
GetVersionNumber
Returns the version number that was found in the profile read results
IsProfileSettingIdMapped
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
ReconcileProfileSettings
Compares the data inside the profile with default values to ensure that every entry exists
and sets to default values where appropriate
SetDefaultVersionNumber
Sets the version number to the class default
SetProfileSettingValue
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
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
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
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
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
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
ScriptSetToDefaults
Allows script to set defaults without being native.