Beispiel #1
0
    // Token: 0x060005F2 RID: 1522 RVA: 0x00034A7C File Offset: 0x00032C7C
    private static void DmStfrlMdlCtrlSonicFlush()
    {
        AMS_AMB_HEADER ams_AMB_HEADER = AmFs.readAMBFile(GmPlayer.g_gm_player_data_work[(int)((UIntPtr)0)][0].pData);

        AppMain.GmGameDBuildRegFlushModel(AppMain.dm_stfrl_sonic_obj_3d_list, ams_AMB_HEADER.file_num);
        AppMain.dm_stfrl_sonic_obj_3d_list = null;
    }
    // Token: 0x060007A4 RID: 1956 RVA: 0x000438F0 File Offset: 0x00041AF0
    private void DmLogoSegaBuild()
    {
        AMS_AMB_HEADER[] array = new AMS_AMB_HEADER[2];
        AppMain.dm_logo_sega_build_tcb    = AppMain.MTM_TASK_MAKE_TCB(this.dmLogoSegaDataBuildMain, this.dmLogoSegaDataBuildDest, 0U, ushort.MaxValue, 4096U, 0, null, "DM_LSEGA_BUILD");
        AppMain.g_obj.def_user_light_flag = 1U;
        AppMain.GmGameDBuildModelBuildInit();
        this.dm_logo_sega_obj_3d_list = AppMain.GmGameDBuildRegBuildModel(AppMain.dm_logo_sega_data[0], AppMain.dm_logo_sega_data[1], 0U);
        AppMain.dm_logo_sega_aos_tex  = AppMain.New <AppMain.AOS_TEXTURE>(2);
        string dir;

        array[0]     = AmFs.readAMBFile(AmBind.Get(AppMain.dm_logo_sega_data[4], 1, out dir));
        array[0].dir = dir;
        array[1]     = AmFs.readAMBFile(AmBind.Get(AppMain.dm_logo_sega_data[3], 105, out dir));
        array[1].dir = dir;
        AppMain.AOS_TEXTURE[] array2 = AppMain.dm_logo_sega_aos_tex;
        for (int i = 0; i < 2; i++)
        {
            if (array[i] != null)
            {
                AppMain.AoTexBuild(array2[i], array[i]);
                AppMain.AoTexLoad(array2[i]);
            }
        }
        for (int i = 0; i < 2; i++)
        {
            AppMain.dm_logo_sega_efct_mdl_state[i] = AppMain.ObjAction3dESModelLoadToDwork(AppMain.dm_logo_sega_efct_mdl_data_work[i], ( AmbChunk )AmBind.Get(AppMain.dm_logo_sega_data[3], AppMain.dm_logo_sega_efct_mdl_id_tbl[i]), 0U);
        }
    }
Beispiel #3
0
    // Token: 0x060018BA RID: 6330 RVA: 0x000E1A90 File Offset: 0x000DFC90
    private void DmTitleOpBuild()
    {
        AMS_AMB_HEADER[] array = new AMS_AMB_HEADER[1];
        AppMain.dm_titleop_build_tcb = AppMain.MTM_TASK_MAKE_TCB(this.dmTitleOpDataBuildMain, this.dmTitleOpDataBuildDest, 0U, ushort.MaxValue, 4096U, 0, null, "DM_TOP_BUILD");
        AppMain.dm_titleop_aos_tex   = AppMain.New <AppMain.AOS_TEXTURE>(1);
        string dir = null;

        array[0]     = AmFs.readAMBFile(AmBind.Get(AppMain.dm_titleop_data[1], 1, out dir));
        array[0].dir = dir;
        AppMain.AOS_TEXTURE[] array2 = AppMain.dm_titleop_aos_tex;
        for (int i = 0; i < 1; i++)
        {
            AppMain.AoTexBuild(array2[i], array[i]);
            AppMain.AoTexLoad(array2[i]);
        }
        AppMain.ObjInit(4, 61435, 0, AppMain.GMD_OBJ_LCD_X, AppMain.GMD_OBJ_LCD_Y, ( float )AppMain.GSD_DISP_WIDTH, ( float )AppMain.GSD_DISP_HEIGHT);
        AppMain.ObjDataAlloc(10);
        AppMain.ObjDrawSetNNCommandStateTbl(0U, 0U, true);
        AppMain.ObjDrawSetNNCommandStateTbl(1U, 1U, true);
        AppMain.ObjDrawSetNNCommandStateTbl(2U, 2U, true);
        AppMain.ObjDrawSetNNCommandStateTbl(3U, 3U, true);
        AppMain.ObjDrawSetNNCommandStateTbl(4U, 4U, true);
        AppMain.ObjDrawSetNNCommandStateTbl(5U, 5U, true);
        AppMain.AoActSysClearPeak();
        AppMain.GmGameDBuildModelBuildInit();
        this.dm_titleop_obj_3d_list       = AppMain.GmGameDBuildRegBuildModel(( AMS_AMB_HEADER )AppMain.dm_titleop_mapfar_data[0], ( AMS_AMB_HEADER )AppMain.dm_titleop_mapfar_data[1], 0U);
        this.dm_titleop_water_obj_3d_list = AppMain.GmGameDBuildRegBuildModel(( AMS_AMB_HEADER )AppMain.dm_titleop_mapfar_data[3], ( AMS_AMB_HEADER )AppMain.dm_titleop_mapfar_data[1], 0U);
    }
