Example #1
0
 void OnWorkshopError(SteamworksError error, DetailedResult result)
 {
     if (onError != null)
     {
         onError(error, result);
     }
 }
Example #2
0
            bool AssertError()
            {
                SteamworksError error = NativeMethods.Workshop_GetError(pointer);

                if (error != SteamworksError.ERR_NO_ERROR)
                {
                    OnWorkshopError(error, NativeMethods.Workshop_GetErrorDetails(pointer));
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
Example #3
0
            bool AssertError()
            {
                SteamworksError error = NativeMethods.Leaderboard_GetError(pointer);

                if (error != SteamworksError.ERR_NO_ERROR && onError != null)
                {
                    onError(error);
                    return(true);
                }
                else
                {
                    return(false);
                }
            }