Пример #1
0
 private static void gmStartDemoProcEnd(AppMain.GMS_START_DEMO_WORK work)
 {
     work.update = (AppMain.GMS_START_DEMO_WORK._update_)null;
     AppMain.gmStartDemoRequestExit();
     for (int index = 0; 4 > index; ++index)
     {
         AppMain.GMS_COCKPIT_2D_WORK gmsCockpit2DWork = work.action_obj_work_cmn[index];
         if (gmsCockpit2DWork != null)
         {
             gmsCockpit2DWork.cpit_com.obj_work.flag |= 8U;
         }
     }
     for (int index = 0; 1 > index; ++index)
     {
         AppMain.GMS_COCKPIT_2D_WORK gmsCockpit2DWork = work.action_obj_work_zone[index];
         if (gmsCockpit2DWork != null)
         {
             gmsCockpit2DWork.cpit_com.obj_work.flag |= 8U;
         }
     }
     for (int index = 0; 2 > index; ++index)
     {
         AppMain.GMS_COCKPIT_2D_WORK gmsCockpit2DWork = work.action_obj_work_act[index];
         if (gmsCockpit2DWork != null)
         {
             gmsCockpit2DWork.cpit_com.obj_work.flag |= 8U;
         }
     }
     AppMain.GMS_COCKPIT_2D_WORK actionObjWorkMessage = work.action_obj_work_message;
     if (actionObjWorkMessage == null)
     {
         return;
     }
     actionObjWorkMessage.cpit_com.obj_work.flag |= 8U;
 }
Пример #2
0
    // Token: 0x06000B0A RID: 2826 RVA: 0x000635C4 File Offset: 0x000617C4
    private static void gmOverSetActionPause(AppMain.GMS_COCKPIT_2D_WORK cpit_2d)
    {
        OBS_OBJECT_WORK obs_OBJECT_WORK = (OBS_OBJECT_WORK)cpit_2d;

        obs_OBJECT_WORK.disp_flag &= 4294967263U;
        obs_OBJECT_WORK.disp_flag |= 4096U;
    }
Пример #3
0
 private static void gmFixTimerSSPartInit(AppMain.GMS_FIX_MGR_WORK mgr_work)
 {
     AppMain.GMS_FIX_PART_WORK  partTimer1 = (AppMain.GMS_FIX_PART_WORK)mgr_work.part_timer;
     AppMain.GMS_FIX_PART_TIMER partTimer2 = mgr_work.part_timer;
     AppMain.gmFixRegisterPart(mgr_work, partTimer1, 2);
     partTimer1.proc_update = new AppMain.MPP_VOID_GMS_FIX_PART_WORK(AppMain.gmFixTimerPartProcUpdateMain);
     partTimer1.proc_disp   = new AppMain.MPP_VOID_GMS_FIX_PART_WORK(AppMain.gmFixTimerPartProcDispMain);
     partTimer2.flag       |= 1U;
     for (int index1 = 0; index1 < 8; ++index1)
     {
         AppMain.OBS_OBJECT_WORK     work             = AppMain.GMM_COCKPIT_CREATE_WORK((AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_COCKPIT_2D_WORK()), (AppMain.OBS_OBJECT_WORK)null, (ushort)0, "FIX_TIMER_SS");
         AppMain.GMS_COCKPIT_2D_WORK gmsCockpit2DWork = (AppMain.GMS_COCKPIT_2D_WORK)work;
         int index2;
         int index3;
         if (index1 == 0)
         {
             index2 = 2;
             index3 = 2;
         }
         else
         {
             index2 = 1;
             index3 = 1;
         }
         work.ppOut = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmFixSubpartOutFunc);
         AppMain.ObjObjectAction2dAMALoadSetTexlist(work, gmsCockpit2DWork.obj_2d, (AppMain.OBS_DATA_WORK)null, (string)null, AppMain.gm_fix_ama_amb_idx_tbl[AppMain.GsEnvGetLanguage()][index2], AppMain.GmGameDatGetCockpitData(), AppMain.AoTexGetTexList(AppMain.gm_fix_textures[index3]), (uint)AppMain.gm_fix_timer_ss_act_id_tbl[AppMain.GsEnvGetLanguage()][index1], 0);
         AppMain.gmFixSetFrameStatic(work, 0.0f);
         ((AppMain.GMS_FIX_PART_TIMER)partTimer1).sub_parts[index1] = (AppMain.GMS_COCKPIT_2D_WORK)work;
     }
 }
Пример #4
0
    // Token: 0x06000D73 RID: 3443 RVA: 0x00075840 File Offset: 0x00073A40
    private static void gmStartDemo2DActionCreate(AppMain.GMS_START_DEMO_WORK work)
    {
        AppMain.GMS_START_DEMO_DATA gms_START_DEMO_DATA = AppMain.gmStartDemoDataGetInfo();
        AppMain.GSS_MAIN_SYS_INFO   gss_MAIN_SYS_INFO   = AppMain.GsGetMainSysInfo();
        int num  = AppMain.GsEnvGetLanguage();
        int num2 = 0;

        while (4 > num2)
        {
            int num3 = AppMain.g_gm_start_demo_data_type_cmn[num2];
            AppMain.GMS_COCKPIT_2D_WORK gms_COCKPIT_2D_WORK = AppMain.gmStartDemo2DActionCreate(AppMain.g_gm_start_demo_action_name_cmn[num2], gms_START_DEMO_DATA.aos_texture[num3], AppMain.g_gm_start_demo_data_ama_id[num][num3], AppMain.g_gm_start_demo_action_id_cmn[num2], AppMain.g_gm_start_demo_action_node_flag_cmn[num2]);
            if (gms_COCKPIT_2D_WORK != null)
            {
                gms_COCKPIT_2D_WORK.obj_2d.speed = 0f;
            }
            work.action_obj_work_cmn[num2] = gms_COCKPIT_2D_WORK;
            num2++;
        }
        int num4 = AppMain.g_gm_gamedat_zone_type_tbl[(int)gss_MAIN_SYS_INFO.stage_id];
        int num5 = 0;

        while (1 > num5)
        {
            int num6 = AppMain.g_gm_start_demo_data_type_zone[num5];
            AppMain.GMS_COCKPIT_2D_WORK gms_COCKPIT_2D_WORK2 = AppMain.gmStartDemo2DActionCreate(AppMain.g_gm_start_demo_action_name_zone[num5], gms_START_DEMO_DATA.aos_texture[num6], AppMain.g_gm_start_demo_data_ama_id[num][num6], AppMain.g_gm_start_demo_action_id_zone[num4][num5].Value, AppMain.g_gm_start_demo_action_node_flag_zone[num5]);
            if (gms_COCKPIT_2D_WORK2 != null)
            {
                gms_COCKPIT_2D_WORK2.obj_2d.speed = 0f;
            }
            work.action_obj_work_zone[num5] = gms_COCKPIT_2D_WORK2;
            num5++;
        }
        int num7 = AppMain.g_gm_start_demo_act_no[(int)gss_MAIN_SYS_INFO.stage_id];

        if (num4 != 4)
        {
            int num8 = 0;
            while (2 > num8)
            {
                int num9 = AppMain.g_gm_start_demo_data_type_act[num8];
                AppMain.GMS_COCKPIT_2D_WORK gms_COCKPIT_2D_WORK3 = AppMain.gmStartDemo2DActionCreate(AppMain.g_gm_start_demo_action_name_act[num8], gms_START_DEMO_DATA.aos_texture[num9], AppMain.g_gm_start_demo_data_ama_id[num][num9], AppMain.g_gm_start_demo_action_id_act[num7][num8], AppMain.g_gm_start_demo_action_node_flag_act[num8]);
                if (gms_COCKPIT_2D_WORK3 != null)
                {
                    gms_COCKPIT_2D_WORK3.obj_2d.speed = 0f;
                }
                work.action_obj_work_act[num8] = gms_COCKPIT_2D_WORK3;
                num8++;
            }
        }
        int num10 = 1;

        AppMain.GMS_COCKPIT_2D_WORK gms_COCKPIT_2D_WORK4 = AppMain.gmStartDemo2DActionCreate(AppMain.g_gm_start_demo_action_name_message, gms_START_DEMO_DATA.aos_texture[num10], AppMain.g_gm_start_demo_data_ama_id[num][num10], AppMain.g_gm_start_demo_action_id_message[num4][num7], 1);
        if (gms_COCKPIT_2D_WORK4 != null)
        {
            gms_COCKPIT_2D_WORK4.obj_2d.speed = 0f;
        }
        work.action_obj_work_message = gms_COCKPIT_2D_WORK4;
    }
Пример #5
0
 // Token: 0x06000D78 RID: 3448 RVA: 0x00075E10 File Offset: 0x00074010
 private static void gmStartDemoProcWait(AppMain.GMS_START_DEMO_WORK work)
 {
     if (work.counter >= 160U)
     {
         work.update = AppMain.gmStartDemoProcOut;
         if (AppMain.GmStartMsgIsExe())
         {
             AppMain.GmStartMsgInit();
         }
         else
         {
             GMS_PLAYER_WORK ply_work = AppMain.g_gm_main_system.ply_work[(int)((UIntPtr)0)];
             AppMain.GmPlySeqChangeSequence(ply_work, 0);
             AppMain.gmStartDemoSetGameFlag(1024U);
             AoPresence.AoPresenceSet(AoPresenceLocation.Stage);
         }
         int num = 0;
         while (4 > num)
         {
             AppMain.GMS_COCKPIT_2D_WORK gms_COCKPIT_2D_WORK = work.action_obj_work_cmn[num];
             if (gms_COCKPIT_2D_WORK != null)
             {
                 gms_COCKPIT_2D_WORK.obj_2d.speed = 1f;
             }
             num++;
         }
         int num2 = 0;
         while (1 > num2)
         {
             AppMain.GMS_COCKPIT_2D_WORK gms_COCKPIT_2D_WORK2 = work.action_obj_work_zone[num2];
             if (gms_COCKPIT_2D_WORK2 != null)
             {
                 gms_COCKPIT_2D_WORK2.obj_2d.speed = 1f;
             }
             num2++;
         }
         int num3 = 0;
         while (2 > num3)
         {
             AppMain.GMS_COCKPIT_2D_WORK gms_COCKPIT_2D_WORK3 = work.action_obj_work_act[num3];
             if (gms_COCKPIT_2D_WORK3 != null)
             {
                 gms_COCKPIT_2D_WORK3.obj_2d.speed = 1f;
             }
             num3++;
         }
         AppMain.GMS_COCKPIT_2D_WORK action_obj_work_message = work.action_obj_work_message;
         if (action_obj_work_message != null)
         {
             action_obj_work_message.obj_2d.speed = 1f;
         }
     }
 }
Пример #6
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: 0x06000D74 RID: 3444 RVA: 0x00075A1C File Offset: 0x00073C1C
 private static AppMain.GMS_COCKPIT_2D_WORK gmStartDemo2DActionCreate(string tcb_name, AppMain.AOS_TEXTURE aos_texture, int ama_id, int action_id, int node_flag)
 {
     if (action_id == -1)
     {
         return(null);
     }
     AppMain.GMS_COCKPIT_2D_WORK gms_COCKPIT_2D_WORK = (AppMain.GMS_COCKPIT_2D_WORK)AppMain.GMM_COCKPIT_CREATE_WORK(() => new AppMain.GMS_COCKPIT_2D_WORK(), null, 0, tcb_name);
     gms_COCKPIT_2D_WORK.cpit_com.obj_work.disp_flag |= ( uint )node_flag;
     AppMain.ObjObjectAction2dAMALoadSetTexlist(gms_COCKPIT_2D_WORK.cpit_com.obj_work, gms_COCKPIT_2D_WORK.obj_2d, null, null, ama_id, AppMain.GmGameDatGetCockpitData(), AppMain.AoTexGetTexList(aos_texture), ( uint )action_id, node_flag);
     AppMain.OBS_OBJECT_WORK obs_OBJECT_WORK = (AppMain.OBS_OBJECT_WORK)gms_COCKPIT_2D_WORK;
     obs_OBJECT_WORK.pos.z = obs_OBJECT_WORK.pos.z - AppMain.FX_F32_TO_FX32(10f);
     return(gms_COCKPIT_2D_WORK);
 }
Пример #8
0
 // Token: 0x06000D75 RID: 3445 RVA: 0x00075ABC File Offset: 0x00073CBC
 private static void gmStartDemoProcFade(AppMain.GMS_START_DEMO_WORK work)
 {
     if (AppMain.IzFadeIsEnd())
     {
         AppMain.IzFadeExit();
         work.update  = AppMain.gmStartDemoProcIn;
         work.counter = 0U;
         int num = 0;
         while (4 > num)
         {
             AppMain.GMS_COCKPIT_2D_WORK gms_COCKPIT_2D_WORK = work.action_obj_work_cmn[num];
             if (gms_COCKPIT_2D_WORK != null)
             {
                 gms_COCKPIT_2D_WORK.obj_2d.speed = 1f;
                 gms_COCKPIT_2D_WORK.obj_2d.frame = 0f;
             }
             num++;
         }
         int num2 = 0;
         while (1 > num2)
         {
             AppMain.GMS_COCKPIT_2D_WORK gms_COCKPIT_2D_WORK2 = work.action_obj_work_zone[num2];
             if (gms_COCKPIT_2D_WORK2 != null)
             {
                 gms_COCKPIT_2D_WORK2.obj_2d.speed = 1f;
                 gms_COCKPIT_2D_WORK2.obj_2d.frame = 0f;
             }
             num2++;
         }
         int num3 = 0;
         while (2 > num3)
         {
             AppMain.GMS_COCKPIT_2D_WORK gms_COCKPIT_2D_WORK3 = work.action_obj_work_act[num3];
             if (gms_COCKPIT_2D_WORK3 != null)
             {
                 gms_COCKPIT_2D_WORK3.obj_2d.speed = 1f;
                 gms_COCKPIT_2D_WORK3.obj_2d.frame = 0f;
             }
             num3++;
         }
         AppMain.GMS_COCKPIT_2D_WORK action_obj_work_message = work.action_obj_work_message;
         if (action_obj_work_message != null)
         {
             action_obj_work_message.obj_2d.speed = 1f;
             action_obj_work_message.obj_2d.frame = 0f;
         }
     }
 }
Пример #9
0
 private static void gmFixChallengePartInit(AppMain.GMS_FIX_MGR_WORK mgr_work)
 {
     AppMain.GMS_FIX_PART_WORK partChallenge = (AppMain.GMS_FIX_PART_WORK)mgr_work.part_challenge;
     AppMain.gmFixRegisterPart(mgr_work, partChallenge, 3);
     partChallenge.proc_update = new AppMain.MPP_VOID_GMS_FIX_PART_WORK(AppMain.gmFixChallengePartProcUpdateMain);
     partChallenge.proc_disp   = new AppMain.MPP_VOID_GMS_FIX_PART_WORK(AppMain.gmFixChallengePartProcDispMain);
     for (int index = 0; index < 5; ++index)
     {
         AppMain.OBS_OBJECT_WORK     work             = AppMain.GMM_COCKPIT_CREATE_WORK((AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_COCKPIT_2D_WORK()), (AppMain.OBS_OBJECT_WORK)null, (ushort)0, "FIX_CHALLENGE");
         AppMain.GMS_COCKPIT_2D_WORK gmsCockpit2DWork = (AppMain.GMS_COCKPIT_2D_WORK)work;
         work.ppOut = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmFixSubpartOutFunc);
         AppMain.ObjObjectAction2dAMALoadSetTexlist(work, gmsCockpit2DWork.obj_2d, (AppMain.OBS_DATA_WORK)null, (string)null, AppMain.gm_fix_ama_amb_idx_tbl[AppMain.GsEnvGetLanguage()][0], AppMain.GmGameDatGetCockpitData(), AppMain.AoTexGetTexList(AppMain.gm_fix_textures[0]), (uint)AppMain.gm_fix_challenge_act_id_tbl[AppMain.gmFixGetPlan()][index], 0);
         AppMain.gmFixSetFrameStatic(work, 0.0f);
         ((AppMain.GMS_FIX_PART_CHALLENGE)partChallenge).sub_parts[index] = (AppMain.GMS_COCKPIT_2D_WORK)work;
     }
 }
