Files
2025-06-17 16:38:11 +03:00

14 lines
475 B
C#

using System.Runtime.CompilerServices;
using Barotrauma.Debugging;
using Microsoft.Xna.Framework;
namespace EosInterfacePrivate;
public static class ResultExtension
{
public static T FailAndLogUnhandledError<T>(this Epic.OnlineServices.Result result, T unknown, [CallerMemberName] string caller = null)
{
DebugConsoleCore.NewMessage($"Epic Online Services Result \"{result}\" was not handled by \"{caller}\".", Color.Red);
return unknown;
}
}