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 |
/** * Copyright 1998-2011 Epic Games, Inc. All Rights Reserved. */ /** * Stats class that holds the read request definitions and the resulting data */ class OnlineStatsRead extends OnlineStats native abstract; /** A single instance of a stat in a row */ struct native OnlineStatsColumn { /** The ordinal value of the column */ var int ColumnNo; /** The value of the stat for this column */ var SettingsData StatValue; }; /** Holds a single player's set of data for this stats view */ struct native OnlineStatsRow { /** The unique player id of the player these stats are for */ var const UniqueNetId PlayerId; /** The rank of the player in this stats view */ var const SettingsData Rank; /** Player's online nickname */ var const string NickName; /** The set of columns (stat instances) for this row */ var array<OnlineStatsColumn> Columns; }; /** The unique id of the view that these stats are from */ var int ViewId; /** The column id to use for sorting rank */ var const int SortColumnId; /** The columns to read in the view we are interested in */ var const array<int> ColumnIds; /** The total number of rows in the view */ var const int TotalRowsInView; /** The rows of data returned by the online service */ var array<OnlineStatsRow> Rows; /** Provides human readable values for column ids */ struct native ColumnMetaData { /** Id for the given string */ var const int Id; /** Human readable form of the Id */ var const name Name; /** The name displayed in column headings in the UI */ var localized string ColumnName; }; /** Provides metadata for column ids so that we can present their human readable form */ var const array<ColumnMetaData> ColumnMappings; /** The name of the view in human readable terms */ var const string ViewName; /** An optional title id to specify when reading stats (zero uses the default for the exe) */ var const int TitleId; /** * This event is called post read complete so that the stats object has a chance * synthesize new stats from returned data, e.g. ratios, averages, etc. */ event OnReadComplete(); /** * Searches the stat rows for the player and then finds the stat value from the specified column within that row * * @param PlayerId the player to search for * @param StatColumnNo the column number to look up * @param StatValue the out value that is assigned the stat * * @return whether the value was found for the player/column or not */ native function bool GetIntStatValueForPlayer(UniqueNetId PlayerId,int StatColumnNo,out int StatValue); /** * Searches the stat rows for the player and then sets the stat value from the specified column within that row * * @param PlayerId the player to search for * @param StatColumnNo the column number to look up * @param StatValue the value to set that column to * * @return whether the value was found for the player/column or not */ native function bool SetIntStatValueForPlayer(UniqueNetId PlayerId,int StatColumnNo,int StatValue); /** * Searches the stat rows for the player and then finds the stat value from the specified column within that row * * @param PlayerId the player to search for * @param StatColumnNo the column number to look up * @param StatValue the out value that is assigned the stat * * @return whether the value was found for the player/column or not */ native function bool GetFloatStatValueForPlayer(UniqueNetId PlayerId,int StatColumnNo,out float StatValue); /** * Searches the stat rows for the player and then sets the stat value from the specified column within that row * * @param PlayerId the player to search for * @param StatColumnNo the column number to look up * @param StatValue the value to set that column to * * @return whether the value was found for the player/column or not */ native function bool SetFloatStatValueForPlayer(UniqueNetId PlayerId,int StatColumnNo,float StatValue); /** * Searches the stat rows for the player and then finds the stat value from the specified column within that row * * @param PlayerId the player to search for * @param StatColumnNo the column number to look up * @param StatValue the out value that is assigned the stat in string form * * @return whether the value was found for the player/column or not */ native function bool GetStatValueForPlayerAsString(UniqueNetId PlayerId,int StatColumnNo,out String StatValue); /** * Searches the stat rows for the player and then returns whether or not the stat is 0. Only works on float, double, int, int64, and empty stat types. Others return FALSE. * * @param PlayerId the player to search for * @param StatColumnNo the column number to look up * * @return whether the value is 0 (or equivalent) */ native function bool IsStatZero(UniqueNetId PlayerId,int StatColumnNo); /** * Adds a player to the results if not present * * @param PlayerName the name to place in the data * @param PlayerId the player to search for */ native function AddPlayer(string PlayerName,UniqueNetId PlayerId); /** * Searches the rows for the player and returns their rank on the leaderboard * * @param PlayerId the player to search for * * @return the rank for the player */ native function int GetRankForPlayer(UniqueNetId PlayerId); |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |