// Token: 0x06000EEE RID: 3822 RVA: 0x00084094 File Offset: 0x00082294
 private static void DmSoundPauseStageBGM(int fade_frame)
 {
     if (AppMain.dm_sound_bgm_scb != null)
     {
         GsSound.PauseBgm(AppMain.dm_sound_bgm_scb, fade_frame);
     }
 }
Beispiel #2
0
    // Token: 0x06000269 RID: 617 RVA: 0x00013B7C File Offset: 0x00011D7C
    private static void gmGmkStopperLockWait(OBS_OBJECT_WORK obj_work)
    {
        AppMain.GMS_GMK_STOPPER_WORK gms_GMK_STOPPER_WORK = (AppMain.GMS_GMK_STOPPER_WORK)obj_work;
        if (gms_GMK_STOPPER_WORK.ply_work != AppMain.g_gm_main_system.ply_work[(int)((UIntPtr)0)] ||
            gms_GMK_STOPPER_WORK.ply_work.gmk_obj != obj_work || gms_GMK_STOPPER_WORK.ply_work.seq_state != 40)
        {
            AppMain.gmGmkStopperReset(obj_work);
            return;
        }

        GMS_PLAYER_WORK ply_work = gms_GMK_STOPPER_WORK.ply_work;

        if (obj_work.pos.x == ply_work.obj_work.pos.x && obj_work.pos.y == ply_work.obj_work.pos.y)
        {
            if (gms_GMK_STOPPER_WORK.call_slot_id >= 0)
            {
                AppMain.GmGmkSlotStartRequest(gms_GMK_STOPPER_WORK.call_slot_id, ply_work);
                obj_work.ppFunc = AppMain.gmGmkStopperStay_Slot;
                GmSound.PlaySE("Casino3");
                return;
            }

            obj_work.ppFunc = AppMain.gmGmkStopperStay_Norm;
            if (gms_GMK_STOPPER_WORK.se_handle != null)
            {
                GsSound.StopSE(gms_GMK_STOPPER_WORK.se_handle);
                GsSound.FreeSeHandle(gms_GMK_STOPPER_WORK.se_handle);
            }

            gms_GMK_STOPPER_WORK.se_handle       = GsSound.AllocSeHandle();
            gms_GMK_STOPPER_WORK.se_handle.flag |= 2147483648U;
            GmSound.PlaySE("Casino3", gms_GMK_STOPPER_WORK.se_handle);
        }
    }
Beispiel #3
0
 // Token: 0x06000D10 RID: 3344 RVA: 0x00074A5A File Offset: 0x00072C5A
 private static void GsInitUser()
 {
     AppMain.GsMainSysInfoInit(AppMain.GsGetMainSysInfo());
     AppMain.mtTaskInitSystem();
     AppMain.SyInitEvtSys(AppMain._gs_evt_data, 15, 1, true, 256, 14);
     GsSound.Init();
 }
Beispiel #4
0
    // Token: 0x060017B8 RID: 6072 RVA: 0x000D24D8 File Offset: 0x000D06D8
    private static void dmManualInit()
    {
        AppMain.dm_manual_mgr_p.tcb = AppMain.MTM_TASK_MAKE_TCB(AppMain.dmManualProcMain, AppMain.dmManualDest, 0U, 32767, 12288U, 10, () => new AppMain.DMS_MANUAL_MAIN_WORK(), "MANUAL_MAIN");
        AppMain.DMS_MANUAL_MAIN_WORK dms_MANUAL_MAIN_WORK = (AppMain.DMS_MANUAL_MAIN_WORK)AppMain.dm_manual_mgr_p.tcb.work;
        dms_MANUAL_MAIN_WORK.draw_state = (AppMain.AoActSysGetDrawStateEnable() ? 1U : 0U);
        AppMain.AoActSysSetDrawStateEnable(dms_MANUAL_MAIN_WORK.draw_state != 0U);
        if (dms_MANUAL_MAIN_WORK.draw_state != 0U)
        {
            AppMain.dm_manual_draw_state = AppMain.AoActSysGetDrawState();
            AppMain.AoActSysSetDrawState(AppMain.dm_manual_draw_state);
        }
        if (AppMain.GeEnvGetDecideKey() == AppMain.GSE_DECIDE_KEY.GSD_DECIDE_KEY_O)
        {
            dms_MANUAL_MAIN_WORK.is_jp_region = true;
        }
        else
        {
            dms_MANUAL_MAIN_WORK.is_jp_region = false;
        }
        AppMain.dmManualSetInitData(dms_MANUAL_MAIN_WORK);
        short cur_evt_id = AppMain.SyGetEvtInfo().cur_evt_id;

        if (cur_evt_id == 6 || cur_evt_id == 11)
        {
            AppMain.dm_manual_is_pause_maingame = true;
            dms_MANUAL_MAIN_WORK.se_handle      = GsSound.AllocSeHandle();
        }
        dms_MANUAL_MAIN_WORK.proc_update = AppMain.dmManualProcInit;
    }
 // Token: 0x06000EE7 RID: 3815 RVA: 0x00083F89 File Offset: 0x00082189
 private static void DmSoundInit()
 {
     GsSound.Reset();
     AppMain.dm_sound_bgm_scb    = GsSound.AssignScb(0);
     AppMain.dm_sound_jingle_scb = GsSound.AssignScb(0);
     GsSound.Begin(4096, 1U, 3);
 }