Пример #10
0
 private static void gmStartDemoProcWait(AppMain.GMS_START_DEMO_WORK work)
 {
     if (work.counter < 160U)
     {
         return;
     }
     work.update = new AppMain.GMS_START_DEMO_WORK._update_(AppMain.gmStartDemoProcOut);
     if (AppMain.GmStartMsgIsExe())
     {
         AppMain.GmStartMsgInit();
     }
     else
     {
         AppMain.GmPlySeqChangeSequence(AppMain.g_gm_main_system.ply_work[0], 0);
         AppMain.gmStartDemoSetGameFlag(1024U);
     }
     for (int index = 0; 4 > index; ++index)
     {
         AppMain.GMS_COCKPIT_2D_WORK gmsCockpit2DWork = work.action_obj_work_cmn[index];
         if (gmsCockpit2DWork != null)
         {
             gmsCockpit2DWork.obj_2d.speed = 1f;
         }
     }
     for (int index = 0; 1 > index; ++index)
     {
         AppMain.GMS_COCKPIT_2D_WORK gmsCockpit2DWork = work.action_obj_work_zone[index];
         if (gmsCockpit2DWork != null)
         {
             gmsCockpit2DWork.obj_2d.speed = 1f;
         }
     }
     for (int index = 0; 2 > index; ++index)
     {
         AppMain.GMS_COCKPIT_2D_WORK gmsCockpit2DWork = work.action_obj_work_act[index];
         if (gmsCockpit2DWork != null)
         {
             gmsCockpit2DWork.obj_2d.speed = 1f;
         }
     }
     AppMain.GMS_COCKPIT_2D_WORK actionObjWorkMessage = work.action_obj_work_message;
     if (actionObjWorkMessage == null)
     {
         return;
     }
     actionObjWorkMessage.obj_2d.speed = 1f;
 }
Пример #11
0
 private static AppMain.GMS_COCKPIT_2D_WORK gmStartDemo2DActionCreate(
     string tcb_name,
     AppMain.AOS_TEXTURE aos_texture,
     int ama_id,
     int action_id,
     int node_flag)
 {
     if (action_id == -1)
     {
         return((AppMain.GMS_COCKPIT_2D_WORK)null);
     }
     AppMain.GMS_COCKPIT_2D_WORK work = (AppMain.GMS_COCKPIT_2D_WORK)AppMain.GMM_COCKPIT_CREATE_WORK((AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_COCKPIT_2D_WORK()), (AppMain.OBS_OBJECT_WORK)null, (ushort)0, tcb_name);
     work.cpit_com.obj_work.disp_flag |= (uint)node_flag;
     AppMain.ObjObjectAction2dAMALoadSetTexlist(work.cpit_com.obj_work, work.obj_2d, (AppMain.OBS_DATA_WORK)null, (string)null, ama_id, AppMain.GmGameDatGetCockpitData(), AppMain.AoTexGetTexList(aos_texture), (uint)action_id, node_flag);
     ((AppMain.OBS_OBJECT_WORK)work).pos.z -= AppMain.FX_F32_TO_FX32(10f);
     return(work);
 }
 // Token: 0x06000D76 RID: 3446 RVA: 0x00075BD0 File Offset: 0x00073DD0
 private static void gmStartDemoProcIn(AppMain.GMS_START_DEMO_WORK work)
 {
     if (work.counter >= 39U)
     {
         work.update = new AppMain.GMS_START_DEMO_WORK._update_(AppMain.gmStartDemoProcWait);
         int num = 0;
         while (4 > num)
         {
             AppMain.GMS_COCKPIT_2D_WORK gms_COCKPIT_2D_WORK = work.action_obj_work_cmn[num];
             if (gms_COCKPIT_2D_WORK != null)
             {
                 gms_COCKPIT_2D_WORK.obj_2d.speed = 0f;
                 gms_COCKPIT_2D_WORK.obj_2d.frame = 40f;
             }
             num++;
         }
         int num2 = 0;
         while (1 > num2)
         {
             AppMain.GMS_COCKPIT_2D_WORK gms_COCKPIT_2D_WORK2 = work.action_obj_work_zone[num2];
             if (gms_COCKPIT_2D_WORK2 != null)
             {
                 gms_COCKPIT_2D_WORK2.obj_2d.speed = 0f;
                 gms_COCKPIT_2D_WORK2.obj_2d.frame = 40f;
             }
             num2++;
         }
         int num3 = 0;
         while (2 > num3)
         {
             AppMain.GMS_COCKPIT_2D_WORK gms_COCKPIT_2D_WORK3 = work.action_obj_work_act[num3];
             if (gms_COCKPIT_2D_WORK3 != null)
             {
                 gms_COCKPIT_2D_WORK3.obj_2d.speed = 0f;
                 gms_COCKPIT_2D_WORK3.obj_2d.frame = 40f;
             }
             num3++;
         }
         AppMain.GMS_COCKPIT_2D_WORK action_obj_work_message = work.action_obj_work_message;
         if (action_obj_work_message != null)
         {
             action_obj_work_message.obj_2d.speed = 0f;
             action_obj_work_message.obj_2d.frame = 40f;
         }
     }
 }
