Beispiel #1
0
    private static void gmStartDemo2DActionCreate(AppMain.GMS_START_DEMO_WORK work)
    {
        AppMain.GMS_START_DEMO_DATA info        = AppMain.gmStartDemoDataGetInfo();
        AppMain.GSS_MAIN_SYS_INFO   mainSysInfo = AppMain.GsGetMainSysInfo();
        int language = AppMain.GsEnvGetLanguage();

        for (int index1 = 0; 4 > index1; ++index1)
        {
            int index2 = AppMain.g_gm_start_demo_data_type_cmn[index1];
            AppMain.GMS_COCKPIT_2D_WORK gmsCockpit2DWork = AppMain.gmStartDemo2DActionCreate(AppMain.g_gm_start_demo_action_name_cmn[index1], info.aos_texture[index2], AppMain.g_gm_start_demo_data_ama_id[language][index2], AppMain.g_gm_start_demo_action_id_cmn[index1], AppMain.g_gm_start_demo_action_node_flag_cmn[index1]);
            if (gmsCockpit2DWork != null)
            {
                gmsCockpit2DWork.obj_2d.speed = 0.0f;
            }
            work.action_obj_work_cmn[index1] = gmsCockpit2DWork;
        }
        int index3 = AppMain.g_gm_gamedat_zone_type_tbl[(int)mainSysInfo.stage_id];

        for (int index1 = 0; 1 > index1; ++index1)
        {
            int index2 = AppMain.g_gm_start_demo_data_type_zone[index1];
            AppMain.GMS_COCKPIT_2D_WORK gmsCockpit2DWork = AppMain.gmStartDemo2DActionCreate(AppMain.g_gm_start_demo_action_name_zone[index1], info.aos_texture[index2], AppMain.g_gm_start_demo_data_ama_id[language][index2], AppMain.g_gm_start_demo_action_id_zone[index3][index1].Value, AppMain.g_gm_start_demo_action_node_flag_zone[index1]);
            if (gmsCockpit2DWork != null)
            {
                gmsCockpit2DWork.obj_2d.speed = 0.0f;
            }
            work.action_obj_work_zone[index1] = gmsCockpit2DWork;
        }
        int index4 = AppMain.g_gm_start_demo_act_no[(int)mainSysInfo.stage_id];

        if (index3 != 4)
        {
            for (int index1 = 0; 2 > index1; ++index1)
            {
                int index2 = AppMain.g_gm_start_demo_data_type_act[index1];
                AppMain.GMS_COCKPIT_2D_WORK gmsCockpit2DWork = AppMain.gmStartDemo2DActionCreate(AppMain.g_gm_start_demo_action_name_act[index1], info.aos_texture[index2], AppMain.g_gm_start_demo_data_ama_id[language][index2], AppMain.g_gm_start_demo_action_id_act[index4][index1], AppMain.g_gm_start_demo_action_node_flag_act[index1]);
                if (gmsCockpit2DWork != null)
                {
                    gmsCockpit2DWork.obj_2d.speed = 0.0f;
                }
                work.action_obj_work_act[index1] = gmsCockpit2DWork;
            }
        }
        int index5 = 1;

        AppMain.GMS_COCKPIT_2D_WORK gmsCockpit2DWork1 = AppMain.gmStartDemo2DActionCreate(AppMain.g_gm_start_demo_action_name_message, info.aos_texture[index5], AppMain.g_gm_start_demo_data_ama_id[language][index5], AppMain.g_gm_start_demo_action_id_message[index3][index4], 1);
        if (gmsCockpit2DWork1 != null)
        {
            gmsCockpit2DWork1.obj_2d.speed = 0.0f;
        }
        work.action_obj_work_message = gmsCockpit2DWork1;
    }
    // Token: 0x060009D5 RID: 2517 RVA: 0x000578A8 File Offset: 0x00055AA8
    private static bool DmCmnBackupIsLoadSuccessed()
    {
        AppMain.GSS_MAIN_SYS_INFO gss_MAIN_SYS_INFO = AppMain.GsGetMainSysInfo();
        bool result;

        if (AppMain.AoStorageLoadIsSuccessed())
        {
            gss_MAIN_SYS_INFO.is_save_run = 1U;
            result = true;
        }
        else
        {
            result = false;
        }
        return(result);
    }