Beispiel #6
0
    // Token: 0x06000D95 RID: 3477 RVA: 0x00076A90 File Offset: 0x00074C90
    public static void GmRingInit()
    {
        MTS_TASK_TCB mts_TASK_TCB = AppMain.MTM_TASK_MAKE_TCB(AppMain.gmRingMain, AppMain.gmRingDest, 0U, 0, 7680U, 5, () => new AppMain.GMS_RING_SYS_WORK(), "GM RING MAIN");

        if (mts_TASK_TCB == null)
        {
            return;
        }
        AppMain.gm_ring_tcb      = mts_TASK_TCB;
        AppMain.gm_ring_sys_work = (AppMain.GMS_RING_SYS_WORK)mts_TASK_TCB.work;
        AppMain.gm_ring_sys_work.Clear();
#if NICE_PHYSICS
        for (int i = 0; i < 8; i++)
        {
            AppMain.gm_ring_sys_work.h_snd_ring[i]       = GsSound.AllocSeHandle();
            AppMain.gm_ring_sys_work.h_snd_ring[i].flag |= 2147483648U;
        }
#else
        AppMain.gm_ring_sys_work.h_snd_ring[0]       = GsSound.AllocSeHandle();
        AppMain.gm_ring_sys_work.h_snd_ring[1]       = GsSound.AllocSeHandle();
        AppMain.gm_ring_sys_work.h_snd_ring[0].flag |= 2147483648U;
        AppMain.gm_ring_sys_work.h_snd_ring[1].flag |= 2147483648U;
#endif
        AppMain.gm_ring_sys_work.player_num = 1;
        for (int i = 0; i < 96; i++)
        {
            AppMain.GMS_RING_WORK gms_RING_WORK = AppMain.gm_ring_sys_work.ring_list_buf[i];
            AppMain.gm_ring_sys_work.ring_list[i] = gms_RING_WORK;
        }
        AppMain.gm_ring_scale      = 4096;
        AppMain.gm_ring_fall_acc_x = 0;
        AppMain.gm_ring_fall_acc_y = 288;
        if (21 <= AppMain.g_gs_main_sys_info.stage_id && AppMain.g_gs_main_sys_info.stage_id <= 27)
        {
            AppMain.g_gm_ring_size     = (short)((double)(AppMain.OBD_LCD_X - AppMain.OBD_LCD_Y) * 1.4 + 20.0);
            AppMain.gm_ring_die_offset = (short)((double)(AppMain.OBD_LCD_X - AppMain.OBD_LCD_Y) * 1.4 + 72.0);
        }
        else
        {
            AppMain.g_gm_ring_size     = 20;
            AppMain.gm_ring_die_offset = 72;
        }
        AppMain.gm_ring_sys_work.rec_func       = AppMain.gmRingHitFuncNormal;
        AppMain.gm_ring_sys_work.col_func       = AppMain.gmRingMoveCollsion;
        AppMain.gm_ring_sys_work.ref_spd_base   = 8192;
        AppMain.gm_ring_sys_work.ring_draw_func = AppMain.gmRingDrawFuncRing3D;
        AppMain.gm_ring_sys_work.se_wait        = 0;
        AppMain.gm_ring_sys_work.color          = uint.MaxValue;
        if (AppMain.g_gs_main_sys_info.stage_id == 2 || AppMain.g_gs_main_sys_info.stage_id == 3)
        {
            AppMain.gm_ring_sys_work.color = 4292927743U;
        }
        else if (AppMain.g_gs_main_sys_info.stage_id == 14)
        {
            AppMain.gm_ring_sys_work.color = 3233857791U;
        }
        AppMain.gm_ring_sys_work.dir = 49152;
        AppMain.ObjDrawAction3dActionSet3DNNMaterial(AppMain.gm_ring_obj_3d, 0);
    }
 // Token: 0x06000EEA RID: 3818 RVA: 0x0008401C File Offset: 0x0008221C
 private static void DmSoundPlayBGM(string cue_name, int fade_frame)
 {
     if (AppMain.dm_sound_bgm_scb != null)
     {
         GsSound.PlayBgm(AppMain.dm_sound_bgm_scb, cue_name, fade_frame);
     }
     AppMain.dm_sound_bgm_scb.flag |= 2147483648U;
 }
 // Token: 0x06000EEC RID: 3820 RVA: 0x0008404F File Offset: 0x0008224F
 private static void DmSoundPlayMenuBGM(int idx, int fade_frame)
 {
     if (AppMain.dm_sound_bgm_scb != null)
     {
         GsSound.PlayBgm(AppMain.dm_sound_bgm_scb, AppMain.dm_sound_bgm_name_list[idx], fade_frame);
     }
     AppMain.dm_sound_bgm_scb.flag |= 2147483648U;
 }