Пример #13
0
 private static void gmStartDemoProcFade(AppMain.GMS_START_DEMO_WORK work)
 {
     if (!AppMain.IzFadeIsEnd())
     {
         return;
     }
     AppMain.IzFadeExit();
     work.update  = new AppMain.GMS_START_DEMO_WORK._update_(AppMain.gmStartDemoProcIn);
     work.counter = 0U;
     for (int index = 0; 4 > index; ++index)
     {
         AppMain.GMS_COCKPIT_2D_WORK gmsCockpit2DWork = work.action_obj_work_cmn[index];
         if (gmsCockpit2DWork != null)
         {
             gmsCockpit2DWork.obj_2d.speed = 1f;
             gmsCockpit2DWork.obj_2d.frame = 0.0f;
         }
     }
     for (int index = 0; 1 > index; ++index)
     {
         AppMain.GMS_COCKPIT_2D_WORK gmsCockpit2DWork = work.action_obj_work_zone[index];
         if (gmsCockpit2DWork != null)
         {
             gmsCockpit2DWork.obj_2d.speed = 1f;
             gmsCockpit2DWork.obj_2d.frame = 0.0f;
         }
     }
     for (int index = 0; 2 > index; ++index)
     {
         AppMain.GMS_COCKPIT_2D_WORK gmsCockpit2DWork = work.action_obj_work_act[index];
         if (gmsCockpit2DWork != null)
         {
             gmsCockpit2DWork.obj_2d.speed = 1f;
             gmsCockpit2DWork.obj_2d.frame = 0.0f;
         }
     }
     AppMain.GMS_COCKPIT_2D_WORK actionObjWorkMessage = work.action_obj_work_message;
     if (actionObjWorkMessage == null)
     {
         return;
     }
     actionObjWorkMessage.obj_2d.speed = 1f;
     actionObjWorkMessage.obj_2d.frame = 0.0f;
 }
Пример #14
0
    // Token: 0x06000D7A RID: 3450 RVA: 0x00075F30 File Offset: 0x00074130
    private static void gmStartDemoProcEnd(AppMain.GMS_START_DEMO_WORK work)
    {
        work.update = null;
        AppMain.gmStartDemoRequestExit();
        int num = 0;

        while (4 > num)
        {
            AppMain.GMS_COCKPIT_2D_WORK gms_COCKPIT_2D_WORK = work.action_obj_work_cmn[num];
            if (gms_COCKPIT_2D_WORK != null)
            {
                gms_COCKPIT_2D_WORK.cpit_com.obj_work.flag |= 8U;
            }
            num++;
        }
        int num2 = 0;

        while (1 > num2)
        {
            AppMain.GMS_COCKPIT_2D_WORK gms_COCKPIT_2D_WORK2 = work.action_obj_work_zone[num2];
            if (gms_COCKPIT_2D_WORK2 != null)
            {
                gms_COCKPIT_2D_WORK2.cpit_com.obj_work.flag |= 8U;
            }
            num2++;
        }
        int num3 = 0;

        while (2 > num3)
        {
            AppMain.GMS_COCKPIT_2D_WORK gms_COCKPIT_2D_WORK3 = work.action_obj_work_act[num3];
            if (gms_COCKPIT_2D_WORK3 != null)
            {
                gms_COCKPIT_2D_WORK3.cpit_com.obj_work.flag |= 8U;
            }
            num3++;
        }
        AppMain.GMS_COCKPIT_2D_WORK action_obj_work_message = work.action_obj_work_message;
        if (action_obj_work_message != null)
        {
            action_obj_work_message.cpit_com.obj_work.flag |= 8U;
        }
    }
Пример #15
0
 private static void gmFixRingCountPartInit(AppMain.GMS_FIX_MGR_WORK mgr_work)
 {
     AppMain.GMS_FIX_PART_WORK partRingcount = (AppMain.GMS_FIX_PART_WORK)mgr_work.part_ringcount;
     AppMain.gmFixRegisterPart(mgr_work, partRingcount, 0);
     partRingcount.proc_update = new AppMain.MPP_VOID_GMS_FIX_PART_WORK(AppMain.gmFixRingCountPartProcUpdateMain);
     partRingcount.proc_disp   = new AppMain.MPP_VOID_GMS_FIX_PART_WORK(AppMain.gmFixRingCountPartProcDispMain);
     for (int index = 0; index < 4; ++index)
     {
         AppMain.OBS_OBJECT_WORK     work             = AppMain.GMM_COCKPIT_CREATE_WORK((AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_COCKPIT_2D_WORK()), (AppMain.OBS_OBJECT_WORK)null, (ushort)0, "FIX_RING");
         AppMain.GMS_COCKPIT_2D_WORK gmsCockpit2DWork = (AppMain.GMS_COCKPIT_2D_WORK)work;
         work.ppOut = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmFixSubpartOutFunc);
         AppMain.ObjObjectAction2dAMALoadSetTexlist(work, gmsCockpit2DWork.obj_2d, (AppMain.OBS_DATA_WORK)null, (string)null, AppMain.gm_fix_ama_amb_idx_tbl[AppMain.GsEnvGetLanguage()][0], AppMain.GmGameDatGetCockpitData(), AppMain.AoTexGetTexList(AppMain.gm_fix_textures[0]), (uint)AppMain.gm_fix_ringcount_act_id_tbl[index], 0);
         AppMain.gmFixSetFrameStatic(work, 0.0f);
         if (index != 0)
         {
             work.pos.y += AppMain.FX_F32_TO_FX32(5f);
         }
         ((AppMain.GMS_FIX_PART_RINGCOUNT)partRingcount).sub_parts[index] = (AppMain.GMS_COCKPIT_2D_WORK)work;
     }
 }