Beispiel #4
0
    // Token: 0x06000776 RID: 1910 RVA: 0x00041E6C File Offset: 0x0004006C
    private static void GmGmkSsCircleFlush()
    {
        AMS_AMB_HEADER ams_AMB_HEADER = AmFs.readAMBFile(AppMain.GmGameDatGetGimmickData(900));

        AppMain.GmGameDBuildRegFlushModel(AppMain.gm_gmk_ss_circle_obj_3d_list, ams_AMB_HEADER.file_num);
        AppMain.gm_gmk_ss_circle_obj_tvx_list = null;
    }
Beispiel #5
0
    // Token: 0x060003F2 RID: 1010 RVA: 0x000203B4 File Offset: 0x0001E5B4
    public static void GmEneHariSenboFlush()
    {
        AMS_AMB_HEADER ams_AMB_HEADER = AmFs.readAMBFile(AppMain.GmGameDatGetEnemyData(658));

        AppMain.GmGameDBuildRegFlushModel(AppMain.gm_ene_harisenbo_obj_3d_list, ams_AMB_HEADER.file_num);
        AppMain.GmGameDBuildRegFlushModel(AppMain.gm_ene_harisenbo_r_obj_3d_list, ams_AMB_HEADER.file_num);
    }
Beispiel #6
0
    // Token: 0x06001406 RID: 5126 RVA: 0x000B1BAC File Offset: 0x000AFDAC
    public static void GmGmkBobbinFlush()
    {
        AMS_AMB_HEADER ams_AMB_HEADER = AmFs.readAMBFile(AppMain.GmGameDatGetGimmickData(863));

        AppMain.GmGameDBuildRegFlushModel(AppMain.g_gm_gmk_bobbin_obj_3d_list, ams_AMB_HEADER.file_num);
        AppMain.g_gm_gmk_bobbin_obj_3d_list = null;
    }
Beispiel #7
0
    // Token: 0x060008AA RID: 2218 RVA: 0x0004E600 File Offset: 0x0004C800
    public static void GmGmkRockRideFlush()
    {
        AMS_AMB_HEADER ams_AMB_HEADER = AmFs.readAMBFile(AppMain.GmGameDatGetGimmickData(816));

        AppMain.GmGameDBuildRegFlushModel(AppMain.g_gm_gmk_rock_ride_obj_3d_list, ams_AMB_HEADER.file_num);
        AppMain.g_gm_gmk_rock_ride_obj_3d_list = null;
    }
Beispiel #8
0
    // Token: 0x060008A9 RID: 2217 RVA: 0x0004E5B8 File Offset: 0x0004C7B8
    public static void GmGmkRockRideBuild()
    {
        AMS_AMB_HEADER ams_AMB_HEADER = AmFs.readAMBFile(AppMain.GmGameDatGetGimmickData(817));

        AppMain.TXB_HEADER txb = AppMain.readTXBfile(AmBind.Get(ams_AMB_HEADER, 0));
        AppMain.g_gm_gmk_rock_ride_obj_3d_list = AppMain.GmGameDBuildRegBuildModel(AmFs.readAMBFile(AppMain.GmGameDatGetGimmickData(816)), ams_AMB_HEADER, 0U, txb);
    }
Beispiel #9
0
    // Token: 0x06000532 RID: 1330 RVA: 0x0002BE4C File Offset: 0x0002A04C
    private static void GmGmkTarzanRopeFlush()
    {
        AMS_AMB_HEADER ams_AMB_HEADER = AmFs.readAMBFile(AppMain.GmGameDatGetGimmickData(829));

        AppMain.GmGameDBuildRegFlushModel(AppMain.g_gm_gmk_tarzan_rope_obj_3d_list, ams_AMB_HEADER.file_num);
        AppMain.g_gm_gmk_tarzan_rope_obj_3d_list = null;
    }
Beispiel #10
0
    // Token: 0x06000775 RID: 1909 RVA: 0x00041E20 File Offset: 0x00040020
    private static void GmGmkSsCircleBuild()
    {
        AppMain.gm_gmk_ss_circle_obj_3d_list = AppMain.GmGameDBuildRegBuildModel(AmFs.readAMBFile(AppMain.GmGameDatGetGimmickData(900)), AmFs.readAMBFile(AppMain.GmGameDatGetGimmickData(901)), 0U);
        AMS_AMB_HEADER ams_AMB_HEADER = AmFs.readAMBFile(AppMain.GmGameDatGetGimmickData(902));

        AppMain.gm_gmk_ss_circle_obj_tvx_list = ams_AMB_HEADER;
    }