Beispiel #9
0
 // Token: 0x06001B26 RID: 6950 RVA: 0x000F7D84 File Offset: 0x000F5F84
 private static void gmGmkPressWallSeStop(OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_GMK_PWALL_WORK gms_GMK_PWALL_WORK = (AppMain.GMS_GMK_PWALL_WORK)obj_work;
     if (gms_GMK_PWALL_WORK.se_handle != null)
     {
         GsSound.StopSeHandle(gms_GMK_PWALL_WORK.se_handle);
         GsSound.FreeSeHandle(gms_GMK_PWALL_WORK.se_handle);
         gms_GMK_PWALL_WORK.se_handle = null;
     }
 }
Beispiel #10
0
 // Token: 0x06000275 RID: 629 RVA: 0x000145A0 File Offset: 0x000127A0
 private static void gmGmkSpCtpltSeStop(OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_GMK_SPCTPLT_WORK gms_GMK_SPCTPLT_WORK = (AppMain.GMS_GMK_SPCTPLT_WORK)obj_work;
     if (gms_GMK_SPCTPLT_WORK.se_handle != null)
     {
         GsSound.StopSeHandle(gms_GMK_SPCTPLT_WORK.se_handle);
         GsSound.FreeSeHandle(gms_GMK_SPCTPLT_WORK.se_handle);
         gms_GMK_SPCTPLT_WORK.se_handle = null;
     }
 }
Beispiel #11
0
 // Token: 0x0600066F RID: 1647 RVA: 0x00039200 File Offset: 0x00037400
 public static void gmGmkTruckInitMain(OBS_OBJECT_WORK obj_work, GMS_PLAYER_WORK ply_work)
 {
     AppMain.UNREFERENCED_PARAMETER(ply_work);
     AppMain.GMS_GMK_TRUCK_WORK gms_GMK_TRUCK_WORK = (AppMain.GMS_GMK_TRUCK_WORK)obj_work;
     obj_work.flag      |= 2U;
     obj_work.move_flag |= 8448U;
     obj_work.ppFunc     = AppMain.gmGmkTruckMain;
     AppMain.gmGmkTruckCreateSparkEfct(gms_GMK_TRUCK_WORK, 27);
     gms_GMK_TRUCK_WORK.h_snd_lorry = GsSound.AllocSeHandle();
 }
Beispiel #12
0
 // Token: 0x06000751 RID: 1873 RVA: 0x00040498 File Offset: 0x0003E698
 public static void gmGmkSwWallFwInit(OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_GMK_SWWALL_WORK gms_GMK_SWWALL_WORK = (AppMain.GMS_GMK_SWWALL_WORK)obj_work;
     obj_work.flag  &= 4294967279U;
     obj_work.ppFunc = AppMain.gmGmkSwWallFwMain;
     obj_work.col_work.obj_col.obj = obj_work;
     if (gms_GMK_SWWALL_WORK.h_snd != null)
     {
         GsSound.StopSE(gms_GMK_SWWALL_WORK.h_snd);
     }
 }