Пример #16
0
    private static void gmFixScorePartInit(AppMain.GMS_FIX_MGR_WORK mgr_work)
    {
        int num = 0;

        AppMain.GMS_FIX_PART_WORK partScore = (AppMain.GMS_FIX_PART_WORK)mgr_work.part_score;
        AppMain.gmFixRegisterPart(mgr_work, partScore, 1);
        partScore.proc_update = new AppMain.MPP_VOID_GMS_FIX_PART_WORK(AppMain.gmFixScorePartProcUpdateMain);
        partScore.proc_disp   = new AppMain.MPP_VOID_GMS_FIX_PART_WORK(AppMain.gmFixScorePartProcDispMain);
        if (AppMain.gmFixIsStage22())
        {
            AppMain.act_id_tblgmFixScorePartInit = AppMain.gm_fix_score_stage22_act_id_tbl[AppMain.gmFixGetPlan()];
        }
        else
        {
            AppMain.act_id_tblgmFixScorePartInit = AppMain.gm_fix_score_act_id_tbl;
            num = 0;
        }
        for (int index = 0; index < 10; ++index)
        {
            if (AppMain.act_id_tblgmFixScorePartInit[index] < 0)
            {
                ((AppMain.GMS_FIX_PART_SCORE)partScore).sub_parts[index] = (AppMain.GMS_COCKPIT_2D_WORK)null;
            }
            else
            {
                AppMain.OBS_OBJECT_WORK     work             = AppMain.GMM_COCKPIT_CREATE_WORK((AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_COCKPIT_2D_WORK()), (AppMain.OBS_OBJECT_WORK)null, (ushort)0, "FIX_SCORE");
                AppMain.GMS_COCKPIT_2D_WORK gmsCockpit2DWork = (AppMain.GMS_COCKPIT_2D_WORK)work;
                work.ppOut = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmFixSubpartOutFunc);
                AppMain.ObjObjectAction2dAMALoadSetTexlist(work, gmsCockpit2DWork.obj_2d, (AppMain.OBS_DATA_WORK)null, (string)null, AppMain.gm_fix_ama_amb_idx_tbl[AppMain.GsEnvGetLanguage()][0], AppMain.GmGameDatGetCockpitData(), AppMain.AoTexGetTexList(AppMain.gm_fix_textures[0]), (uint)AppMain.act_id_tblgmFixScorePartInit[index], 0);
                AppMain.gmFixSetFrameStatic(work, 0.0f);
                work.pos.x += num;
                if (index != 0)
                {
                    work.pos.y += AppMain.FX_F32_TO_FX32(2f);
                }
                ((AppMain.GMS_FIX_PART_SCORE)partScore).sub_parts[index] = (AppMain.GMS_COCKPIT_2D_WORK)work;
            }
        }
    }
Пример #17
0
 private static void gmFixTimerPartInit(AppMain.GMS_FIX_MGR_WORK mgr_work)
 {
     AppMain.GMS_FIX_PART_WORK  partTimer1 = (AppMain.GMS_FIX_PART_WORK)mgr_work.part_timer;
     AppMain.GMS_FIX_PART_TIMER partTimer2 = mgr_work.part_timer;
     AppMain.gmFixRegisterPart(mgr_work, partTimer1, 2);
     partTimer1.proc_update = new AppMain.MPP_VOID_GMS_FIX_PART_WORK(AppMain.gmFixTimerPartProcUpdateMain);
     partTimer1.proc_disp   = new AppMain.MPP_VOID_GMS_FIX_PART_WORK(AppMain.gmFixTimerPartProcDispMain);
     if (AppMain.gmFixIsTimeAttack())
     {
         AppMain.act_id_tblgmFixTimerPartInit = AppMain.gm_fix_timer_timeattack_act_id_tbl;
         partTimer2.flag |= 1U;
     }
     else
     {
         AppMain.act_id_tblgmFixTimerPartInit = AppMain.gm_fix_timer_act_id_tbl;
     }
     for (int index = 0; index < 8; ++index)
     {
         AppMain.OBS_OBJECT_WORK     work             = AppMain.GMM_COCKPIT_CREATE_WORK((AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_COCKPIT_2D_WORK()), (AppMain.OBS_OBJECT_WORK)null, (ushort)0, "FIX_TIMER");
         AppMain.GMS_COCKPIT_2D_WORK gmsCockpit2DWork = (AppMain.GMS_COCKPIT_2D_WORK)work;
         work.ppOut = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmFixSubpartOutFunc);
         AppMain.ObjObjectAction2dAMALoadSetTexlist(work, gmsCockpit2DWork.obj_2d, (AppMain.OBS_DATA_WORK)null, (string)null, AppMain.gm_fix_ama_amb_idx_tbl[AppMain.GsEnvGetLanguage()][0], AppMain.GmGameDatGetCockpitData(), AppMain.AoTexGetTexList(AppMain.gm_fix_textures[0]), (uint)AppMain.act_id_tblgmFixTimerPartInit[index], 0);
         AppMain.gmFixSetFrameStatic(work, 0.0f);
         if (AppMain.gmFixIsTimeAttack())
         {
             work.pos.x += AppMain.FX_F32_TO_FX32(-98f);
             if (index != 0)
             {
                 work.pos.y += AppMain.FX_F32_TO_FX32(5f);
             }
         }
         else if (index != 0)
         {
             work.pos.y += AppMain.FX_F32_TO_FX32(5f);
         }
         ((AppMain.GMS_FIX_PART_TIMER)partTimer1).sub_parts[index] = (AppMain.GMS_COCKPIT_2D_WORK)work;
     }
 }