Beispiel #11
0
    // Token: 0x060003E2 RID: 994 RVA: 0x0001F584 File Offset: 0x0001D784
    private static void GmEneMereonFlush()
    {
        AMS_AMB_HEADER ams_AMB_HEADER = AmFs.readAMBFile(AppMain.GmGameDatGetEnemyData(670));

        AppMain.GmGameDBuildRegFlushModel(AppMain.gm_ene_mereon_obj_3d_list, ams_AMB_HEADER.file_num);
        ams_AMB_HEADER = AmFs.readAMBFile(AppMain.GmGameDatGetEnemyData(671));
        AppMain.GmGameDBuildRegFlushModel(AppMain.gm_ene_mereon_r_obj_3d_list, ams_AMB_HEADER.file_num);
    }
Beispiel #12
0
    // Token: 0x060008C5 RID: 2245 RVA: 0x0004F6EC File Offset: 0x0004D8EC
    public static void GmGmkNeedleFlush()
    {
        AMS_AMB_HEADER ams_AMB_HEADER = AmFs.readAMBFile(AppMain.GmGameDatGetGimmickData(822));

        AppMain.GmGameDBuildRegFlushModel(AppMain.gm_gmk_needle_obj_3d_list, ams_AMB_HEADER.file_num);
        AppMain.gm_gmk_needle_obj_3d_list  = null;
        AppMain.gm_gmk_needle_obj_tvx_list = null;
    }
Beispiel #13
0
    // Token: 0x060003F1 RID: 1009 RVA: 0x0002031C File Offset: 0x0001E51C
    public static void GmEneHariSenboBuild()
    {
        AppMain.gm_ene_harisenbo_obj_3d_list = AppMain.GmGameDBuildRegBuildModel(AmFs.readAMBFile(AppMain.GmGameDatGetEnemyData(658)), AmFs.readAMBFile(AppMain.GmGameDatGetEnemyData(659)), 0U);
        AMS_AMB_HEADER ams_AMB_HEADER = AmFs.readAMBFile(AppMain.GmGameDatGetEnemyData(659));
        AmbChunk       ambChunk       = AmBind.Get(ams_AMB_HEADER, ams_AMB_HEADER.file_num - 1, out ams_AMB_HEADER.dir);

        AppMain.TXB_HEADER txb = AppMain.readTXBfile(ambChunk.array, ambChunk.offset);
        AppMain.gm_ene_harisenbo_r_obj_3d_list = AppMain.GmGameDBuildRegBuildModel(AmFs.readAMBFile(AppMain.GmGameDatGetEnemyData(658)), AmFs.readAMBFile(AppMain.GmGameDatGetEnemyData(659)), 0U, txb);
    }
Beispiel #14
0
    // Token: 0x060005F4 RID: 1524 RVA: 0x00034C40 File Offset: 0x00032E40
    private static void DmStfrlMdlCtrlBoss1Build()
    {
        AMS_AMB_HEADER mdl_amb = AmFs.readAMBFile(AppMain.ObjDataLoadAmbIndex(null, 0, AppMain.g_gm_gamedat_enemy_arc));
        AMS_AMB_HEADER tex_amb = AmFs.readAMBFile(AppMain.ObjDataLoadAmbIndex(null, 1, AppMain.g_gm_gamedat_enemy_arc));

        AppMain.dm_stfrl_boss1_obj_3d_list = AppMain.GmGameDBuildRegBuildModel(mdl_amb, tex_amb, 0U);
        AppMain.ObjDataLoadAmbIndex(AppMain.ObjDataGet(728), 2, AppMain.g_gm_gamedat_enemy_arc);
        AppMain.ObjDataLoadAmbIndex(AppMain.ObjDataGet(729), 3, AppMain.g_gm_gamedat_enemy_arc);
    }