Beispiel #13
0
 // Token: 0x06000077 RID: 119 RVA: 0x00006310 File Offset: 0x00004510
 private static void gmGmkBumperDestFunc(MTS_TASK_TCB tcb)
 {
     AppMain.GMS_GMK_BUMPER_WORK gms_GMK_BUMPER_WORK = (tcb.work is AppMain.GMS_GMK_BUMPER_WORK) ? ((AppMain.GMS_GMK_BUMPER_WORK)tcb.work) : ((AppMain.GMS_GMK_BUMPER_WORK)AppMain.mtTaskGetTcbWork(tcb));
     if (gms_GMK_BUMPER_WORK.se_handle != null)
     {
         GsSound.StopSE(gms_GMK_BUMPER_WORK.se_handle);
         GsSound.FreeSeHandle(gms_GMK_BUMPER_WORK.se_handle);
         gms_GMK_BUMPER_WORK.se_handle = null;
     }
     AppMain.GmEnemyDefaultExit(tcb);
 }
Beispiel #14
0
 // Token: 0x0600066E RID: 1646 RVA: 0x000391BC File Offset: 0x000373BC
 public static void gmGmkTruckDest(MTS_TASK_TCB tcb)
 {
     AppMain.GMS_GMK_TRUCK_WORK gms_GMK_TRUCK_WORK = (AppMain.GMS_GMK_TRUCK_WORK)AppMain.mtTaskGetTcbWork(tcb);
     if (gms_GMK_TRUCK_WORK.h_snd_lorry != null)
     {
         GsSound.StopSE(gms_GMK_TRUCK_WORK.h_snd_lorry);
         GsSound.FreeSeHandle(gms_GMK_TRUCK_WORK.h_snd_lorry);
         gms_GMK_TRUCK_WORK.h_snd_lorry = null;
     }
     AppMain.GmEnemyDefaultExit(tcb);
 }
Beispiel #15
0
 // Token: 0x06000FE6 RID: 4070 RVA: 0x0008AAC8 File Offset: 0x00088CC8
 private static void gmGmkRockChaseTcbDest(MTS_TASK_TCB tcb)
 {
     AppMain.GMS_GMK_ROCK_CHASE_WORK gms_GMK_ROCK_CHASE_WORK = (AppMain.GMS_GMK_ROCK_CHASE_WORK)AppMain.mtTaskGetTcbWork(tcb);
     if (gms_GMK_ROCK_CHASE_WORK.se_handle != null)
     {
         GsSound.StopSE(gms_GMK_ROCK_CHASE_WORK.se_handle);
         GsSound.FreeSeHandle(gms_GMK_ROCK_CHASE_WORK.se_handle);
         gms_GMK_ROCK_CHASE_WORK.se_handle = null;
     }
     AppMain.GmEnemyDefaultExit(tcb);
 }
Beispiel #16
0
 // Token: 0x06000653 RID: 1619 RVA: 0x000382F8 File Offset: 0x000364F8
 private static void gmGmkWaterSliderEffectDestFunc(MTS_TASK_TCB tcb)
 {
     if (AppMain.g_gm_gmk_water_slider_se_handle != null)
     {
         GsSound.StopSE(AppMain.g_gm_gmk_water_slider_se_handle);
         GsSound.FreeSeHandle(AppMain.g_gm_gmk_water_slider_se_handle);
         AppMain.g_gm_gmk_water_slider_se_handle = null;
     }
     AppMain.GMM_PAD_VIB_STOP();
     AppMain.GmEffectDefaultExit(tcb);
     AppMain.g_gm_gmk_water_slider_effct_player = null;
 }
Beispiel #17
0
 // Token: 0x060017C0 RID: 6080 RVA: 0x000D2A71 File Offset: 0x000D0C71
 private static void dmManualProcFadeOut(AppMain.DMS_MANUAL_MAIN_WORK main_work)
 {
     if (AppMain.IzFadeIsEnd())
     {
         main_work.proc_update = AppMain.dmManualProcStopDraw;
         main_work.proc_draw   = null;
         if (main_work.se_handle != null)
         {
             GsSound.FreeSeHandle(main_work.se_handle);
             main_work.se_handle = null;
         }
     }
 }