Пример #18
0
    private static void GmOverStart(int type)
    {
        SaveState.deleteSave();
        AppMain.gm_over_tcb = AppMain.MTM_TASK_MAKE_TCB(new AppMain.GSF_TASK_PROCEDURE(AppMain.gmOverMain), new AppMain.GSF_TASK_PROCEDURE(AppMain.gmOverDest), 0U, (ushort)0, 18464U, 5, (AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_OVER_MGR_WORK()), "GM_OVER_MGR");
        AppMain.GMS_OVER_MGR_WORK work1 = (AppMain.GMS_OVER_MGR_WORK)AppMain.gm_over_tcb.work;
        work1.Clear();
        for (int index = 0; index < 4; ++index)
        {
            AppMain.OBS_OBJECT_WORK     work2   = AppMain.GMM_COCKPIT_CREATE_WORK((AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_COCKPIT_2D_WORK()), (AppMain.OBS_OBJECT_WORK)null, (ushort)0, "GAME_OVER");
            AppMain.GMS_COCKPIT_2D_WORK cpit_2d = (AppMain.GMS_COCKPIT_2D_WORK)work2;
            AppMain.ObjObjectAction2dAMALoadSetTexlist(work2, cpit_2d.obj_2d, (AppMain.OBS_DATA_WORK)null, (string)null, AppMain.gm_over_ama_amb_idx_tbl[AppMain.GsEnvGetLanguage()][1], AppMain.GmGameDatGetCockpitData(), AppMain.AoTexGetTexList(AppMain.gm_over_textures[1]), AppMain.gm_over_string_act_id_tbl[AppMain.GsEnvGetLanguage()][index], 0);
            work1.string_sub_parts[index] = cpit_2d;
            AppMain.gmOverSetActionHide(cpit_2d);
        }
        for (int index = 0; index < 2; ++index)
        {
            AppMain.OBS_OBJECT_WORK     work2   = AppMain.GMM_COCKPIT_CREATE_WORK((AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_COCKPIT_2D_WORK()), (AppMain.OBS_OBJECT_WORK)null, (ushort)0, "GAME_OVER");
            AppMain.GMS_COCKPIT_2D_WORK cpit_2d = (AppMain.GMS_COCKPIT_2D_WORK)work2;
            AppMain.ObjObjectAction2dAMALoadSetTexlist(work2, cpit_2d.obj_2d, (AppMain.OBS_DATA_WORK)null, (string)null, AppMain.gm_over_ama_amb_idx_tbl[AppMain.GsEnvGetLanguage()][0], AppMain.GmGameDatGetCockpitData(), AppMain.AoTexGetTexList(AppMain.gm_over_textures[0]), AppMain.gm_over_fadeout_act_id_tbl[index], 0);
            work1.fadeout_sub_parts[index] = cpit_2d;
            work2.pos.z      = -65536;
            work2.disp_flag &= 4294967291U;
            AppMain.gmOverSetActionHide(cpit_2d);
        }
        switch (type)
        {
        case 0:
            AppMain.gmOverProcUpdateGOInit(work1);
            break;

        case 1:
            AppMain.gmOverProcUpdateTOInit(work1);
            break;
        }
        work1.proc_disp = new AppMain._GMS_OVER_MGR_WORK_UD_(AppMain.gmOverProcDispLoop);
    }
Пример #19
0
    // Token: 0x06000B05 RID: 2821 RVA: 0x00063354 File Offset: 0x00061554
    private static void GmOverStart(int type)
    {
        SaveState.deleteSave();
        AppMain.gm_over_tcb = AppMain.MTM_TASK_MAKE_TCB(AppMain.gmOverMain, AppMain.gmOverDest, 0U, 0, 18464U, 5, () => new AppMain.GMS_OVER_MGR_WORK(), "GM_OVER_MGR");
        AppMain.GMS_OVER_MGR_WORK gms_OVER_MGR_WORK = (AppMain.GMS_OVER_MGR_WORK)AppMain.gm_over_tcb.work;
        gms_OVER_MGR_WORK.Clear();
        for (int i = 0; i < 4; i++)
        {
            OBS_OBJECT_WORK             obs_OBJECT_WORK     = AppMain.GMM_COCKPIT_CREATE_WORK(() => new AppMain.GMS_COCKPIT_2D_WORK(), null, 0, "GAME_OVER");
            AppMain.GMS_COCKPIT_2D_WORK gms_COCKPIT_2D_WORK = (AppMain.GMS_COCKPIT_2D_WORK)obs_OBJECT_WORK;
            AppMain.ObjObjectAction2dAMALoadSetTexlist(obs_OBJECT_WORK, gms_COCKPIT_2D_WORK.obj_2d, null, null, AppMain.gm_over_ama_amb_idx_tbl[AppMain.GsEnvGetLanguage()][1], AppMain.GmGameDatGetCockpitData(), AppMain.AoTexGetTexList(AppMain.gm_over_textures[1]), AppMain.gm_over_string_act_id_tbl[AppMain.GsEnvGetLanguage()][i], 0);
            gms_OVER_MGR_WORK.string_sub_parts[i] = gms_COCKPIT_2D_WORK;
            AppMain.gmOverSetActionHide(gms_COCKPIT_2D_WORK);
        }
        for (int j = 0; j < 2; j++)
        {
            OBS_OBJECT_WORK             obs_OBJECT_WORK2     = AppMain.GMM_COCKPIT_CREATE_WORK(() => new AppMain.GMS_COCKPIT_2D_WORK(), null, 0, "GAME_OVER");
            AppMain.GMS_COCKPIT_2D_WORK gms_COCKPIT_2D_WORK2 = (AppMain.GMS_COCKPIT_2D_WORK)obs_OBJECT_WORK2;
            AppMain.ObjObjectAction2dAMALoadSetTexlist(obs_OBJECT_WORK2, gms_COCKPIT_2D_WORK2.obj_2d, null, null, AppMain.gm_over_ama_amb_idx_tbl[AppMain.GsEnvGetLanguage()][0], AppMain.GmGameDatGetCockpitData(), AppMain.AoTexGetTexList(AppMain.gm_over_textures[0]), AppMain.gm_over_fadeout_act_id_tbl[j], 0);
            gms_OVER_MGR_WORK.fadeout_sub_parts[j] = gms_COCKPIT_2D_WORK2;
            obs_OBJECT_WORK2.pos.z      = -65536;
            obs_OBJECT_WORK2.disp_flag &= 4294967291U;
            AppMain.gmOverSetActionHide(gms_COCKPIT_2D_WORK2);
        }
        switch (type)
        {
        case 0:
            AppMain.gmOverProcUpdateGOInit(gms_OVER_MGR_WORK);
            break;

        case 1:
            AppMain.gmOverProcUpdateTOInit(gms_OVER_MGR_WORK);
            break;
        }
        gms_OVER_MGR_WORK.proc_disp = AppMain.gmOverProcDispLoop;
    }