Beispiel #3
0
    private static bool DmCmnBackupIsLoadSuccessed()
    {
        AppMain.GSS_MAIN_SYS_INFO mainSysInfo = AppMain.GsGetMainSysInfo();
        bool flag;

        if (XmlStorage.SaveSuccess())
        {
            mainSysInfo.is_save_run = 1U;
            flag = true;
        }
        else
        {
            flag = false;
        }
        return(flag);
    }
    // Token: 0x06000EF3 RID: 3827 RVA: 0x00084140 File Offset: 0x00082340
    private static void DmSoundSetVolumeBGM(float volume)
    {
        AppMain.GSS_MAIN_SYS_INFO gss_MAIN_SYS_INFO = AppMain.GsGetMainSysInfo();
        float num;

        if (volume != 0f)
        {
            num = volume / 10f;
        }
        else
        {
            num = 0f;
        }
        gss_MAIN_SYS_INFO.bgm_volume = num;
        GsSound.SetVolume(0, num);
    }
 // Token: 0x06000FBA RID: 4026 RVA: 0x000890C4 File Offset: 0x000872C4
 private static bool hgTrophyCheckAcquireStage11ClearIn1Min()
 {
     AppMain.GSS_MAIN_SYS_INFO gss_MAIN_SYS_INFO = AppMain.GsGetMainSysInfo();
     AppMain.MTM_ASSERT(AppMain.SyGetEvtInfo().cur_evt_id == 6);
     if (gss_MAIN_SYS_INFO.stage_id == 0)
     {
         if (gss_MAIN_SYS_INFO.game_mode != 1 && (gss_MAIN_SYS_INFO.game_flag & 256U) != 0U)
         {
             return(false);
         }
         ushort num  = 0;
         ushort num2 = 0;
         ushort num3 = 0;
         AppMain.AkUtilFrame60ToTime(AppMain.hgTrophyGetClearTime(), ref num, ref num2, ref num3);
         if (num == 0 || (num == 1 && num2 == 0 && num3 == 0))
         {
             return(true);
         }
     }
     return(false);
 }
Beispiel #6
0
 private static void HgTrophyIncEnemyKillCount(AppMain.OBS_OBJECT_WORK ene_obj)
 {
     AppMain.GSS_MAIN_SYS_INFO mainSysInfo = AppMain.GsGetMainSysInfo();
     if (AppMain.hgTrophyIsPlayDemo() || ene_obj.obj_type != (ushort)2)
     {
         return;
     }
     AppMain.GMS_ENEMY_COM_WORK gmsEnemyComWork = (AppMain.GMS_ENEMY_COM_WORK)ene_obj;
     if (gmsEnemyComWork.eve_rec == null || gmsEnemyComWork.eve_rec.id != (ushort)0 && gmsEnemyComWork.eve_rec.id <= (ushort)0 || gmsEnemyComWork.eve_rec.id >= (ushort)39)
     {
         return;
     }
     if (mainSysInfo.ene_kill_count < 1000U)
     {
         ++mainSysInfo.ene_kill_count;
     }
     else
     {
         mainSysInfo.ene_kill_count = 1000U;
     }
     AppMain.HgTrophyTryAcquisition(2);
 }
    // 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);
    }