Beispiel #18
0
    // Token: 0x06001B09 RID: 6921 RVA: 0x000F6198 File Offset: 0x000F4398
    private static void gmGmkPulleyBaseExit(MTS_TASK_TCB tcb)
    {
        OBS_OBJECT_WORK p = AppMain.mtTaskGetTcbWork(tcb);

        AppMain.GMS_GMK_PULLEY_WORK gms_GMK_PULLEY_WORK = (AppMain.GMS_GMK_PULLEY_WORK)p;
        if (gms_GMK_PULLEY_WORK.se_handle != null)
        {
            GsSound.StopSeHandle(gms_GMK_PULLEY_WORK.se_handle);
            GsSound.FreeSeHandle(gms_GMK_PULLEY_WORK.se_handle);
            gms_GMK_PULLEY_WORK.se_handle = null;
        }
        AppMain.GmEnemyDefaultExit(tcb);
    }
 // Token: 0x060007B7 RID: 1975 RVA: 0x000442D8 File Offset: 0x000424D8
 private void dmLogoSegaRunRightFunc(AppMain.DMS_LOGO_SEGA_WORK logo_work)
 {
     logo_work.timer++;
     if (logo_work.timer > 10)
     {
         logo_work.timer = 0;
         logo_work.func  = this.dmLogoSegaDispWaitFunc;
         GsSound.PlaySe("Sega_Logo", logo_work.h_se);
         if (AppMain.GsSystemBgmIsPlay())
         {
             logo_work.h_se.snd_ctrl_param.volume = 0f;
         }
     }
 }
 // Token: 0x060007AD RID: 1965 RVA: 0x00043EA4 File Offset: 0x000420A4
 private void dmLogoSegaEnd(AppMain.DMS_LOGO_SEGA_WORK logo_work)
 {
     this.dmLogoSegaActionDelete(logo_work);
     AppMain.g_obj.ppPre = null;
     AppMain.ObjObjectClearAllObject();
     AppMain.ObjPreExit();
     AppMain.ObjDrawESEffectSystemExit();
     AppMain.ObjExit();
     GsSound.StopSeHandle(logo_work.h_se);
     GsSound.FreeSeHandle(logo_work.h_se);
     GsSound.Halt();
     GsSound.End();
     GsSound.Reset();
 }
Beispiel #21
0
 // Token: 0x06000750 RID: 1872 RVA: 0x00040430 File Offset: 0x0003E630
 public static void gmGmkSwWallDest(MTS_TASK_TCB tcb)
 {
     AppMain.GMS_GMK_SWWALL_WORK gms_GMK_SWWALL_WORK = (AppMain.GMS_GMK_SWWALL_WORK)AppMain.mtTaskGetTcbWork(tcb);
     if ((gms_GMK_SWWALL_WORK.gmk_work.ene_com.enemy_flag & 2U) != 0U)
     {
         AppMain.ObjAction3dNNMotionRelease(gms_GMK_SWWALL_WORK.obj_3d_opt[1]);
     }
     if (gms_GMK_SWWALL_WORK.h_snd != null)
     {
         GsSound.StopSE(gms_GMK_SWWALL_WORK.h_snd);
         GsSound.FreeSeHandle(gms_GMK_SWWALL_WORK.h_snd);
         gms_GMK_SWWALL_WORK.h_snd = null;
     }
     AppMain.GmEnemyDefaultExit(tcb);
 }
Beispiel #22
0
 // Token: 0x06000075 RID: 117 RVA: 0x000061EC File Offset: 0x000043EC
 private static void gmGmkBumperInit(OBS_OBJECT_WORK obj_work, int bumper_type)
 {
     AppMain.GMS_ENEMY_3D_WORK gms_ENEMY_3D_WORK = (AppMain.GMS_ENEMY_3D_WORK)obj_work;
     AppMain.gmGmkBumperSetRect(gms_ENEMY_3D_WORK, bumper_type);
     obj_work.move_flag = 8448U;
     obj_work.dir.z     = AppMain.g_gm_gmk_bumper_angle_z[bumper_type];
     AppMain.ObjDrawObjectActionSet3DNNMaterial(obj_work, 0);
     obj_work.disp_flag |= 4194324U;
     obj_work.pos.z      = -122880;
     AppMain.GMS_GMK_BUMPER_WORK gms_GMK_BUMPER_WORK = (AppMain.GMS_GMK_BUMPER_WORK)gms_ENEMY_3D_WORK;
     gms_GMK_BUMPER_WORK.se_handle = GsSound.AllocSeHandle();
     obj_work.ppFunc = null;
     obj_work.ppMove = null;
     obj_work.ppOut  = AppMain.gmGmkBumperDrawFunc;
     AppMain.mtTaskChangeTcbDestructor(obj_work.tcb, AppMain.gmGmkBumperDestFunc);
 }
