Exemplo n.º 1
0
 // Token: 0x06000611 RID: 1553 RVA: 0x00035BCC File Offset: 0x00033DCC
 private static void dmStfrlMdlCtrlRingDrawFunc(AppMain.OBS_OBJECT_WORK obj_work)
 {
     AppMain.DMS_STFRL_RING_WORK dms_STFRL_RING_WORK = (AppMain.DMS_STFRL_RING_WORK)obj_work;
     obj_work.dir.y = obj_work.dir.y;
     obj_work.obj_3d.draw_state.alpha.alpha = dms_STFRL_RING_WORK.alpha;
     for (int i = 0; i < 6; i++)
     {
         AppMain.VecFx32[] pos = dms_STFRL_RING_WORK.pos;
         int num = i;
         pos[num].x = pos[num].x + dms_STFRL_RING_WORK.spd_x[i];
         AppMain.VecFx32[] pos2 = dms_STFRL_RING_WORK.pos;
         int num2 = i;
         pos2[num2].y   = pos2[num2].y + dms_STFRL_RING_WORK.spd_y[i];
         obj_work.pos.x = dms_STFRL_RING_WORK.pos[i].x;
         obj_work.pos.y = dms_STFRL_RING_WORK.pos[i].y;
         obj_work.pos.z = dms_STFRL_RING_WORK.pos[i].z;
         if (i == 0)
         {
             obj_work.disp_flag &= 4294967279U;
         }
         else
         {
             obj_work.disp_flag |= 16U;
         }
         AppMain.ObjDrawActionSummary(obj_work);
     }
 }
Exemplo n.º 2
0
 // Token: 0x06000610 RID: 1552 RVA: 0x00035AC0 File Offset: 0x00033CC0
 private static void dmStfrlMdlCtrlRingProcNoDispIdle(AppMain.OBS_OBJECT_WORK obj_work)
 {
     AppMain.DMS_STFRL_RING_WORK dms_STFRL_RING_WORK = (AppMain.DMS_STFRL_RING_WORK)obj_work;
     for (int i = 0; i < 6; i++)
     {
         dms_STFRL_RING_WORK.spd_y[i] += 64;
     }
     dms_STFRL_RING_WORK.timer--;
     if (dms_STFRL_RING_WORK.timer <= 0)
     {
         obj_work.ppFunc           = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.dmStfrlMdlCtrlRingProcStartWait);
         dms_STFRL_RING_WORK.timer = 0;
         dms_STFRL_RING_WORK.disp_ring_pos_no++;
         if (dms_STFRL_RING_WORK.disp_ring_pos_no > 12)
         {
             dms_STFRL_RING_WORK.disp_ring_pos_no = 0;
         }
         dms_STFRL_RING_WORK.disp_efct_pos_no++;
         if (dms_STFRL_RING_WORK.disp_efct_pos_no > 12)
         {
             dms_STFRL_RING_WORK.disp_efct_pos_no = 0;
         }
         dms_STFRL_RING_WORK.start_pos.x = AppMain.dm_stfrl_ring_disp_pos_tbl[dms_STFRL_RING_WORK.disp_ring_pos_no][0];
         dms_STFRL_RING_WORK.start_pos.y = AppMain.dm_stfrl_ring_disp_pos_tbl[dms_STFRL_RING_WORK.disp_ring_pos_no][1];
     }
     if (dms_STFRL_RING_WORK.alpha <= 0f)
     {
         dms_STFRL_RING_WORK.alpha = 0f;
         return;
     }
     dms_STFRL_RING_WORK.alpha = dms_STFRL_RING_WORK.alpha_spd * ( float )dms_STFRL_RING_WORK.timer;
 }
Exemplo n.º 3
0
 // Token: 0x060005FA RID: 1530 RVA: 0x00034F50 File Offset: 0x00033150
 private static AppMain.DMS_STFRL_RING_WORK DmStfrlMdlCtrlSetRingObj(int delay_time, uint type)
 {
     AppMain.OBS_OBJECT_WORK     obs_OBJECT_WORK     = AppMain.OBM_OBJECT_TASK_DETAIL_INIT(24576, 0, 0, 0, () => new AppMain.DMS_STFRL_RING_WORK(), "RING_OBJ");
     AppMain.DMS_STFRL_RING_WORK dms_STFRL_RING_WORK = (AppMain.DMS_STFRL_RING_WORK)obs_OBJECT_WORK;
     obs_OBJECT_WORK.flag      |= 16U;
     obs_OBJECT_WORK.disp_flag |= 4194309U;
     obs_OBJECT_WORK.disp_flag &= 4294967263U;
     obs_OBJECT_WORK.disp_flag |= 134217728U;
     AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK, AppMain.dm_stfrl_ring_obj_3d[0], obs_OBJECT_WORK.obj_3d);
     AppMain.ObjObjectAction3dNNMaterialMotionLoad(obs_OBJECT_WORK, 0, null, null, 0, AppMain.readAMBFile(AppMain.ObjDataGet(4).pData));
     obs_OBJECT_WORK.disp_flag       |= 4194309U;
     obs_OBJECT_WORK.disp_flag       &= 4294967263U;
     obs_OBJECT_WORK.disp_flag       |= 150995456U;
     obs_OBJECT_WORK.obj_3d.drawflag |= 8388608U;
     obs_OBJECT_WORK.obj_3d.draw_state.alpha.alpha = 0f;
     obs_OBJECT_WORK.ppOut  = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.dmStfrlMdlCtrlRingDrawFunc);
     obs_OBJECT_WORK.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.dmStfrlMdlCtrlRingProcStartWait);
     dms_STFRL_RING_WORK.disp_ring_pos_no = ( int )type;
     dms_STFRL_RING_WORK.start_pos.x      = AppMain.dm_stfrl_ring_disp_pos_tbl[dms_STFRL_RING_WORK.disp_ring_pos_no][0];
     dms_STFRL_RING_WORK.start_pos.y      = AppMain.dm_stfrl_ring_disp_pos_tbl[dms_STFRL_RING_WORK.disp_ring_pos_no][1];
     dms_STFRL_RING_WORK.start_pos.z      = -12288;
     dms_STFRL_RING_WORK.efct_start_time  = delay_time;
     dms_STFRL_RING_WORK.disp_efct_pos_no = ( int )type;
     return(dms_STFRL_RING_WORK);
 }
