Example #1
0
 // Token: 0x06000D20 RID: 3360 RVA: 0x00074E00 File Offset: 0x00073000
 private static bool GsMainSysIsStageTimeUploadOnce(int stage_id)
 {
     if (stage_id >= 21)
     {
         uint     index    = (uint)(stage_id - 21);
         SSpecial sspecial = SSpecial.CreateInstance();
         if (sspecial[(int)index].IsTimeUploadedOnce())
         {
             return(true);
         }
     }
     else
     {
         SStage sstage = SStage.CreateInstance();
         uint   index;
         if (stage_id >= 16)
         {
             index = 16U;
         }
         else
         {
             index = (uint)stage_id;
         }
         if (sstage[(int)index].IsTimeUploadedOnce())
         {
             return(true);
         }
     }
     return(false);
 }
Example #2
0
    private static bool GsMainSysIsStageGoalAsSuperSonic(int stage_id)
    {
        uint num = 0;

        if ((uint)stage_id > 20U)
        {
            num = 0U;
        }
        return(SStage.CreateInstance()[stage_id < 16 ? stage_id : 16].IsUseSuperSonicOnce());
    }
Example #3
0
 public void SaveData(BinaryWriter bw)
 {
     bw.Write(m_MaxScore);
     bw.Write(m_LastStage);
     //bw.Write(m_AccumulateScore);
     bw.Write(m_listStageScore.Count);
     for (int i = 0; i < m_listStageScore.Count; i++)
     {
         SStage kStage = m_listStageScore[i];
         bw.Write(kStage.m_Stage);
         bw.Write(kStage.m_Score);
     }
 }
Example #4
0
    private static bool GsMainSysIsStageSuperSonicClear(int stage_id)
    {
        uint num1 = 0;

        if ((uint)stage_id > 20U)
        {
            num1 = 0U;
        }
        SStage instance = SStage.CreateInstance();
        uint   num2     = stage_id < 16 ? (uint)stage_id : 16U;

        return(instance[(int)num2].GetHighScore(true) != 0 || instance[(int)num2].GetFastTime(true) != 0);
    }
Example #5
0
 private static bool GsMainSysIsStageTimeUploadOnce(int stage_id)
 {
     if (stage_id >= 21)
     {
         if (SSpecial.CreateInstance()[stage_id - 21].IsTimeUploadedOnce())
         {
             return(true);
         }
     }
     else if (SStage.CreateInstance()[stage_id < 16 ? stage_id : 16].IsTimeUploadedOnce())
     {
         return(true);
     }
     return(false);
 }
Example #6
0
 // Token: 0x06000D1C RID: 3356 RVA: 0x00074C54 File Offset: 0x00072E54
 private static bool GsMainSysIsStageSonicClear(int stage_id)
 {
     if (stage_id >= 21)
     {
         uint     index    = (uint)(stage_id - 21);
         SSpecial sspecial = SSpecial.CreateInstance();
         if (sspecial[(int)index].GetHighScore() != 1000000000U && sspecial[(int)index].IsGetEmerald())
         {
             return(true);
         }
         if (sspecial[(int)index].GetFastTime() != 36000U)
         {
             return(true);
         }
     }
     else
     {
         SStage sstage = SStage.CreateInstance();
         uint   index;
         if (stage_id >= 16)
         {
             index = 16U;
         }
         else
         {
             index = (uint)stage_id;
         }
         if (sstage[(int)index].GetHighScore(false) != 1000000000U)
         {
             return(true);
         }
         if (sstage[(int)index].GetHighScore(true) != 1000000000U)
         {
             return(true);
         }
         if (sstage[(int)index].GetFastTime(false) != 36000U)
         {
             return(true);
         }
         if (sstage[(int)index].GetFastTime(true) != 36000U)
         {
             return(true);
         }
     }
     return(false);
 }
Example #7
0
    // Token: 0x06000D1E RID: 3358 RVA: 0x00074D70 File Offset: 0x00072F70
    private static bool GsMainSysIsStageGoalAsSuperSonic(int stage_id)
    {
        if (stage_id > 20)
        {
        }
        SStage sstage = SStage.CreateInstance();
        uint   index;

        if (stage_id >= 16)
        {
            index = 16U;
        }
        else
        {
            index = (uint)stage_id;
        }
        return(sstage[(int)index].IsUseSuperSonicOnce());
    }