Beispiel #15
0
    // Token: 0x06001961 RID: 6497 RVA: 0x000E5898 File Offset: 0x000E3A98
    public static void ObjAction3dESTextureLoad(AppMain.OBS_ACTION3D_ES_WORK obj_3des, AppMain.OBS_DATA_WORK data_work, string filename, int index, AMS_AMB_HEADER archive, bool load_tex)
    {
        AMS_AMB_HEADER ams_AMB_HEADER = null;

        if (archive != null)
        {
            obj_3des.flag |= 131072U;
        }
        if (filename != null && filename != "")
        {
            ams_AMB_HEADER = AmFs.readAMBFile(AppMain.ObjDataLoad(data_work, filename, archive));
            if (archive != null && ams_AMB_HEADER == null)
            {
                obj_3des.flag &= 4294836223U;
                ams_AMB_HEADER = AmFs.readAMBFile(AppMain.ObjDataLoad(data_work, filename, null));
            }
        }
        else if (archive != null)
        {
            ams_AMB_HEADER = AmFs.readAMBFile(AppMain.ObjDataLoadAmbIndex(data_work, index, archive));
            if (ams_AMB_HEADER == null)
            {
                obj_3des.flag &= 4294836223U;
            }
        }
        else if (data_work != null)
        {
            ams_AMB_HEADER = AmFs.readAMBFile(AppMain.ObjDataGetInc(data_work));
        }
        if (ams_AMB_HEADER == null)
        {
            return;
        }
        obj_3des.ambtex = ams_AMB_HEADER;
        if (data_work != null)
        {
            obj_3des.ambtex_data_work = data_work;
        }
        if (load_tex)
        {
            AppMain.TXB_HEADER txb = AppMain.readTXBfile(AmBind.Get(ams_AMB_HEADER, 0));
            uint num = AppMain.amTxbGetCount(txb);
            obj_3des.texlistbuf = null;
            AppMain.nnSetUpTexlist(out obj_3des.texlist, ( int )num, ref obj_3des.texlistbuf);
            if (AppMain.obj_load_initial_set_flag)
            {
                AppMain.OBS_LOAD_INITIAL_WORK obs_LOAD_INITIAL_WORK = AppMain.obj_load_initial_work;
                if (obs_LOAD_INITIAL_WORK.es_num < 255)
                {
                    obs_LOAD_INITIAL_WORK.obj_3des[obs_LOAD_INITIAL_WORK.es_num] = obj_3des;
                    obs_LOAD_INITIAL_WORK.es_num++;
                }
            }
            obj_3des.tex_reg_index = AppMain.amTextureLoad(obj_3des.texlist, AppMain.amTxbGetTexFileList(txb), filename, ams_AMB_HEADER);
            obj_3des.flag         |= 1073741824U;
        }
    }
Beispiel #16
0
    // Token: 0x060018C7 RID: 6343 RVA: 0x000E21DC File Offset: 0x000E03DC
    private static void dmTitleOpLoadPostFuncMapFar(AppMain.DMS_LOGO_COM_LOAD_CONTEXT context)
    {
        AppMain.dm_titleop_data[context.no] = context.fs_req;
        AMS_AMB_HEADER ams_AMB_HEADER = AmFs.readAMBFile(AppMain.dm_titleop_data[context.no]);

        for (int i = 0; i < ams_AMB_HEADER.file_num; i++)
        {
            string         dir;
            AmbChunk       buf             = AmBind.Get(ams_AMB_HEADER, i, out dir);
            AMS_AMB_HEADER ams_AMB_HEADER2 = AmFs.readAMBFile(buf);
            ams_AMB_HEADER2.dir = dir;
            AppMain.dm_titleop_mapfar_data[i] = ams_AMB_HEADER2;
        }
    }
Beispiel #17
0
    // Token: 0x060004F3 RID: 1267 RVA: 0x0002A5F4 File Offset: 0x000287F4
    public static void GmDecoGlareSetData(AMS_AMB_HEADER amb_header)
    {
        AppMain.pIF.Clear();
        string dir;

        AppMain.pIF.amb_header     = AmFs.readAMBFile(AmBind.Get(amb_header, 1, out dir));
        AppMain.pIF.amb_header.dir = dir;
        AppMain.TXB_HEADER txb = AppMain.readTXBfile(AmBind.Get(AppMain.pIF.amb_header, 0));
        AppMain.pIF.tex_buf = AppMain.amTxbGetTexFileList(txb);
        AppMain.mppAssertNotImpl();
        AppMain.nnSetUpTexlist(out AppMain.pIF.texlist, AppMain.pIF.tex_buf.nTex, ref AppMain.pIF.texlistbuf);
        AppMain.pIF.regId    = AppMain.amTextureLoad(AppMain.pIF.texlist, AppMain.pIF.tex_buf, null, AppMain.pIF.amb_header);
        AppMain.pIF.drawFlag = 1;
        AppMain.pIF.texId    = 0;
    }
Beispiel #18
0
    // Token: 0x060009A4 RID: 2468 RVA: 0x00056B7C File Offset: 0x00054D7C
    public void DmLogoSonicBuild()
    {
        AMS_AMB_HEADER[] array = new AMS_AMB_HEADER[1];
        AppMain.dm_logo_sonic_build_tcb = AppMain.MTM_TASK_MAKE_TCB(this.dmLogoSonicDataBuildMain, this.dmLogoSonicDataBuildDest, 0U, ushort.MaxValue, 4096U, 0, null, "DM_LSONT_BUILD");
        AppMain.dm_logo_sonic_aos_tex   = AppMain.New <AppMain.AOS_TEXTURE>(1);
        string dir;

        array[0]     = AmFs.readAMBFile(AmBind.Get(AppMain.dm_logo_sonic_data[0], 1, out dir));
        array[0].dir = dir;
        AppMain.AOS_TEXTURE[] array2 = AppMain.dm_logo_sonic_aos_tex;
        for (int i = 0; i < 1; i++)
        {
            AppMain.AoTexBuild(array2[i], array[i]);
            AppMain.AoTexLoad(array2[i]);
        }
    }