Пример #20
0
 private static void gmOverSetActionHide(AppMain.GMS_COCKPIT_2D_WORK cpit_2d)
 {
     ((AppMain.OBS_OBJECT_WORK)cpit_2d).disp_flag |= 4128U;
 }
Пример #21
0
 private static void gmOverSetActionPlay(AppMain.GMS_COCKPIT_2D_WORK cpit_2d)
 {
     ((AppMain.OBS_OBJECT_WORK)cpit_2d).disp_flag &= 4294963167U;
 }
Пример #22
0
    private static void gmFixVirtualPadPartInit(AppMain.GMS_FIX_MGR_WORK mgr_work)
    {
        CPadVirtualPad cpadVirtualPad = CPadVirtualPad.CreateInstance();

        if (!cpadVirtualPad.IsValid())
        {
            return;
        }

        AppMain.MPP_VOID_OBS_OBJECT_WORK[] voidObsObjectWorkArray = new AppMain.MPP_VOID_OBS_OBJECT_WORK[4]
        {
            new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmFixVirtualPadOutClassGMD_FIX_MGR_FLAG_HIDE_VIRTUAL_PAD_PART_SUPER_SONIC.OutFunc),
            new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmFixVirtualPadOutClassGMD_FIX_MGR_FLAG_HIDE_VIRTUAL_PAD_PART_PAUSE.OutFunc),
            new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmFixVirtualPadOutClassGMD_FIX_MGR_FLAG_HIDE_VIRTUAL_PAD_PART_ACTION.OutFunc),
            new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmFixVirtualPadOutClassGMD_FIX_MGR_FLAG_HIDE_VIRTUAL_PAD_PART_MOVE_PAD.OutFunc)
        };
        AppMain.GMS_FIX_PART_WORK partVirtualPad = (AppMain.GMS_FIX_PART_WORK)mgr_work.part_virtual_pad;
        AppMain.gmFixRegisterPart(mgr_work, partVirtualPad, 4);
        partVirtualPad.proc_update = new AppMain.MPP_VOID_GMS_FIX_PART_WORK(AppMain.gmFixVirtualPadPartProcUpdateMain);
        partVirtualPad.proc_disp   = new AppMain.MPP_VOID_GMS_FIX_PART_WORK(AppMain.gmFixVirtualPadPartProcDispMain);
        int index1 = 0;

        for (int index2 = 4; index1 < index2; ++index1)
        {
            if (AppMain.gm_fix_virtual_pad_act_id_tbl[AppMain.gmFixGetPlan()][index1] < 0)
            {
                ((AppMain.GMS_FIX_PART_VIRTUAL_PAD)partVirtualPad).sub_parts[index1] = (AppMain.GMS_COCKPIT_2D_WORK)null;
            }
            else
            {
                AppMain.OBS_OBJECT_WORK     work             = AppMain.GMM_COCKPIT_CREATE_WORK((AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_COCKPIT_2D_WORK()), (AppMain.OBS_OBJECT_WORK)null, (ushort)0, "FIX_VIRTUAL_PAD");
                AppMain.GMS_COCKPIT_2D_WORK gmsCockpit2DWork = (AppMain.GMS_COCKPIT_2D_WORK)work;
                work.ppOut = voidObsObjectWorkArray[index1];
                AppMain.ObjObjectAction2dAMALoadSetTexlist(work, gmsCockpit2DWork.obj_2d, (AppMain.OBS_DATA_WORK)null, (string)null, AppMain.gm_fix_ama_amb_idx_tbl[AppMain.GsEnvGetLanguage()][0], AppMain.GmGameDatGetCockpitData(), AppMain.AoTexGetTexList(AppMain.gm_fix_textures[0]), (uint)AppMain.gm_fix_virtual_pad_act_id_tbl[AppMain.gmFixGetPlan()][index1], 0);
                AppMain.amFlagOff(ref work.disp_flag, 32U);
                AppMain.gmFixSetFrameStatic(work, 0.0f);
                if (1 == index1)
                {
                    if (AppMain.gmFixIsSpecialStage())
                    {
                        work.pos.x += AppMain.FX_F32_TO_FX32(400f);
                    }
                    else if (AppMain.gmFixIsTimeAttack())
                    {
                        work.pos.x += AppMain.FX_F32_TO_FX32(200f);
                    }
                }
                ((AppMain.GMS_FIX_PART_VIRTUAL_PAD)partVirtualPad).sub_parts[index1] = (AppMain.GMS_COCKPIT_2D_WORK)work;
            }
        }
        switch (AppMain.GsEnvGetLanguage())
        {
        case 3:
        case 5:
            ((AppMain.GMS_FIX_PART_VIRTUAL_PAD)partVirtualPad).pause_icon_frame[0] = 2f;
            ((AppMain.GMS_FIX_PART_VIRTUAL_PAD)partVirtualPad).pause_icon_frame[1] = 3f;
            break;

        default:
            ((AppMain.GMS_FIX_PART_VIRTUAL_PAD)partVirtualPad).pause_icon_frame[0] = 0.0f;
            ((AppMain.GMS_FIX_PART_VIRTUAL_PAD)partVirtualPad).pause_icon_frame[1] = 1f;
            break;
        }
        AppMain.amFlagOff(ref partVirtualPad.flag, 2U);
    }