Beispiel #23
0
        // Token: 0x06002562 RID: 9570 RVA: 0x0014D0C4 File Offset: 0x0014B2C4
        private void fadeOut()
        {
            float num = 1f - this.m_procCount.GetCount() / 8U;

            this.m_act[0].scale = new Vector2(num, num);
            if (8U < this.m_procCount.GetCount())
            {
                foreach (AppMain.CMain_PauseMenu.SAction saction in this.m_act)
                {
                    AppMain.AoActDelete(saction.act);
                }
                GsSound.FreeSeHandle(this.m_se_handle);
                this.m_flag[7] = false;
                base.DetachTask();
            }
        }
    // 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);
    }
Beispiel #25
0
 // Token: 0x06001B1E RID: 6942 RVA: 0x000F7274 File Offset: 0x000F5474
 private static void gmGmkPressWallStay(OBS_OBJECT_WORK obj_work)
 {
     if (AppMain.g_obj.camera[0][0] >= obj_work.pos.x || (AppMain.g_gm_gamedat_zone_type_tbl[( int )AppMain.g_gs_main_sys_info.stage_id] == 2 && obj_work.user_flag != 0U))
     {
         AppMain.GMS_GMK_PWALL_WORK gms_GMK_PWALL_WORK = (AppMain.GMS_GMK_PWALL_WORK)obj_work;
         gms_GMK_PWALL_WORK.gmk_work.ene_com.col_work.obj_col.obj       = obj_work;
         gms_GMK_PWALL_WORK.gmk_work.ene_com.col_work.obj_col.diff_data = AppMain.g_gm_default_col;
         gms_GMK_PWALL_WORK.gmk_work.ene_com.col_work.obj_col.width     = 192;
         gms_GMK_PWALL_WORK.gmk_work.ene_com.col_work.obj_col.ofst_x    = -192;
         gms_GMK_PWALL_WORK.gmk_work.ene_com.col_work.obj_col.height    = 256;
         gms_GMK_PWALL_WORK.gmk_work.ene_com.col_work.obj_col.ofst_y    = 0;
         gms_GMK_PWALL_WORK.gmk_work.ene_com.col_work.obj_col.flag     |= 134217824U;
         AppMain.OBS_COLLISION_OBJ obj_col = gms_GMK_PWALL_WORK.gmk_work.ene_com.col_work.obj_col;
         obj_col.attr       &= 65534;
         obj_work.disp_flag &= 4294967263U;
         if (AppMain.g_gm_gamedat_zone_type_tbl[( int )AppMain.g_gs_main_sys_info.stage_id] == 2 && gms_GMK_PWALL_WORK.wall_height > 0)
         {
             AppMain.gmGmkPressWallCreateRail(obj_work, gms_GMK_PWALL_WORK.wall_height, gms_GMK_PWALL_WORK.master_posy);
         }
         if (AppMain.g_gm_gamedat_zone_type_tbl[( int )AppMain.g_gs_main_sys_info.stage_id] == 3)
         {
             AppMain.gmGmkPressWallCreateParts(obj_work, gms_GMK_PWALL_WORK.master_posy, gms_GMK_PWALL_WORK.wall_height);
             gms_GMK_PWALL_WORK.gmk_work.ene_com.rect_work[2].flag &= 4294967291U;
             gms_GMK_PWALL_WORK.gmk_work.ene_com.rect_work[0].flag &= 4294967291U;
             gms_GMK_PWALL_WORK.gmk_work.ene_com.rect_work[1].flag |= 4U;
             AppMain.OBS_RECT_WORK obs_RECT_WORK = gms_GMK_PWALL_WORK.gmk_work.ene_com.rect_work[1];
             AppMain.ObjRectWorkZSet(obs_RECT_WORK, -16, 0, -32, 0, 192, 32);
             obs_RECT_WORK.flag |= 4U;
             obs_RECT_WORK.flag |= 1024U;
             obj_work.flag      &= 4294967293U;
             obs_RECT_WORK.ppHit = AppMain.gmGmkPressWallZ4Hit;
         }
         if (AppMain.g_gm_gamedat_zone_type_tbl[( int )AppMain.g_gs_main_sys_info.stage_id] == 2 && obj_work.user_flag != 0U)
         {
             obj_work.user_flag_OBJECT = null;
         }
         else
         {
             AppMain.GMM_PAD_VIB_MID_TIME(60f);
             gms_GMK_PWALL_WORK.se_handle = GsSound.AllocSeHandle();
             GmSound.PlaySEForce("MovingWall", gms_GMK_PWALL_WORK.se_handle);
         }
         gms_GMK_PWALL_WORK.efct_obj = null;
         obj_work.ppFunc             = AppMain.gmGmkPressWallForce;
         AppMain.gmGmkPressWallForce(obj_work);
     }
 }