Beispiel #8
0
    // Token: 0x06000D77 RID: 3447 RVA: 0x00075CDC File Offset: 0x00073EDC
    public static bool GmStartMsgIsExe()
    {
        bool flag = false;

        AppMain.GSS_MAIN_SYS_INFO gss_MAIN_SYS_INFO = AppMain.GsGetMainSysInfo();
        if ((AppMain.g_gs_main_sys_info.game_flag & 4U) == 0U)
        {
            SSystem ssystem  = SSystem.CreateInstance();
            ushort  stage_id = gss_MAIN_SYS_INFO.stage_id;
            if (stage_id != 5)
            {
                if (stage_id != 9)
                {
                    switch (stage_id)
                    {
                    case 21:
                        if (!AppMain.GsMainSysIsStageClear(21))
                        {
                            flag = true;
                        }
                        break;

                    case 22:
                    case 23:
                    case 24:
                    case 25:
                    case 26:
                    case 27:
                        break;

                    default:
                        goto IL_11D;
                    }
                    if (!flag)
                    {
                        if ((512U & gss_MAIN_SYS_INFO.game_flag) != 0U)
                        {
                            if (!ssystem.IsAnnounce(SSystem.EAnnounce.SpecialStageFlick))
                            {
                                flag = true;
                            }
                        }
                        else if (!ssystem.IsAnnounce(SSystem.EAnnounce.SpecialStageTilt))
                        {
                            flag = true;
                        }
                    }
                    if (flag)
                    {
                        if ((512U & gss_MAIN_SYS_INFO.game_flag) != 0U)
                        {
                            ssystem.SetAnnounce(SSystem.EAnnounce.SpecialStageFlick, true);
                        }
                        else
                        {
                            ssystem.SetAnnounce(SSystem.EAnnounce.SpecialStageTilt, true);
                        }
                    }
                }
                else
                {
                    if (!AppMain.GsMainSysIsStageClear(9))
                    {
                        flag = true;
                    }
                    else if ((512U & gss_MAIN_SYS_INFO.game_flag) != 0U)
                    {
                        if (!ssystem.IsAnnounce(SSystem.EAnnounce.TruckFlick))
                        {
                            flag = true;
                        }
                    }
                    else if (!ssystem.IsAnnounce(SSystem.EAnnounce.TruckTilt))
                    {
                        flag = true;
                    }
                    if (flag)
                    {
                        if ((512U & gss_MAIN_SYS_INFO.game_flag) != 0U)
                        {
                            ssystem.SetAnnounce(SSystem.EAnnounce.TruckFlick, true);
                        }
                        else
                        {
                            ssystem.SetAnnounce(SSystem.EAnnounce.TruckTilt, true);
                        }
                    }
                }
            }
            else
            {
                flag = !AppMain.GsMainSysIsStageClear(5);
            }
        }
IL_11D:
        if (flag)
        {
            AppMain.GmMainClearSuspendedPause();
        }
        return(flag);
    }
Beispiel #9
0
 private static bool hgTrophyCheckAcquireStageFClearAllEmeralds()
 {
     AppMain.MTM_ASSERT(AppMain.SyGetEvtInfo().cur_evt_id == (short)6);
     AppMain.GSS_MAIN_SYS_INFO mainSysInfo = AppMain.GsGetMainSysInfo();
     return(mainSysInfo.stage_id == (ushort)16 && ((int)AppMain.GsGetMainSysInfo().game_flag & 32) != 0 && mainSysInfo.final_clear_count >= 2U);
 }
 // Token: 0x06000FBD RID: 4029 RVA: 0x000891D8 File Offset: 0x000873D8
 private static bool hgTrophyCheckAcquireStageFClearAllEmeralds()
 {
     AppMain.MTM_ASSERT(AppMain.SyGetEvtInfo().cur_evt_id == 6);
     AppMain.GSS_MAIN_SYS_INFO gss_MAIN_SYS_INFO = AppMain.GsGetMainSysInfo();
     return(gss_MAIN_SYS_INFO.stage_id == 16 && (AppMain.GsGetMainSysInfo().game_flag & 32U) != 0U && gss_MAIN_SYS_INFO.final_clear_count >= 2U);
 }