Exemplo n.º 4
0
 // Token: 0x0600060D RID: 1549 RVA: 0x000357FC File Offset: 0x000339FC
 private static void dmStfrlMdlCtrlRingProcStartWait(AppMain.OBS_OBJECT_WORK obj_work)
 {
     AppMain.DMS_STFRL_RING_WORK dms_STFRL_RING_WORK = (AppMain.DMS_STFRL_RING_WORK)obj_work;
     if ((dms_STFRL_RING_WORK.flag & 1U) != 0U)
     {
         dms_STFRL_RING_WORK.timer++;
         if (dms_STFRL_RING_WORK.timer >= dms_STFRL_RING_WORK.efct_start_time)
         {
             obj_work.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.dmStfrlMdlCtrlRingProcInitSetup);
             AppMain.dmStfrlMdlCtrlCreateRingEfct(dms_STFRL_RING_WORK.start_pos.x + AppMain.dm_stfrl_ring_efct_disp_offset_tbl[dms_STFRL_RING_WORK.disp_efct_pos_no][0], dms_STFRL_RING_WORK.start_pos.y + AppMain.dm_stfrl_ring_efct_disp_offset_tbl[dms_STFRL_RING_WORK.disp_efct_pos_no][1]);
             AppMain.dmStfrlMdlCtrlCreateRingEfct(dms_STFRL_RING_WORK.start_pos.x + AppMain.dm_stfrl_ring_efct_disp_offset_tbl[dms_STFRL_RING_WORK.disp_efct_pos_no + 1][0], dms_STFRL_RING_WORK.start_pos.y + AppMain.dm_stfrl_ring_efct_disp_offset_tbl[dms_STFRL_RING_WORK.disp_efct_pos_no + 1][1]);
             AppMain.dmStfrlMdlCtrlCreateRingEfct(dms_STFRL_RING_WORK.start_pos.x + AppMain.dm_stfrl_ring_efct_disp_offset_tbl[dms_STFRL_RING_WORK.disp_efct_pos_no + 2][0], dms_STFRL_RING_WORK.start_pos.y + AppMain.dm_stfrl_ring_efct_disp_offset_tbl[dms_STFRL_RING_WORK.disp_efct_pos_no + 2][1]);
             dms_STFRL_RING_WORK.timer = 0;
             dms_STFRL_RING_WORK.flag &= 4294967294U;
         }
     }
 }
Exemplo n.º 5
0
    // Token: 0x0600060E RID: 1550 RVA: 0x0003591C File Offset: 0x00033B1C
    private static void dmStfrlMdlCtrlRingProcInitSetup(AppMain.OBS_OBJECT_WORK obj_work)
    {
        AppMain.DMS_STFRL_RING_WORK dms_STFRL_RING_WORK = (AppMain.DMS_STFRL_RING_WORK)obj_work;
        obj_work.obj_3d.draw_state.alpha.alpha = 0f;
        ushort num  = 10922;
        ushort num2 = 0;

        for (int i = 0; i < 6; i++)
        {
            dms_STFRL_RING_WORK.pos[i].x  = dms_STFRL_RING_WORK.start_pos.x;
            dms_STFRL_RING_WORK.pos[i].y  = dms_STFRL_RING_WORK.start_pos.y;
            dms_STFRL_RING_WORK.pos[i].z  = -3;
            dms_STFRL_RING_WORK.spd_x[i]  = AppMain.mtMathSin(( int )(( ushort )(( int )num2 + i * ( int )num)));
            dms_STFRL_RING_WORK.spd_y[i]  = AppMain.mtMathCos(( int )(( ushort )(( int )num2 + i * ( int )num)));
            dms_STFRL_RING_WORK.spd_y[i] += 512;
        }
        dms_STFRL_RING_WORK.alpha_spd = 0.1f;
        obj_work.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.dmStfrlMdlCtrlRingProcDispIdle);
    }
Exemplo n.º 6
0
 // Token: 0x0600060F RID: 1551 RVA: 0x00035A18 File Offset: 0x00033C18
 private static void dmStfrlMdlCtrlRingProcDispIdle(AppMain.OBS_OBJECT_WORK obj_work)
 {
     AppMain.DMS_STFRL_RING_WORK dms_STFRL_RING_WORK = (AppMain.DMS_STFRL_RING_WORK)obj_work;
     for (int i = 0; i < 6; i++)
     {
         dms_STFRL_RING_WORK.spd_y[i] += 64;
     }
     dms_STFRL_RING_WORK.timer++;
     if (dms_STFRL_RING_WORK.timer >= 10)
     {
         obj_work.ppFunc               = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.dmStfrlMdlCtrlRingProcNoDispIdle);
         dms_STFRL_RING_WORK.timer     = 60;
         dms_STFRL_RING_WORK.alpha_spd = 0.016666668f;
     }
     if (dms_STFRL_RING_WORK.alpha >= 1f)
     {
         dms_STFRL_RING_WORK.alpha = 1f;
         return;
     }
     dms_STFRL_RING_WORK.alpha = dms_STFRL_RING_WORK.alpha_spd * ( float )dms_STFRL_RING_WORK.timer;
 }