Beispiel #19
0
    // Token: 0x06001169 RID: 4457 RVA: 0x00098DD8 File Offset: 0x00096FD8
    private static void GmWaterSurfaceBuildData()
    {
        int stage_id = AppMain.gmWaterSurfaceGameSystemGetStageId();
        int num      = AppMain.gmWaterSurfaceGameSystemGetZoneType(stage_id);

        if (num == 2)
        {
            AppMain.dwaterInit();
            AMS_AMB_HEADER ams_AMB_HEADER = AppMain.gmWaterSurfaceDataGetAmbHeader();
            AppMain.AoTexBuild(AppMain._dmap_water.tex_color, AmFs.readAMBFile(AmBind.Get(ams_AMB_HEADER, ams_AMB_HEADER.file_num - 1)));
            AppMain.AoTexLoad(AppMain._dmap_water.tex_color);
            AppMain.dwaterSetObjectAMB(ams_AMB_HEADER, ams_AMB_HEADER);
            uint objflag = 0U;
            AppMain.dwaterLoadObject(objflag);
        }
    }
Beispiel #20
0
 // Token: 0x06002550 RID: 9552 RVA: 0x0014C5C0 File Offset: 0x0014A7C0
 private void fileLoading()
 {
     if (!AmFs.amFsIsComplete(this.pause_amb))
     {
         return;
     }
     this.m_file[2] = AmFs.readAMBFile(this.pause_amb);
     AppMain.GsEnvGetLanguage();
     if (!AmFs.amFsIsComplete(this.lang_amb))
     {
         return;
     }
     this.m_file[3] = AmFs.readAMBFile(this.lang_amb);
     this.m_flag[4] = true;
     base.DetachTask();
 }
        // Token: 0x0600205A RID: 8282 RVA: 0x0013E04C File Offset: 0x0013C24C
        private void fileLoading()
        {
            bool flag = true;

            for (int i = 0; i < 2; i++)
            {
                if (!AmFs.amFsIsComplete(this.m_fs[i]))
                {
                    flag = false;
                    break;
                }
            }
            if (flag)
            {
                for (int j = 0; j < 2; j++)
                {
                    this.m_file[j] = this.m_fs[j];
                }
                for (uint num = 0U; num < 6U; num += 1U)
                {
                    AppMain.CMain.SLocalUnfoldTable slocalUnfoldTable = AppMain.CMain.c_local_unfold_table[(int)((UIntPtr)num)];
                    int file = (int)slocalUnfoldTable.file;
                    int num2 = 2;
                    if (file < num2)
                    {
                        string   text;
                        AmbChunk ambChunk = AmBind.Get(this.m_fs[(int)slocalUnfoldTable.file], (int)slocalUnfoldTable.index, out text);
                        object   obj;
                        if (AppMain.AoActIsAma(ambChunk.array, ambChunk.offset))
                        {
                            obj = A2S.readAMAFile(ambChunk);
                        }
                        else
                        {
                            obj = AmFs.readAMBFile(ambChunk);
                        }
                        this.m_file[(int)((UIntPtr)num)] = obj;
                    }
                }
                this.m_flag[4] = true;
                this.m_pTaskLink.DetachTask();
            }
        }