Beispiel #11
0
    // Token: 0x06000A9B RID: 2715 RVA: 0x0005D504 File Offset: 0x0005B704
    public static void GmStartMsgInit()
    {
        int num = AppMain.GsEnvGetLanguage();

        AppMain.GSS_MAIN_SYS_INFO gss_MAIN_SYS_INFO = AppMain.GsGetMainSysInfo();
        AppMain.g_gm_main_system.game_flag |= 16777216U;
        AppMain.gm_start_msg_end_state      = false;
        AppMain.gm_start_msg_tcb            = AppMain.MTM_TASK_MAKE_TCB(AppMain.gmStartMsgMain, AppMain.gmStartMsgDest, 0U, 3, 18502U, 5, () => new AppMain.GMS_SMSG_MGR_WORK(), "GM_S_MSG_MGR");
        AppMain.GMS_SMSG_MGR_WORK gms_SMSG_MGR_WORK = (AppMain.GMS_SMSG_MGR_WORK)AppMain.gm_start_msg_tcb.work;
        gms_SMSG_MGR_WORK.Clear();
        AppMain.ObjDrawSetNNCommandStateTbl(16U, 13U, true);
        AppMain.ObjDrawSetNNCommandStateTbl(17U, 14U, true);
        AppMain.g_obj.ppPost = AppMain.gmStartMsgObjPost;
        ushort stage_id = AppMain.g_gs_main_sys_info.stage_id;

        if (stage_id != 5)
        {
            if (stage_id == 9)
            {
                gms_SMSG_MGR_WORK.msg_type = 1;
                goto IL_10B;
            }
            switch (stage_id)
            {
            case 21:
            case 22:
            case 23:
            case 24:
            case 25:
            case 26:
            case 27:
                gms_SMSG_MGR_WORK.msg_type = 2;
                goto IL_10B;
            }
        }
        gms_SMSG_MGR_WORK.msg_type = 0;
IL_10B:
        AMS_AMB_HEADER ams_AMB_HEADER = AppMain.GmGameDatGetGimmickData(991);

        AppMain.NNS_TEXLIST texlist = AppMain.AoTexGetTexList(AppMain.gm_start_msg_aos_tex[0]);
        for (int i = 0; i < ( int )AppMain.gm_start_msg_ama_act_num_tbl[gms_SMSG_MGR_WORK.msg_type]; i++)
        {
            gms_SMSG_MGR_WORK.ama_2d_work[i] = (AppMain.GMS_SMSG_2D_OBJ_WORK)AppMain.OBM_OBJECT_TASK_DETAIL_INIT(18512, 5, 0, 3, () => new AppMain.GMS_SMSG_2D_OBJ_WORK(), "GM_SMSG");
            uint num2 = (uint)i;
            if ((512U & gss_MAIN_SYS_INFO.game_flag) != 0U)
            {
                switch (gms_SMSG_MGR_WORK.msg_type)
                {
                case 1:
                    if (num2 == 0U)
                    {
                        num2 = 2U;
                    }
                    break;

                case 2:
                    if (num2 == 0U)
                    {
                        num2 = 2U;
                    }
                    break;
                }
            }
            AppMain.ObjObjectAction2dAMALoadSetTexlist(gms_SMSG_MGR_WORK.ama_2d_work[i].obj_work, gms_SMSG_MGR_WORK.ama_2d_work[i].obj_2d, null, null, num * 2, ams_AMB_HEADER, texlist, num2, 0);
            gms_SMSG_MGR_WORK.ama_2d_work[i].obj_work.ppOut      = null;
            gms_SMSG_MGR_WORK.ama_2d_work[i].obj_work.ppFunc     = AppMain.gmStartMsgObjMain;
            gms_SMSG_MGR_WORK.ama_2d_work[i].obj_work.disp_flag |= 32U;
            gms_SMSG_MGR_WORK.ama_2d_work[i].obj_work.flag      |= 18U;
            gms_SMSG_MGR_WORK.ama_2d_work[i].obj_work.move_flag |= 8448U;
            gms_SMSG_MGR_WORK.ama_2d_work[i].obj_work.disp_flag |= 1048960U;
            gms_SMSG_MGR_WORK.ama_2d_work[i].obj_work.pos.x      = AppMain.gm_start_msg_ama_act_pos_tbl[gms_SMSG_MGR_WORK.msg_type][num][i][0];
            gms_SMSG_MGR_WORK.ama_2d_work[i].obj_work.pos.y      = AppMain.gm_start_msg_ama_act_pos_tbl[gms_SMSG_MGR_WORK.msg_type][num][i][1];
            if (i == 0)
            {
                gms_SMSG_MGR_WORK.ama_2d_work[i].obj_work.scale.x = AppMain.GMD_SMSG_ACT_SCALE;
                gms_SMSG_MGR_WORK.ama_2d_work[i].obj_work.scale.y = AppMain.GMD_SMSG_ACT_SCALE;
            }
        }
        for (int i = 0; i < AppMain.GMD_SMSG_AMA_ACT_ACTION_MAX; i++)
        {
            int num3 = AppMain.gm_start_msg_body_act_id_table[gms_SMSG_MGR_WORK.msg_type][i];
            if ((512U & gss_MAIN_SYS_INFO.game_flag) == 0U)
            {
                int num4 = num3;
                if (num4 != -1)
                {
                    switch (num4)
                    {
                    case 4:
                    case 5:
                        goto IL_366;

                    case 7:
                        num3 = 0;
                        goto IL_366;
                    }
                    num3 = -1;
                }
            }
IL_366:
            if (num3 < 0)
            {
                gms_SMSG_MGR_WORK.ama_2d_work_act[i] = null;
            }
            else
            {
                gms_SMSG_MGR_WORK.ama_2d_work_act[i] = (AppMain.GMS_SMSG_2D_OBJ_WORK)AppMain.OBM_OBJECT_TASK_DETAIL_INIT(18512, 5, 0, 3, () => new AppMain.GMS_SMSG_2D_OBJ_WORK(), "GM_SMSG");
                texlist = AppMain.AoTexGetTexList(AppMain.gm_start_msg_aos_tex[2]);
                AppMain.ObjObjectAction2dAMALoadSetTexlist(gms_SMSG_MGR_WORK.ama_2d_work_act[i].obj_work, gms_SMSG_MGR_WORK.ama_2d_work_act[i].obj_2d, null, null, ams_AMB_HEADER.file_num - 2, ams_AMB_HEADER, texlist, ( uint )num3, 0);
                gms_SMSG_MGR_WORK.ama_2d_work_act[i].obj_work.ppOut      = null;
                gms_SMSG_MGR_WORK.ama_2d_work_act[i].obj_work.ppFunc     = AppMain.gmStartMsgObjMain;
                gms_SMSG_MGR_WORK.ama_2d_work_act[i].obj_work.disp_flag |= 32U;
                gms_SMSG_MGR_WORK.ama_2d_work_act[i].obj_work.flag      |= 18U;
                gms_SMSG_MGR_WORK.ama_2d_work_act[i].obj_work.move_flag |= 8448U;
                gms_SMSG_MGR_WORK.ama_2d_work_act[i].obj_work.disp_flag |= 1048960U;
            }
        }
        gms_SMSG_MGR_WORK.func = AppMain.gmStartMsgMain_StartWait;
        AppMain.gmStartMsgMain_StartWait(gms_SMSG_MGR_WORK);
    }
