コード例 #1
0
    // Token: 0x06001563 RID: 5475 RVA: 0x000B9B34 File Offset: 0x000B7D34
    private static void gmGmkLoopExecuteCamera(int loop_x, int loop_y)
    {
        OBS_CAMERA obs_CAMERA = ObjCamera.Get(0);

        GmCamera.PosSet(AppMain.FX_F32_TO_FX32(obs_CAMERA.pos.x) + loop_x, -AppMain.FX_F32_TO_FX32(obs_CAMERA.pos.y) + loop_y, AppMain.FX_F32_TO_FX32(obs_CAMERA.pos.z));
        AppMain.ObjObjectCameraSet(AppMain.FXM_FLOAT_TO_FX32(obs_CAMERA.disp_pos.x - ( float )(AppMain.OBD_LCD_X / 2)), AppMain.FXM_FLOAT_TO_FX32(-obs_CAMERA.disp_pos.y - ( float )(AppMain.OBD_LCD_Y / 2)), AppMain.FXM_FLOAT_TO_FX32(obs_CAMERA.disp_pos.x - ( float )(AppMain.OBD_LCD_X / 2)), AppMain.FXM_FLOAT_TO_FX32(-obs_CAMERA.disp_pos.y - ( float )(AppMain.OBD_LCD_Y / 2)));
        GmCamera.SetClipCamera(obs_CAMERA);
    }
コード例 #2
0
    // Token: 0x06000DC8 RID: 3528 RVA: 0x00079848 File Offset: 0x00077A48
    private static OBS_OBJECT_WORK GmGmkStartInit(AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type)
    {
        if ((AppMain.g_gs_main_sys_info.game_flag & 4U) == 0U)
        {
            AppMain.g_gm_main_system.resume_pos_x = pos_x;
            AppMain.g_gm_main_system.resume_pos_y = pos_y - 4096;
        }

        eve_rec.pos_x = byte.MaxValue;
        GmCamera.PosSet(AppMain.g_gm_main_system.resume_pos_x, AppMain.g_gm_main_system.resume_pos_y, 0);
        OBS_CAMERA obs_CAMERA = ObjCamera.Get(AppMain.g_obj.glb_camera_id);

        AppMain.ObjObjectCameraSet(
            AppMain.FXM_FLOAT_TO_FX32((obs_CAMERA.disp_pos.x - (float)(AppMain.OBD_LCD_X / 2))),
            AppMain.FXM_FLOAT_TO_FX32((-obs_CAMERA.disp_pos.y - (float)(AppMain.OBD_LCD_Y / 2))),
            AppMain.FXM_FLOAT_TO_FX32((obs_CAMERA.disp_pos.x - (float)(AppMain.OBD_LCD_X / 2))),
            AppMain.FXM_FLOAT_TO_FX32((-obs_CAMERA.disp_pos.y - (float)(AppMain.OBD_LCD_Y / 2))));
        GmCamera.SetClipCamera(obs_CAMERA);
        return(null);
    }