Beispiel #26
0
 // Token: 0x06000268 RID: 616 RVA: 0x00013AD4 File Offset: 0x00011CD4
 private static void gmGmkStopperReset(OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_GMK_STOPPER_WORK gms_GMK_STOPPER_WORK = (AppMain.GMS_GMK_STOPPER_WORK)obj_work;
     gms_GMK_STOPPER_WORK.gmk_work.ene_com.col_work.obj_col.obj = obj_work;
     obj_work.flag &= 4294967293U;
     gms_GMK_STOPPER_WORK.player_pass_timer         = 0;
     gms_GMK_STOPPER_WORK.ply_work                  = null;
     gms_GMK_STOPPER_WORK.gmk_work.obj_3d.mat_frame = 0f;
     obj_work.disp_flag |= 16U;
     obj_work.ppFunc     = AppMain.gmGmkStopperStay;
     if (gms_GMK_STOPPER_WORK.se_handle != null)
     {
         GsSound.StopSE(gms_GMK_STOPPER_WORK.se_handle);
         GsSound.FreeSeHandle(gms_GMK_STOPPER_WORK.se_handle);
         gms_GMK_STOPPER_WORK.se_handle = null;
     }
 }
Beispiel #27
0
 // Token: 0x06002554 RID: 9556 RVA: 0x0014C6F8 File Offset: 0x0014A8F8
 private void fadeInStart(int prio)
 {
     if (!AppMain.CMain_PauseMenu.canGoStageSelect())
     {
         AppMain.CMain_PauseMenu.local_create_action_table[11].idx = 2;
         AppMain.CMain_PauseMenu.local_create_action_table[14].idx = 7;
     }
     else
     {
         AppMain.CMain_PauseMenu.local_create_action_table[11].idx = 1;
         AppMain.CMain_PauseMenu.local_create_action_table[14].idx = 5;
     }
     if (AppMain.CMain_PauseMenu.isSpecialStage())
     {
         AppMain.CMain_PauseMenu.local_create_action_table[13].idx = 6;
     }
     else
     {
         AppMain.CMain_PauseMenu.local_create_action_table[13].idx = 4;
     }
     for (int i = 0; i < 17; i++)
     {
         AppMain.CMain_PauseMenu.SLocalCreateActionTable slocalCreateActionTable = AppMain.CMain_PauseMenu.local_create_action_table[i];
         A2S_AMA_HEADER ama = (A2S_AMA_HEADER)this.m_file[slocalCreateActionTable.file];
         AppMain.CMain_PauseMenu.SAction saction = this.m_act[i];
         saction.act     = AppMain.AoActCreate(ama, ( uint )slocalCreateActionTable.idx);
         saction.tex     = this.m_tex[slocalCreateActionTable.tex];
         saction.flag[0] = true;
         saction.flag[1] = true;
         saction.AcmInit();
     }
     for (int j = 0; j < 3; j++)
     {
         AppMain.CMain_PauseMenu.SAction saction2 = this.m_act[AppMain.CMain_PauseMenu.c_local_create_trg_table[j]];
         CTrgAoAction ctrgAoAction = this.m_trg[j];
         ctrgAoAction.Create(saction2.act);
     }
     this.m_flag[7]        = true;
     this.m_act[0].flag[1] = false;
     this.m_act[0].scale   = new Vector2(0f, 0f);
     this.m_se_handle      = GsSound.AllocSeHandle();
     base.AttachTask("gmPauseMenu.Execute", ( uint )prio, 0U, 0U);
     this.playSe(0);
     this.m_procCount.SetProc(this.fadeIn);
 }
 // Token: 0x06000EE8 RID: 3816 RVA: 0x00083FB4 File Offset: 0x000821B4
 private static void DmSoundExit()
 {
     GsSound.Halt();
     GsSound.End();
     if (AppMain.dm_sound_jingle_scb != null)
     {
         GsSound.StopBgm(AppMain.dm_sound_jingle_scb, 0);
         GsSound.ResignScb(AppMain.dm_sound_jingle_scb);
         AppMain.dm_sound_jingle_scb = null;
     }
     if (AppMain.dm_sound_bgm_scb != null)
     {
         GsSound.StopBgm(AppMain.dm_sound_bgm_scb, 0);
         GsSound.ResignScb(AppMain.dm_sound_bgm_scb);
         AppMain.dm_sound_bgm_scb = null;
     }
     GsSound.Reset();
 }