Beispiel #12
0
    public static bool GmStartMsgIsExe()
    {
        bool flag = false;

        AppMain.GSS_MAIN_SYS_INFO mainSysInfo = AppMain.GsGetMainSysInfo();
        if (((int)AppMain.g_gs_main_sys_info.game_flag & 4) == 0)
        {
            SSystem instance = SSystem.CreateInstance();
            switch (mainSysInfo.stage_id)
            {
            case 5:
                flag = !AppMain.GsMainSysIsStageClear(5);
                break;

            case 9:
                if (!AppMain.GsMainSysIsStageClear(9))
                {
                    flag = true;
                }
                else if ((512 & (int)mainSysInfo.game_flag) != 0)
                {
                    if (!instance.IsAnnounce(SSystem.EAnnounce.TruckFlick))
                    {
                        flag = true;
                    }
                }
                else if (!instance.IsAnnounce(SSystem.EAnnounce.TruckTilt))
                {
                    flag = true;
                }
                if (flag)
                {
                    if ((512 & (int)mainSysInfo.game_flag) != 0)
                    {
                        instance.SetAnnounce(SSystem.EAnnounce.TruckFlick, true);
                        break;
                    }
                    instance.SetAnnounce(SSystem.EAnnounce.TruckTilt, true);
                    break;
                }
                break;

            case 21:
                if (!AppMain.GsMainSysIsStageClear(21))
                {
                    flag = true;
                    goto case 22;
                }
                else
                {
                    goto case 22;
                }

            case 22:
            case 23:
            case 24:
            case 25:
            case 26:
            case 27:
                if (!flag)
                {
                    if ((512 & (int)mainSysInfo.game_flag) != 0)
                    {
                        if (!instance.IsAnnounce(SSystem.EAnnounce.SpecialStageFlick))
                        {
                            flag = true;
                        }
                    }
                    else if (!instance.IsAnnounce(SSystem.EAnnounce.SpecialStageTilt))
                    {
                        flag = true;
                    }
                }
                if (flag)
                {
                    if ((512 & (int)mainSysInfo.game_flag) != 0)
                    {
                        instance.SetAnnounce(SSystem.EAnnounce.SpecialStageFlick, true);
                        break;
                    }
                    instance.SetAnnounce(SSystem.EAnnounce.SpecialStageTilt, true);
                    break;
                }
                break;
            }
        }
        if (flag)
        {
            AppMain.GmMainClearSuspendedPause();
        }
        return(flag);
    }
