Steamworks.SteamUserStats.GetMostAchievedAchievementInfo C# (CSharp) Method

GetMostAchievedAchievementInfo() public static method

Get the info on the most achieved achievement for the game, returns an iterator index you can use to fetch

the next most achieved afterwards. Will return -1 if there is no data on achievement

percentages (ie, you haven't called RequestGlobalAchievementPercentages and waited on the callback).

public static GetMostAchievedAchievementInfo ( string &pchName, uint unNameBufLen, float &pflPercent, bool &pbAchieved ) : int
pchName string
unNameBufLen uint
pflPercent float
pbAchieved bool
return int
		public static int GetMostAchievedAchievementInfo(out string pchName, uint unNameBufLen, out float pflPercent, out bool pbAchieved) {
			InteropHelp.TestIfAvailableClient();
			IntPtr pchName2 = Marshal.AllocHGlobal((int)unNameBufLen);
			int ret = NativeMethods.ISteamUserStats_GetMostAchievedAchievementInfo(pchName2, unNameBufLen, out pflPercent, out pbAchieved);
			pchName = ret != -1 ? InteropHelp.PtrToStringUTF8(pchName2) : null;
			Marshal.FreeHGlobal(pchName2);
			return ret;
		}