Example #8
0
    // Token: 0x06000D1D RID: 3357 RVA: 0x00074D18 File Offset: 0x00072F18
    private static bool GsMainSysIsStageSuperSonicClear(int stage_id)
    {
        if (stage_id > 20)
        {
        }
        SStage sstage = SStage.CreateInstance();
        uint   index;

        if (stage_id >= 16)
        {
            index = 16U;
        }
        else
        {
            index = (uint)stage_id;
        }
        return(sstage[(int)index].GetHighScore(true) != 1000000000U || sstage[(int)index].GetFastTime(true) != 36000U);
    }
Example #9
0
    public void LoadData(BinaryReader br)
    {
        m_listStageScore.Clear();

        m_MaxScore  = br.ReadSingle();
        m_LastStage = br.ReadInt32();
        //m_AccumulateScore = br.ReadInt32();
        int nCount = br.ReadInt32();

        for (int i = 0; i < nCount; i++)
        {
            SStage kStage = new SStage();
            kStage.m_Stage = br.ReadInt32();
            kStage.m_Score = br.ReadInt32();

            m_listStageScore.Add(kStage);
        }
    }
Example #10
0
    public void SetStageScore(int nStage, int nScore)
    {
        SetMaxScore(nScore);
        //AddAccumulateScore(nScore);

        if (nStage > m_listStageScore.Count)
        {
            SStage kStage = new SStage(nStage, nScore);
            m_listStageScore.Add(kStage);
        }
        else
        {
            SStage kStage = m_listStageScore[nStage - 1];
            kStage.m_Score = nScore;

            if (kStage.m_Stage != nStage)
            {
                Debug.LogError("kStage.m_Stage != nScore   !!!!!");
            }
        }
    }
Example #11
0
 private static bool GsMainSysIsStageClear(int stage_id)
 {
     if (stage_id >= 21)
     {
         uint     num      = (uint)(stage_id - 21);
         SSpecial instance = SSpecial.CreateInstance();
         if (instance[(int)num].GetHighScore() != 0 && instance[(int)num].IsGetEmerald() || instance[(int)num].GetFastTime() != 0)
         {
             return(true);
         }
     }
     else
     {
         SStage instance = SStage.CreateInstance();
         uint   num      = stage_id < 16 ? (uint)stage_id : 16U;
         if (instance[(int)num].GetHighScore(false) != 0 || instance[(int)num].GetHighScore(true) != 0 || (instance[(int)num].GetFastTime(false) != 0 || instance[(int)num].GetFastTime(true) != 0))
         {
             return(true);
         }
     }
     return(false);
 }
    // Token: 0x060009DA RID: 2522 RVA: 0x000579E8 File Offset: 0x00055BE8
    private static bool dmCmnBackupMathCompare()
    {
        AppMain.GSS_MAIN_SYS_INFO gss_MAIN_SYS_INFO = AppMain.GsGetMainSysInfo();
        if (gss_MAIN_SYS_INFO.is_save_run == 0U)
        {
            return(true);
        }
        SSystem  ssystem  = SSystem.CreateInstance();
        SStage   sstage   = SStage.CreateInstance();
        SSpecial sspecial = SSpecial.CreateInstance();
        SOption  soption  = SOption.CreateInstance();
        SSystem  system   = gss_MAIN_SYS_INFO.cmp_backup.GetSystem();
        SStage   sstage2  = gss_MAIN_SYS_INFO.cmp_backup.GetStage();
        SSpecial special  = gss_MAIN_SYS_INFO.cmp_backup.GetSpecial();
        SOption  option   = gss_MAIN_SYS_INFO.cmp_backup.GetOption();

        if (ssystem.GetPlayerStock() != system.GetPlayerStock())
        {
            return(false);
        }
        if (ssystem.GetKilled() != system.GetKilled())
        {
            return(false);
        }
        if (ssystem.GetClearCount() != system.GetClearCount())
        {
            return(false);
        }
        for (int i = 0; i < 7; i++)
        {
            SSystem.EAnnounce index = (SSystem.EAnnounce)i;
            if (ssystem.IsAnnounce(index) != system.IsAnnounce(index))
            {
                return(false);
            }
        }
        return(AppMain.memcmp(sstage2.getData(), sstage.getData()) == 0 && AppMain.memcmp(special.getData(), sspecial.getData()) == 0 && AppMain.memcmp(option.getData(), soption.getData()) == 0);
    }