Beispiel #13
0
    public static void GmStartMsgInit()
    {
        int language = AppMain.GsEnvGetLanguage();

        AppMain.GSS_MAIN_SYS_INFO mainSysInfo = AppMain.GsGetMainSysInfo();
        AppMain.g_gm_main_system.game_flag |= 16777216U;
        AppMain.gm_start_msg_end_state      = false;
        AppMain.gm_start_msg_tcb            = AppMain.MTM_TASK_MAKE_TCB(new AppMain.GSF_TASK_PROCEDURE(AppMain.gmStartMsgMain), new AppMain.GSF_TASK_PROCEDURE(AppMain.gmStartMsgDest), 0U, (ushort)3, 18502U, 5, (AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_SMSG_MGR_WORK()), "GM_S_MSG_MGR");
        AppMain.GMS_SMSG_MGR_WORK work = (AppMain.GMS_SMSG_MGR_WORK)AppMain.gm_start_msg_tcb.work;
        work.Clear();
        AppMain.ObjDrawSetNNCommandStateTbl(16U, 13U, true);
        AppMain.ObjDrawSetNNCommandStateTbl(17U, 14U, true);
        AppMain.g_obj.ppPost = new AppMain.OBJECT_Delegate(AppMain.gmStartMsgObjPost);
        switch (AppMain.g_gs_main_sys_info.stage_id)
        {
        case 9:
            work.msg_type = 1;
            break;

        case 21:
        case 22:
        case 23:
        case 24:
        case 25:
        case 26:
        case 27:
            work.msg_type = 2;
            break;

        default:
            work.msg_type = 0;
            break;
        }
        AppMain.AMS_AMB_HEADER gimmickData = AppMain.GmGameDatGetGimmickData(991);
        AppMain.NNS_TEXLIST    texList1    = AppMain.AoTexGetTexList(AppMain.gm_start_msg_aos_tex[0]);
        for (int index = 0; index < (int)AppMain.gm_start_msg_ama_act_num_tbl[work.msg_type]; ++index)
        {
            work.ama_2d_work[index] = (AppMain.GMS_SMSG_2D_OBJ_WORK)AppMain.OBM_OBJECT_TASK_DETAIL_INIT((ushort)18512, (byte)5, (byte)0, (byte)3, (AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_SMSG_2D_OBJ_WORK()), "GM_SMSG");
            uint id = (uint)index;
            if ((512 & (int)mainSysInfo.game_flag) != 0)
            {
                switch (work.msg_type)
                {
                case 1:
                    if (id == 0U)
                    {
                        id = 2U;
                        break;
                    }
                    break;

                case 2:
                    if (id == 0U)
                    {
                        id = 2U;
                        break;
                    }
                    break;
                }
            }
            AppMain.ObjObjectAction2dAMALoadSetTexlist(work.ama_2d_work[index].obj_work, work.ama_2d_work[index].obj_2d, (AppMain.OBS_DATA_WORK)null, (string)null, language * 2, gimmickData, texList1, id, 0);
            work.ama_2d_work[index].obj_work.ppOut      = (AppMain.MPP_VOID_OBS_OBJECT_WORK)null;
            work.ama_2d_work[index].obj_work.ppFunc     = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmStartMsgObjMain);
            work.ama_2d_work[index].obj_work.disp_flag |= 32U;
            work.ama_2d_work[index].obj_work.flag      |= 18U;
            work.ama_2d_work[index].obj_work.move_flag |= 8448U;
            work.ama_2d_work[index].obj_work.disp_flag |= 1048960U;
            work.ama_2d_work[index].obj_work.pos.x      = AppMain.gm_start_msg_ama_act_pos_tbl[work.msg_type][language][index][0];
            work.ama_2d_work[index].obj_work.pos.y      = AppMain.gm_start_msg_ama_act_pos_tbl[work.msg_type][language][index][1];
            if (index == 0)
            {
                work.ama_2d_work[index].obj_work.scale.x = AppMain.GMD_SMSG_ACT_SCALE;
                work.ama_2d_work[index].obj_work.scale.y = AppMain.GMD_SMSG_ACT_SCALE;
            }
        }
        for (int index = 0; index < AppMain.GMD_SMSG_AMA_ACT_ACTION_MAX; ++index)
        {
            int num = AppMain.gm_start_msg_body_act_id_table[work.msg_type][index];
            if ((512 & (int)mainSysInfo.game_flag) == 0)
            {
                switch (num)
                {
                case -1:
                case 4:
                case 5:
                    break;

                case 7:
                    num = 0;
                    break;

                default:
                    num = -1;
                    break;
                }
            }
            if (num < 0)
            {
                work.ama_2d_work_act[index] = (AppMain.GMS_SMSG_2D_OBJ_WORK)null;
            }
            else
            {
                work.ama_2d_work_act[index] = (AppMain.GMS_SMSG_2D_OBJ_WORK)AppMain.OBM_OBJECT_TASK_DETAIL_INIT((ushort)18512, (byte)5, (byte)0, (byte)3, (AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_SMSG_2D_OBJ_WORK()), "GM_SMSG");
                AppMain.NNS_TEXLIST texList2 = AppMain.AoTexGetTexList(AppMain.gm_start_msg_aos_tex[2]);
                AppMain.ObjObjectAction2dAMALoadSetTexlist(work.ama_2d_work_act[index].obj_work, work.ama_2d_work_act[index].obj_2d, (AppMain.OBS_DATA_WORK)null, (string)null, gimmickData.file_num - 2, gimmickData, texList2, (uint)num, 0);
                work.ama_2d_work_act[index].obj_work.ppOut      = (AppMain.MPP_VOID_OBS_OBJECT_WORK)null;
                work.ama_2d_work_act[index].obj_work.ppFunc     = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmStartMsgObjMain);
                work.ama_2d_work_act[index].obj_work.disp_flag |= 32U;
                work.ama_2d_work_act[index].obj_work.flag      |= 18U;
                work.ama_2d_work_act[index].obj_work.move_flag |= 8448U;
                work.ama_2d_work_act[index].obj_work.disp_flag |= 1048960U;
            }
        }
        work.func = new AppMain.pfnGMS_SMSG_MGR_WORK(AppMain.gmStartMsgMain_StartWait);
        AppMain.gmStartMsgMain_StartWait(work);
    }