Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047 00048 00049 00050 00051 00052 00053 00054 00055 00056 00057 00058 00059 00060 00061 00062 00063 00064 00065 00066 00067 00068 00069 00070 00071 00072 00073 00074 00075 00076 00077 00078 00079 00080 00081 00082 00083 00084 00085 00086 00087 00088 00089 00090 00091 00092 00093 00094 00095 00096 00097 00098 00099 00100 00101 00102 00103 00104 00105 00106 00107 00108 00109 00110 00111 00112 00113 00114 00115 00116 00117 00118 00119 00120 00121 00122 00123 00124 00125 00126 00127 00128 00129 00130 00131 00132 00133 00134 00135 00136 00137 00138 00139 00140 00141 00142 00143 00144 00145 00146 00147 00148 00149 00150 00151 00152 00153 00154 00155 00156 00157 00158 00159 00160 00161 00162 00163 00164 00165 00166 00167 00168 00169 00170 00171 00172 00173 00174 00175 00176 00177 00178 00179 00180 00181 00182 00183 00184 00185 00186 00187 00188 00189 00190 00191 00192 00193 00194 00195 00196 00197 00198 00199 00200 00201 00202 00203 00204 00205 00206 00207 00208 00209 00210 00211 00212 00213 00214 00215 00216 00217 00218 00219 00220 00221 00222 00223 00224 00225 00226 00227 00228 00229 00230 00231 00232 00233 00234 00235 00236 00237 00238 00239 00240 00241 00242 00243 00244 00245 00246 00247 00248 00249 00250 00251 00252 00253 00254 00255 00256 00257 00258 00259 00260 00261 00262 00263 00264 00265 00266 00267 00268 00269 00270 00271 00272 00273 00274 00275 00276 00277 00278 00279 00280 00281 00282 00283 00284 00285 00286 00287 00288 00289 00290 00291 00292 00293 00294 00295 00296 00297 00298 00299 00300 00301 00302 00303 00304 00305 00306 00307 00308 00309 00310 00311 |
/** * Copyright 1998-2011 Epic Games, Inc. All Rights Reserved. */ /** * This class holds the data used in reading/writing online profile settings. * Online profile settings are stored by an external service. */ class OnlineProfileSettings extends OnlinePlayerStorage native; /** * Enum of profile setting IDs */ enum EProfileSettingID { PSI_Unknown, // These are all read only PSI_ControllerVibration, PSI_YInversion, PSI_GamerCred, PSI_GamerRep, PSI_VoiceMuted, PSI_VoiceThruSpeakers, PSI_VoiceVolume, PSI_GamerPictureKey, PSI_GamerMotto, PSI_GamerTitlesPlayed, PSI_GamerAchievementsEarned, PSI_GameDifficulty, PSI_ControllerSensitivity, PSI_PreferredColor1, PSI_PreferredColor2, PSI_AutoAim, PSI_AutoCenter, PSI_MovementControl, PSI_RaceTransmission, PSI_RaceCameraLocation, PSI_RaceBrakeControl, PSI_RaceAcceleratorControl, PSI_GameCredEarned, PSI_GameAchievementsEarned, PSI_EndLiveIds, // Non-Live value that is used to invalidate a stored profile when the versions mismatch PSI_ProfileVersionNum, // Tracks how many times the profile has been saved PSI_ProfileSaveCount // Add new profile settings ids here }; /** * Holds the list of profile settings to read from the service. * NOTE: Only used for a read request and populated by the subclass */ var array<int> ProfileSettingIds; /** * 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 */ var array<OnlineProfileSetting> DefaultSettings; /** Mappings for owner information */ var const array<IdToStringMapping> OwnerMappings; /** * Enum of difficulty profile values stored by the online service * Used with Profile ID PSI_GameDifficulty */ enum EProfileDifficultyOptions { PDO_Normal, PDO_Easy, PDO_Hard, // Only add to this list }; /** * Enum of controller sensitivity profile values stored by the online service * Used with Profile ID PSI_ControllerSensitivity */ enum EProfileControllerSensitivityOptions { PCSO_Medium, PCSO_Low, PCSO_High, // Only add to this list }; /** * Enum of team color preferences stored by the online service * Used with Profile ID PSI_PreferredColor1 & PSI_PreferredColor2 */ enum EProfilePreferredColorOptions { PPCO_None, PPCO_Black, PPCO_White, PPCO_Yellow, PPCO_Orange, PPCO_Pink, PPCO_Red, PPCO_Purple, PPCO_Blue, PPCO_Green, PPCO_Brown, PPCO_Silver, // Only add to this list }; /** * Enum of auto aim preferences stored by the online service * Used with Profile ID PSI_AutoAim */ enum EProfileAutoAimOptions { PAAO_Off, PAAO_On }; /** * Enum of auto center preferences stored by the online service * Used with Profile ID PSI_AutoCenter */ enum EProfileAutoCenterOptions { PACO_Off, PACO_On }; /** * Enum of movement stick preferences stored by the online service * Used with Profile ID PSI_MovementControl */ enum EProfileMovementControlOptions { PMCO_L_Thumbstick, PMCO_R_Thumbstick }; /** * Enum of player's car transmission preferences stored by the online service * Used with Profile ID PSI_RaceTransmission */ enum EProfileRaceTransmissionOptions { PRTO_Auto, PRTO_Manual }; /** * Enum of player's race camera preferences stored by the online service * Used with Profile ID PSI_RaceCameraLocation */ enum EProfileRaceCameraLocationOptions { PRCLO_Behind, PRCLO_Front, PRCLO_Inside }; /** * Enum of player's race brake control preferences stored by the online service * Used with Profile ID PSI_RaceCameraLocation */ enum EProfileRaceBrakeControlOptions { PRBCO_Trigger, PRBCO_Button }; /** * Enum of player's race gas control preferences stored by the online service * Used with Profile ID PSI_RaceAcceleratorControl */ enum EProfileRaceAcceleratorControlOptions { PRACO_Trigger, PRACO_Button }; /** * Enum of player's Y axis invert preferences stored by the online service * Used with Profile ID PSI_YInversion */ enum EProfileYInversionOptions { PYIO_Off, PYIO_On }; /** * Enum of player's X axis invert preferences stored by the online service * Used with Profile ID PSI_YInversion */ enum EProfileXInversionOptions { PXIO_Off, PXIO_On }; /** * Enum of player's omnidirectional evade preferences stored by the online service * Used with Profile ID OmniDirEvade */ enum EProfileOmniDirEvadeOptions { PODI_Off, PODI_On }; /** * Enum of player's vibration preferences stored by the online service * Used with Profile ID PSI_ControllerVibration */ enum EProfileControllerVibrationToggleOptions { PCVTO_Off, PCVTO_IgnoreThis, PCVTO_IgnoreThis2, PCVTO_On }; /** * Enum of player's voice through speakers preference stored by the online service * Used with Profile ID PSI_VoiceThruSpeakers */ enum EProfileVoiceThruSpeakersOptions { PVTSO_Off, PVTSO_On, PVTSO_Both }; /** * Searches for the profile setting by id and gets the default value index * * @param ProfileSettingId the id of the profile setting to return * @param DefaultId the out value of the default id * @param ListIndex the out value of the index where that value lies in the ValueMappings list * * @return true if the profile setting was found and retrieved the default id, false otherwise */ native function bool GetProfileSettingDefaultId(int ProfileSettingId,out int DefaultId, out int ListIndex); /** * Searches for the profile setting by id and gets the default value int * * @param ProfileSettingId the id of the profile setting to return the default of * @param Value the out value of the default setting * * @return true if the profile setting was found and retrieved the default int, false otherwise */ native function bool GetProfileSettingDefaultInt(int ProfileSettingId,out int DefaultInt); /** * Searches for the profile setting by id and gets the default value float * * @param ProfileSettingId the id of the profile setting to return the default of * @param Value the out value of the default setting * * @return true if the profile setting was found and retrieved the default float, false otherwise */ native function bool GetProfileSettingDefaultFloat(int ProfileSettingId,out float DefaultFloat); /** * Sets all of the profile settings to their default values */ native event SetToDefaults(); /** * Adds the version id to the read ids if it is not present */ native function AppendVersionToReadIds(); /** * Hooks to allow child classes to dynamically adjust available profile settings or mappings based on e.g. ini values. */ event ModifyAvailableProfileSettings(); defaultproperties { // This must be set by subclasses VersionNumber=-1 VersionSettingsId=PSI_ProfileVersionNum; // UI readable versions of the owners OwnerMappings(0)=(Id=OPPO_None) OwnerMappings(1)=(Id=OPPO_OnlineService) OwnerMappings(2)=(Id=OPPO_Game) // Meta data for displaying in the UI ProfileMappings(0)=(Id=PSI_ControllerVibration,Name="Controller Vibration",MappingType=PVMT_IdMapped,ValueMappings=((Id=PCVTO_On),(Id=PCVTO_Off))) ProfileMappings(1)=(Id=PSI_YInversion,Name="Invert Y",MappingType=PVMT_IdMapped,ValueMappings=((Id=PYIO_Off),(Id=PYIO_On))) ProfileMappings(2)=(Id=PSI_VoiceMuted,Name="Mute Voice",MappingType=PVMT_IdMapped,ValueMappings=((Id=0),(Id=1))) ProfileMappings(3)=(Id=PSI_VoiceThruSpeakers,Name="Voice Via Speakers",MappingType=PVMT_IdMapped,ValueMappings=((Id=PVTSO_Off),(Id=PVTSO_On),(Id=PVTSO_Both))) ProfileMappings(4)=(Id=PSI_VoiceVolume,Name="Voice Volume",MappingType=PVMT_RawValue) ProfileMappings(5)=(Id=PSI_GameDifficulty,Name="Difficulty Level",MappingType=PVMT_IdMapped,ValueMappings=((Id=PDO_Normal),(Id=PDO_Easy),(Id=PDO_Hard))) ProfileMappings(6)=(Id=PSI_ControllerSensitivity,Name="Controller Sensitivity",MappingType=PVMT_IdMapped,ValueMappings=((Id=PCSO_Medium),(Id=PCSO_Low),(Id=PCSO_High))) ProfileMappings(7)=(Id=PSI_PreferredColor1,Name="First Preferred Color",MappingType=PVMT_IdMapped,ValueMappings=((Id=PPCO_None),(Id=PPCO_Black),(Id=PPCO_White),(Id=PPCO_Yellow),(Id=PPCO_Orange),(Id=PPCO_Pink),(Id=PPCO_Red),(Id=PPCO_Purple),(Id=PPCO_Blue),(Id=PPCO_Green),(Id=PPCO_Brown),(Id=PPCO_Silver))) ProfileMappings(8)=(Id=PSI_PreferredColor2,Name="Second Preferred Color",MappingType=PVMT_IdMapped,ValueMappings=((Id=PPCO_None),(Id=PPCO_Black),(Id=PPCO_White),(Id=PPCO_Yellow),(Id=PPCO_Orange),(Id=PPCO_Pink),(Id=PPCO_Red),(Id=PPCO_Purple),(Id=PPCO_Blue),(Id=PPCO_Green),(Id=PPCO_Brown),(Id=PPCO_Silver))) ProfileMappings(9)=(Id=PSI_AutoAim,Name="Auto Aim",MappingType=PVMT_IdMapped,ValueMappings=((Id=PAAO_Off),(Id=PAAO_On))) ProfileMappings(10)=(Id=PSI_AutoCenter,Name="Auto Center",MappingType=PVMT_IdMapped,ValueMappings=((Id=PACO_Off),(Id=PACO_On))) ProfileMappings(11)=(Id=PSI_MovementControl,Name="Movement Control",MappingType=PVMT_IdMapped,ValueMappings=((Id=PMCO_L_Thumbstick),(Id=PMCO_R_Thumbstick))) ProfileMappings(12)=(Id=PSI_RaceTransmission,Name="Transmission Preference",MappingType=PVMT_IdMapped,ValueMappings=((Id=PRTO_Auto),(Id=PRTO_Manual))) ProfileMappings(13)=(Id=PSI_RaceCameraLocation,Name="Race Camera Preference",MappingType=PVMT_IdMapped,ValueMappings=((Id=PRCLO_Behind),(Id=PRCLO_Front),(Id=PRCLO_Inside))) ProfileMappings(14)=(Id=PSI_RaceBrakeControl,Name="Brake Preference",MappingType=PVMT_IdMapped,ValueMappings=((Id=PRBCO_Trigger),(Id=PRBCO_Button))) ProfileMappings(15)=(Id=PSI_RaceAcceleratorControl,Name="Accelerator Preference",MappingType=PVMT_IdMapped,ValueMappings=((Id=PRACO_Trigger),(Id=PRACO_Button))) } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |