Exemplo n.º 1
0
    public static void SendPBToSteam(FreshLevels.Type type, float speedruntime)
    {
        //Fail out, if:
        if (fa.dontConnectSteam)
        {
            return;
        }
        if (!SteamManager.Initialized)
        {
            return;
        }
        if (speedruntime < 2)
        {
            return;
        }                                        //less than 2 seconds is always impossible
        if (speedruntime < FreshLevels.GetImpossibleTimeForLevel(type))
        {
            return;
        }                                                                                  //time was impossible
        if (FreshLevels.NotALeaderboardLevel(type))
        {
            return;
        }                                                            //There are / should be no leaderboards for this level

        AddToQueue(type, speedruntime);
    }
Exemplo n.º 2
0
    public static void Qc_ReportLevelTime(FreshLevels.Type type, float levelTime, string ghostData)
    {
        if (fa.dontConnect3rdParty)
        {
            return;
        }
        if (fa.cheater)
        {
            return;
        }
        if (FreshLevels.NotALeaderboardLevel(type))
        {
            return;
        }                                                            //There are / should be no leaderboards for this level

        Debug.Log("Reported QC level time");
        FrRemoteData.Qc_ReportLevelTime("" + type, levelTime, ghostData, (data) =>
        {
            AddResult(data, Type.Generic);
        });
    }