Beispiel #22
0
    // Token: 0x06001B71 RID: 7025 RVA: 0x000FB3A8 File Offset: 0x000F95A8
    private static void GmEfctZoneBuildDataLoopInit()
    {
        object obj = null;

        AppMain.GMS_EFCT_ZONE_CREATE_INFO gms_EFCT_ZONE_CREATE_INFO = AppMain.gm_efct_zone_create_info[AppMain.gm_efct_zone_target_zone_no];
        int num = 0;

        AppMain.OBS_DATA_WORK pWork = AppMain.ObjDataGet(6);
        AMS_AMB_HEADER        amb   = AmFs.readAMBFile(AppMain.ObjDataGetInc(pWork));

        AppMain.gm_efct_zone_model_reg_num = 1;
        if (AppMain.gm_efct_zone_model_reg_num > 0)
        {
            AppMain.gm_efct_zone_model_reg_id_list   = new int[AppMain.gm_efct_zone_model_reg_num];
            AppMain.gm_efct_zone_mdl_tex_reg_id_list = new int[AppMain.gm_efct_zone_model_reg_num];
            for (int i = 0; i < AppMain.gm_efct_zone_model_reg_num; i++)
            {
                AppMain.gm_efct_zone_model_reg_id_list[i]   = -1;
                AppMain.gm_efct_zone_mdl_tex_reg_id_list[i] = -1;
            }
        }
        AppMain.OBS_DATA_WORK obs_DATA_WORK = AppMain.ObjDataGet(509);
        AppMain.ObjDataLoadAmbIndex(obs_DATA_WORK, AppMain.gm_efct_zone_texamb_index_tbl[AppMain.gm_efct_zone_target_zone_no], amb);
        AppMain.gm_efct_zone_tex_reg_id = AppMain.ObjAction3dESTextureLoadToDwork(AppMain.ObjDataGet(510), AmFs.readAMBFile(obs_DATA_WORK.pData), ref obj);
        for (int j = 0; j < gms_EFCT_ZONE_CREATE_INFO.num; j++)
        {
            int model_idx      = gms_EFCT_ZONE_CREATE_INFO.zone_create_param[j].create_param.model_idx;
            int model_dwork_no = gms_EFCT_ZONE_CREATE_INFO.zone_create_param[j].model_dwork_no;
            int index          = AppMain.gmEfctZoneGetObjectDworkNo(model_dwork_no);
            int mdl_ambtex_idx = gms_EFCT_ZONE_CREATE_INFO.zone_create_param[j].mdl_ambtex_idx;
            int index2         = AppMain.gmEfctZoneGetMdlAmbtexDworkNo(model_dwork_no);
            int index3         = AppMain.gmEfctZoneGetMdlTexlistDworkNo(model_dwork_no);
            if (model_idx != -1)
            {
                obs_DATA_WORK = AppMain.ObjDataGet(index2);
                AppMain.ObjDataLoadAmbIndex(obs_DATA_WORK, mdl_ambtex_idx, amb);
                AppMain.gm_efct_zone_mdl_tex_reg_id_list[num] = AppMain.ObjAction3dESTextureLoadToDwork(AppMain.ObjDataGet(index3), AmFs.readAMBFile(obs_DATA_WORK.pData), ref obj);
                AppMain.ObjDataLoadAmbIndex(AppMain.ObjDataGet(model_dwork_no), model_idx, amb);
                AppMain.gm_efct_zone_model_reg_id_list[num] = AppMain.ObjAction3dESModelLoadToDwork(AppMain.ObjDataGet(index), ( AmbChunk )AppMain.ObjDataGet(model_dwork_no).pData, 0U);
                num++;
            }
        }
    }
 // Token: 0x060000A3 RID: 163 RVA: 0x00008A10 File Offset: 0x00006C10
 private static void GmEfctCmnBuildDataLoopInit()
 {
     AppMain.OBS_DATA_WORK pWork = AppMain.ObjDataGet(5);
     AppMain.eff_cmn_arc = AmFs.readAMBFile(AppMain.ObjDataGetInc(pWork));
     AppMain.gm_efct_cmn_model_reg_num = 97;
     if (AppMain.gm_efct_cmn_model_reg_num > 0)
     {
         AppMain.gm_efct_cmn_model_reg_id_list   = new int[AppMain.gm_efct_cmn_model_reg_num];
         AppMain.gm_efct_cmn_mdl_tex_reg_id_list = new int[AppMain.gm_efct_cmn_model_reg_num];
         for (int i = 0; i < AppMain.gm_efct_cmn_model_reg_num; i++)
         {
             AppMain.gm_efct_cmn_model_reg_id_list[i] = (AppMain.gm_efct_cmn_mdl_tex_reg_id_list[i] = -1);
         }
     }
     AppMain.ambtex_dwork = AppMain.ObjDataGet(17);
     AppMain.ObjDataLoadAmbIndex(AppMain.ambtex_dwork, 97, AppMain.eff_cmn_arc);
     AppMain.gm_efct_cmn_tex_reg_id = AppMain.ObjAction3dESTextureLoadToDwork(AppMain.ObjDataGet(18), AmFs.readAMBFile(AppMain.ambtex_dwork.pData), ref AppMain.texlistbuf);
     AppMain.GmEfctCmnBuildDataLoopInitPartWorking = true;
 }
    // Token: 0x06000960 RID: 2400 RVA: 0x00054AFC File Offset: 0x00052CFC
    public static void GmEfctBossCmnBuildDataInit()
    {
        object obj = null;
        int    num = 0;

        AppMain.OBS_DATA_WORK pWork = AppMain.ObjDataGet(15);
        AMS_AMB_HEADER        amb   = AmFs.readAMBFile(AppMain.ObjDataGetInc(pWork));

        AppMain.gm_efct_boss_cmn_model_reg_num = 6;
        if (AppMain.gm_efct_boss_cmn_model_reg_num > 0)
        {
            AppMain.gm_efct_boss_cmn_model_reg_id_list   = new int[AppMain.gm_efct_boss_cmn_model_reg_num];
            AppMain.gm_efct_boss_cmn_mdl_tex_reg_id_list = new int[AppMain.gm_efct_boss_cmn_model_reg_num];
            for (int i = 0; i < AppMain.gm_efct_boss_cmn_model_reg_num; i++)
            {
                AppMain.gm_efct_boss_cmn_model_reg_id_list[i]   = -1;
                AppMain.gm_efct_boss_cmn_mdl_tex_reg_id_list[i] = -1;
            }
        }
        AppMain.OBS_DATA_WORK obs_DATA_WORK = AppMain.ObjDataGet(621);
        AppMain.ObjDataLoadAmbIndex(obs_DATA_WORK, 6, amb);
        AppMain.gm_efct_boss_cmn_tex_reg_id = AppMain.ObjAction3dESTextureLoadToDwork(AppMain.ObjDataGet(622), AmFs.readAMBFile(obs_DATA_WORK.pData), ref obj);
        for (int j = 0; j < 6; j++)
        {
            AppMain.GMS_EFCT_BOSS_CMN_CREATE_PARAM gms_EFCT_BOSS_CMN_CREATE_PARAM = AppMain.gm_efct_boss_cmn_create_param_tbl[j];
            int model_idx      = gms_EFCT_BOSS_CMN_CREATE_PARAM.create_param.model_idx;
            int index          = AppMain.gmEfctBossCmnGetModelDworkNo(j);
            int index2         = AppMain.gmEfctBossCmnGetObjectDworkNo(j);
            int mdl_ambtex_idx = gms_EFCT_BOSS_CMN_CREATE_PARAM.mdl_ambtex_idx;
            int index3         = AppMain.gmEfctBossCmnGetMdlAmbtexDworkNo(j);
            int index4         = AppMain.gmEfctBossCmnGetMdlTexlistDworkNo(j);
            if (model_idx != -1)
            {
                obs_DATA_WORK = AppMain.ObjDataGet(index3);
                AppMain.ObjDataLoadAmbIndex(obs_DATA_WORK, mdl_ambtex_idx, amb);
                AppMain.gm_efct_boss_cmn_mdl_tex_reg_id_list[num] = AppMain.ObjAction3dESTextureLoadToDwork(AppMain.ObjDataGet(index4), AmFs.readAMBFile(obs_DATA_WORK.pData), ref obj);
                AppMain.ObjDataLoadAmbIndex(AppMain.ObjDataGet(index), model_idx, amb);
                AppMain.gm_efct_boss_cmn_model_reg_id_list[num] = AppMain.ObjAction3dESModelLoadToDwork(AppMain.ObjDataGet(index2), ( AmbChunk )AppMain.ObjDataGet(index).pData, 0U);
                num++;
            }
        }
    }
