/// <summary> /// <para> Legacy functions</para> /// <para> used by only a few games to track usage events</para> /// </summary> public static void TrackAppUsageEvent(GameId gameId, int eAppUsageEvent, string ExtraInfo = "") { InteropHelp.TestIfAvailableClient(); using (var ExtraInfo2 = new InteropHelp.UTF8StringHandle(ExtraInfo)) { NativeMethods.ISteamUser_TrackAppUsageEvent(gameId, eAppUsageEvent, ExtraInfo2); } }
internal void TrackAppUsageEvent(GameId gameID, int eAppUsageEvent, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringToNative))] string pchExtraInfo) { _TrackAppUsageEvent(Self, gameID, eAppUsageEvent, pchExtraInfo); }
private static extern void _TrackAppUsageEvent(IntPtr self, GameId gameID, int eAppUsageEvent, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringToNative))] string pchExtraInfo);
internal void TrackAppUsageEvent(GameId gameID, int eAppUsageEvent, string pchExtraInfo) { _TrackAppUsageEvent(Self, gameID, eAppUsageEvent, pchExtraInfo); }