Beispiel #29
0
    // Token: 0x06000FEA RID: 4074 RVA: 0x0008AC68 File Offset: 0x00088E68
    private static void gmGmkRockChaseInit(OBS_OBJECT_WORK obj_work)
    {
        AppMain.GMS_ENEMY_3D_WORK gms_ENEMY_3D_WORK = (AppMain.GMS_ENEMY_3D_WORK)obj_work;
        AppMain.gmGmkRockSetRectWait(gms_ENEMY_3D_WORK);
        AppMain.ObjObjectFieldRectSet(obj_work, -28, -28, 28, 42);
        obj_work.disp_flag |= 4194304U;
        gms_ENEMY_3D_WORK.ene_com.target_obj = AppMain.g_gm_main_system.ply_work[( int )(( UIntPtr )0)].obj_work;
        obj_work.pos.z = -131072;
        AppMain.GMS_GMK_ROCK_CHASE_WORK gms_GMK_ROCK_CHASE_WORK = (AppMain.GMS_GMK_ROCK_CHASE_WORK)obj_work;
        ushort angle_z = AppMain.mtMathRand();

        AppMain.gmGmkRockChaseSetAngleZ(gms_GMK_ROCK_CHASE_WORK, angle_z);
        obj_work.user_work = ( uint )AppMain.mtMathRand();
        gms_GMK_ROCK_CHASE_WORK.se_handle = GsSound.AllocSeHandle();
        obj_work.ppFunc = null;
        obj_work.ppMove = AppMain.gmGmkRockMoveFunc;
        obj_work.ppOut  = AppMain.gmGmkRockChaseDrawFunc;
        AppMain.mtTaskChangeTcbDestructor(obj_work.tcb, AppMain.gmGmkRockChaseTcbDest);
    }
    // Token: 0x060007AA RID: 1962 RVA: 0x00043B1C File Offset: 0x00041D1C
    private void dmLogoSegaStart()
    {
        NNS_RGBA nns_RGBA = new NNS_RGBA(1f, 1f, 1f, 1f);
        NNS_RGB  nns_RGB  = new NNS_RGB(1f, 1f, 1f);

        this.dmLogoSegaObjSysytemInit();
        GsSound.Reset();
        GsSound.Begin(3, 32767U, 0);
        MTS_TASK_TCB mts_TASK_TCB = AppMain.MTM_TASK_MAKE_TCB(this.dmLogoSegaMainFunc, null, 0U, 0, 4096U, 0, () => new AppMain.DMS_LOGO_SEGA_WORK(), "DM_LSEGA_MAIN");

        AppMain.DMS_LOGO_SEGA_WORK dms_LOGO_SEGA_WORK = (AppMain.DMS_LOGO_SEGA_WORK)mts_TASK_TCB.work;
        AppMain.nnSetPrimitive3DMaterial(ref nns_RGBA, ref nns_RGB, 1f);
        AppMain.AoActSysSetDrawStateEnable(false);
        this.dmLogoSegaActionCreate(dms_LOGO_SEGA_WORK);
        dms_LOGO_SEGA_WORK.ply_obj = this.dmLogoSegaCreatePlayer();
        dms_LOGO_SEGA_WORK.timer   = 0;
        dms_LOGO_SEGA_WORK.func    = this.dmLogoSegaStartWaitFunc;
        dms_LOGO_SEGA_WORK.h_se    = GsSound.AllocSeHandle();
    }