Beispiel #25
0
 // Token: 0x060017B1 RID: 6065 RVA: 0x000D23A8 File Offset: 0x000D05A8
 private static void DmManualBuild(AMS_AMB_HEADER[] arc_amb)
 {
     AppMain.dm_manual_mgr.Clear();
     AppMain.dm_manual_mgr_p = AppMain.dm_manual_mgr;
     for (int i = 0; i < 2; i++)
     {
         AppMain.dm_manual_tex[i].Clear();
     }
     for (int i = 0; i < 2; i++)
     {
         AppMain.dm_manual_ama[i] = A2S.readAMAFile(AmBind.Get(arc_amb[i], 0));
         string dir;
         AppMain.dm_manual_amb[i]     = AmFs.readAMBFile(AmBind.Get(arc_amb[i], 1, out dir));
         AppMain.dm_manual_amb[i].dir = dir;
     }
     for (int i = 0; i < 2; i++)
     {
         AppMain.AoTexBuild(AppMain.dm_manual_tex[i], AppMain.dm_manual_amb[i]);
         AppMain.AoTexLoad(AppMain.dm_manual_tex[i]);
     }
 }
    // Token: 0x060002A5 RID: 677 RVA: 0x00016118 File Offset: 0x00014318
    public static void GmEfctEneBuildDataInit(int zone_no)
    {
        object obj = null;

        for (int i = 0; i < 13; i++)
        {
            AppMain.gm_efct_ene_tex_reg_id_list[i]   = -1;
            AppMain.gm_efct_ene_model_reg_id_list[i] = -1;
        }
        AppMain.gm_efct_ene_target_zone_no = zone_no;
        for (int j = 0; j < 13; j++)
        {
            AppMain.GMS_EFCT_ENE_CREATE_PARAM gms_EFCT_ENE_CREATE_PARAM = AppMain.gm_efct_ene_create_param_tbl[j];
            int arc_dwork_no = gms_EFCT_ENE_CREATE_PARAM.arc_dwork_no;
            if ((gms_EFCT_ENE_CREATE_PARAM.stage_flag & AppMain.GMM_EFCT_ENE_STAGE_FLAG(zone_no)) != 0U)
            {
                AppMain.OBS_DATA_WORK pWork = AppMain.ObjDataGet(arc_dwork_no);
                AMS_AMB_HEADER        amb   = AmFs.readAMBFile(AppMain.ObjDataGetInc(pWork));
                int model_idx = gms_EFCT_ENE_CREATE_PARAM.create_param.model_idx;
                int index     = AppMain.GMM_EFCT_ENE_MODEL_DW_NO(gms_EFCT_ENE_CREATE_PARAM);
                int index2    = AppMain.GMM_EFCT_ENE_OBJECT_DW_NO(gms_EFCT_ENE_CREATE_PARAM);
                AppMain.OBS_DATA_WORK obs_DATA_WORK;
                AppMain.OBS_DATA_WORK texlist_dwork;
                if (model_idx != -1)
                {
                    AppMain.ObjDataLoadAmbIndex(AppMain.ObjDataGet(index), model_idx, amb);
                    AppMain.gm_efct_ene_model_reg_id_list[j] = AppMain.ObjAction3dESModelLoadToDwork(AppMain.ObjDataGet(index2), ( AmbChunk )AppMain.ObjDataGet(index).pData, 0U);
                    obs_DATA_WORK = AppMain.ObjDataGet(AppMain.GMM_EFCT_ENE_MDL_AMBTEX_DW_NO(gms_EFCT_ENE_CREATE_PARAM));
                    texlist_dwork = AppMain.ObjDataGet(AppMain.GMM_EFCT_ENE_MDL_TEXLIST_DW_NO(gms_EFCT_ENE_CREATE_PARAM));
                }
                else
                {
                    obs_DATA_WORK = AppMain.ObjDataGet(AppMain.GMM_EFCT_ENE_AMBTEX_DW_NO(gms_EFCT_ENE_CREATE_PARAM));
                    texlist_dwork = AppMain.ObjDataGet(AppMain.GMM_EFCT_ENE_TEXLIST_DW_NO(gms_EFCT_ENE_CREATE_PARAM));
                }
                AppMain.ObjDataLoadAmbIndex(obs_DATA_WORK, gms_EFCT_ENE_CREATE_PARAM.ambtex_idx, amb);
                AppMain.gm_efct_ene_tex_reg_id_list[j] = AppMain.ObjAction3dESTextureLoadToDwork(texlist_dwork, AmFs.readAMBFile(obs_DATA_WORK.pData), ref obj);
            }
        }
    }
    // Token: 0x060009BB RID: 2491 RVA: 0x00057148 File Offset: 0x00055348
    private static void DmLoadingBuild(AMS_FS arc_amb)
    {
        AppMain.dm_loading_mgr_p = new AppMain.DMS_LOADING_MGR();
        AppMain.dm_loading_tex   = new AppMain.AOS_TEXTURE[1];
        for (int i = 0; i < 1; i++)
        {
            AppMain.dm_loading_tex[i] = new AppMain.AOS_TEXTURE();
        }

        for (int i = 0; i < 1; i++)
        {
            string dir = null;
            AppMain.dm_loading_ama[i] = A2S.readAMAFile(AmBind.Get(arc_amb, 0, out dir));
            dir = null;
            AppMain.dm_loading_amb[i]     = AmFs.readAMBFile(AmBind.Get(arc_amb, 1, out dir));
            AppMain.dm_loading_amb[i].dir = dir;
        }

        for (int i = 0; i < 1; i++)
        {
            AppMain.AoTexBuild(AppMain.dm_loading_tex[i], AppMain.dm_loading_amb[i]);
            AppMain.AoTexLoad(AppMain.dm_loading_tex[i]);
        }
    }
Beispiel #28
0
 // Token: 0x0600098B RID: 2443 RVA: 0x00055D60 File Offset: 0x00053F60
 private static void dmSaveProcLoadWait(AppMain.DMS_SAVE_MAIN_WORK main_work)
 {
     if (AppMain.dmSaveIsDataLoad(main_work) != 0)
     {
         for (int i = 0; i < 2; i++)
         {
             main_work.arc_cmn_amb[i]    = AmFs.readAMBFile(main_work.arc_cmn_amb_fs[i]);
             main_work.arc_cmn_amb_fs[i] = null;
             main_work.cmn_ama[i]        = A2S.readAMAFile(AmBind.Get(main_work.arc_cmn_amb[i], 0));
             string dir;
             main_work.cmn_amb[i]     = AmFs.readAMBFile(AmBind.Get(main_work.arc_cmn_amb[i], 1, out dir));
             main_work.cmn_amb[i].dir = dir;
             AmFs.amFsClearRequest(main_work.arc_cmn_amb_fs[i]);
             main_work.arc_cmn_amb_fs[i] = null;
             AppMain.AoTexBuild(main_work.cmn_tex[i], main_work.cmn_amb[i]);
             AppMain.AoTexLoad(main_work.cmn_tex[i]);
         }
         if (AppMain.dm_save_is_snd_build)
         {
             AppMain.DmSoundBuild();
         }
         main_work.proc_menu_update = AppMain.dmSaveProcTexBuildWait;
     }
 }
Beispiel #29
0
    // Token: 0x06000DEE RID: 3566 RVA: 0x0007AAC0 File Offset: 0x00078CC0
    private static void GmEneUnidesFlush()
    {
        AMS_AMB_HEADER ams_AMB_HEADER = AmFs.readAMBFile(AppMain.GmGameDatGetEnemyData(690));

        AppMain.GmGameDBuildRegFlushModel(AppMain.gm_ene_unides_obj_3d_list, ams_AMB_HEADER.file_num);
    }
Beispiel #30
0
 // Token: 0x06000DED RID: 3565 RVA: 0x0007AA93 File Offset: 0x00078C93
 private static void GmEneUnidesBuild()
 {
     AppMain.gm_ene_unides_obj_3d_list = AppMain.GmGameDBuildRegBuildModel(AmFs.readAMBFile(AppMain.GmGameDatGetEnemyData(690)), AmFs.readAMBFile(AppMain.GmGameDatGetEnemyData(691)), 0U);
 }