Example #1
0
 private static void gmGmkPressWallCreateParts(
     AppMain.OBS_OBJECT_WORK parent_obj,
     int pos_y,
     int height)
 {
     AppMain.OBS_OBJECT_WORK obj_work = (AppMain.OBS_OBJECT_WORK)null;
     for (int index = 0; index < 3; ++index)
     {
         obj_work = AppMain.GMM_EFFECT_CREATE_WORK((AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_GMK_PRESSWALL_PARTS()), parent_obj, (ushort)0, "PresswallZ4Parts");
         AppMain.GMS_EFFECT_3DNN_WORK gmsEffect3DnnWork = (AppMain.GMS_EFFECT_3DNN_WORK)obj_work;
         AppMain.ObjObjectCopyAction3dNNModel(obj_work, AppMain.gm_gmk_presswall_obj_3d_list[(int)AppMain.tbl_gmk_z4PressWall_model[index]], gmsEffect3DnnWork.obj_3d);
         obj_work.flag      &= 4294966271U;
         obj_work.pos.y      = pos_y;
         obj_work.pos.z      = parent_obj.pos.z + AppMain.tbl_gmk_z4PressWall_ofst_z[index];
         obj_work.disp_flag |= 4194304U;
         obj_work.disp_flag |= 256U;
         obj_work.disp_flag |= 134217728U;
         obj_work.ppFunc     = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkPressWallParts);
         ((AppMain.GMS_GMK_PRESSWALL_PARTS)obj_work).master_posy = pos_y;
         if (height == 0)
         {
             obj_work.ppOut = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkPressWallZ4Parts_ppOut);
         }
     }
     AppMain.ObjAction3dNNMaterialMotionLoad(obj_work.obj_3d, 0, (AppMain.OBS_DATA_WORK)null, (string)null, 0, (AppMain.AMS_AMB_HEADER)AppMain.ObjDataGet(895).pData);
     AppMain.ObjDrawObjectActionSet3DNNMaterial(obj_work, 0);
     obj_work.obj_3d.mat_speed = 1f;
     obj_work.disp_flag       |= 4U;
 }
Example #2
0
    // Token: 0x06001B2E RID: 6958 RVA: 0x000F8288 File Offset: 0x000F6488
    private static void gmGmkPressWallCreateRail(OBS_OBJECT_WORK parent_obj, int height, int pos_y)
    {
        OBS_OBJECT_WORK obs_OBJECT_WORK = AppMain.GMM_EFFECT_CREATE_WORK(() => new AppMain.GMS_GMK_PRESSWALL_PARTS(), parent_obj, 0, "PresswallRail-Top");

        AppMain.GMS_EFFECT_3DNN_WORK gms_EFFECT_3DNN_WORK = (AppMain.GMS_EFFECT_3DNN_WORK)obs_OBJECT_WORK;
        AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK, AppMain.gm_gmk_presswall_obj_3d_list[2], gms_EFFECT_3DNN_WORK.obj_3d);
        obs_OBJECT_WORK.flag      &= 4294966271U;
        obs_OBJECT_WORK.pos.y      = pos_y;
        obs_OBJECT_WORK.pos.z      = parent_obj.pos.z + 4096;
        obs_OBJECT_WORK.disp_flag |= 4194304U;
        obs_OBJECT_WORK.disp_flag |= 256U;
        obs_OBJECT_WORK.disp_flag |= 134217728U;
        ((AppMain.GMS_GMK_PRESSWALL_PARTS)obs_OBJECT_WORK).ofst_y = -8192;
        obs_OBJECT_WORK.ppFunc = AppMain.gmGmkPressWallRail;
        obs_OBJECT_WORK        = AppMain.GMM_EFFECT_CREATE_WORK(() => new AppMain.GMS_GMK_PRESSWALL_PARTS(), parent_obj, 0, "PresswallRail-Botom");
        gms_EFFECT_3DNN_WORK   = (AppMain.GMS_EFFECT_3DNN_WORK)obs_OBJECT_WORK;
        AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK, AppMain.gm_gmk_presswall_obj_3d_list[1], gms_EFFECT_3DNN_WORK.obj_3d);
        obs_OBJECT_WORK.flag      &= 4294966271U;
        obs_OBJECT_WORK.pos.y      = pos_y + height;
        obs_OBJECT_WORK.pos.z      = parent_obj.pos.z + 4096;
        obs_OBJECT_WORK.disp_flag |= 4194304U;
        obs_OBJECT_WORK.disp_flag |= 256U;
        obs_OBJECT_WORK.disp_flag |= 134217728U;
        ((AppMain.GMS_GMK_PRESSWALL_PARTS)obs_OBJECT_WORK).ofst_y = height - 65536;
        obs_OBJECT_WORK.ppFunc = AppMain.gmGmkPressWallRail;
    }
Example #3
0
    public static AppMain.OBS_OBJECT_WORK GmGmkAnimalInit(
        AppMain.OBS_OBJECT_WORK parent_work,
        int ofs_x,
        int ofs_y,
        int ofs_z,
        byte type,
        byte vec,
        ushort timer)
    {
        AppMain.OBS_OBJECT_WORK      work = AppMain.GMM_EFFECT_CREATE_WORK((AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_EFFECT_3DNN_WORK()), parent_work, (ushort)0, "GMK_ANIMAL");
        AppMain.GMS_EFFECT_3DNN_WORK gmsEffect3DnnWork = (AppMain.GMS_EFFECT_3DNN_WORK)work;
        work.view_out_ofst = (short)64;
        work.pos.x        += ofs_x;
        work.pos.y        += ofs_y;
        work.pos.z         = ofs_z - 131072;
        type = type == (byte)0 ? (byte)((uint)AppMain.mtMathRand() & 1U) : (byte)((int)type - 1 & 1);
        int index = AppMain.g_gm_gamedat_zone_type_tbl[(int)AppMain.g_gs_main_sys_info.stage_id];

        work.user_work  = AppMain.g_gm_gmk_animal_type_id[index][(int)type];
        work.user_flag  = (uint)vec;
        work.user_timer = (int)timer;
        AppMain.gmGmkAnimalObjSet(work, gmsEffect3DnnWork.obj_3d);
        work.move_flag |= 16128U;
        work.move_flag &= 4294967167U;
        work.flag      |= 512U;
        work.flag      |= 2U;
        work.flag      &= 4294967279U;
        work.ppFunc     = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkAnimalWait);
        return(work);
    }
Example #4
0
 // Token: 0x06000500 RID: 1280 RVA: 0x0002AEB0 File Offset: 0x000290B0
 private static AppMain.GMS_BOSS5_LDPART_WORK gmBoss5LandCreateLdPart(AppMain.GMS_BOSS5_LAND_WORK land_work, int land_type, int part_index)
 {
     AppMain.OBS_OBJECT_WORK       parent_obj            = AppMain.GMM_BS_OBJ(land_work);
     AppMain.OBS_OBJECT_WORK       obs_OBJECT_WORK       = AppMain.GMM_EFFECT_CREATE_WORK(() => new AppMain.GMS_BOSS5_LDPART_WORK(), parent_obj, 0, "BOSS5_LAND_PART");
     AppMain.GMS_EFFECT_3DNN_WORK  gms_EFFECT_3DNN_WORK  = (AppMain.GMS_EFFECT_3DNN_WORK)obs_OBJECT_WORK;
     AppMain.GMS_BOSS5_LDPART_WORK gms_BOSS5_LDPART_WORK = (AppMain.GMS_BOSS5_LDPART_WORK)obs_OBJECT_WORK;
     gms_BOSS5_LDPART_WORK.part_index = part_index;
     AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK, AppMain.GmBoss5GetObject3dList()[AppMain.gm_boss5_land_mdl_amb_idx_tbl[land_type]], gms_EFFECT_3DNN_WORK.obj_3d);
     obs_OBJECT_WORK.obj_3d.drawflag = ( uint )(( ulong )obs_OBJECT_WORK.obj_3d.drawflag & ulong.MaxValue);
     AppMain.ObjObjectAction3dNNMaterialMotionLoad(obs_OBJECT_WORK, 0, AppMain.ObjDataGet(AppMain.gm_boss5_land_mat_mtn_dwork_no_tbl[land_type]), null, AppMain.gm_boss5_land_mat_mtn_data_tbl[land_type], null);
     obs_OBJECT_WORK.obj_3d.use_light_flag &= 4294967294U;
     obs_OBJECT_WORK.obj_3d.use_light_flag |= 2U;
     obs_OBJECT_WORK.flag         |= 1024U;
     obs_OBJECT_WORK.flag         |= 18U;
     obs_OBJECT_WORK.disp_flag    |= 4194304U;
     obs_OBJECT_WORK.move_flag    |= 256U;
     obs_OBJECT_WORK.move_flag    &= 4294967167U;
     obs_OBJECT_WORK.parent_ofst.x = AppMain.GMD_BOSS5_LAND_LDPART_WIDTH_FX / 2 + part_index * AppMain.GMD_BOSS5_LAND_LDPART_WIDTH_FX + AppMain.GMD_BOSS5_LAND_LDPART_CENTER_OFST_X_FX;
     obs_OBJECT_WORK.parent_ofst.y = AppMain.GMD_BOSS5_LAND_LDPART_HEIGHT_FX / 2 + AppMain.GMD_BOSS5_LAND_LDPART_CENTER_OFST_Y_FX;
     obs_OBJECT_WORK.parent_ofst.z = 0;
     gms_BOSS5_LDPART_WORK.pivot_parent_ofst[0] = obs_OBJECT_WORK.parent_ofst.x;
     gms_BOSS5_LDPART_WORK.pivot_parent_ofst[1] = obs_OBJECT_WORK.parent_ofst.y;
     obs_OBJECT_WORK.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmBoss5LdPartMain);
     AppMain.gmBoss5LdPartProcInit(gms_BOSS5_LDPART_WORK);
     return(gms_BOSS5_LDPART_WORK);
 }
 // Token: 0x06001B03 RID: 6915 RVA: 0x000F5864 File Offset: 0x000F3A64
 private static AppMain.OBS_OBJECT_WORK GmGmkPulleyBaseInit(AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type)
 {
     pos_y -= 24576;
     AppMain.OBS_OBJECT_WORK   obs_OBJECT_WORK   = AppMain.GMM_ENEMY_CREATE_RIDE_WORK(eve_rec, pos_x, pos_y, () => new AppMain.GMS_GMK_PULLEY_WORK(), "GMK_PULLEY_BASE");
     AppMain.GMS_ENEMY_3D_WORK gms_ENEMY_3D_WORK = (AppMain.GMS_ENEMY_3D_WORK)obs_OBJECT_WORK;
     ((AppMain.GMS_GMK_PULLEY_WORK)obs_OBJECT_WORK).se_handle = null;
     AppMain.mtTaskChangeTcbDestructor(obs_OBJECT_WORK.tcb, new AppMain.GSF_TASK_PROCEDURE(AppMain.gmGmkPulleyBaseExit));
     AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK, AppMain.gm_gmk_pulley_obj_3d_list[0], gms_ENEMY_3D_WORK.obj_3d);
     AppMain.ObjObjectAction3dNNMotionLoad(obs_OBJECT_WORK, 0, false, AppMain.ObjDataGet(821), null, 0, null);
     AppMain.ObjDrawObjectActionSet(obs_OBJECT_WORK, 0);
     obs_OBJECT_WORK.move_flag |= 8448U;
     obs_OBJECT_WORK.disp_flag |= 4194308U;
     gms_ENEMY_3D_WORK.ene_com.col_work.obj_col.flag |= 134217728U;
     gms_ENEMY_3D_WORK.ene_com.rect_work[0].flag     &= 4294967291U;
     gms_ENEMY_3D_WORK.ene_com.rect_work[1].flag     &= 4294967291U;
     AppMain.OBS_RECT_WORK obs_RECT_WORK = gms_ENEMY_3D_WORK.ene_com.rect_work[2];
     obs_RECT_WORK.ppHit = null;
     obs_RECT_WORK.ppDef = new AppMain.OBS_RECT_WORK_Delegate1(AppMain.gmGmkPulleyDefFunc);
     AppMain.ObjRectAtkSet(obs_RECT_WORK, 0, 0);
     AppMain.ObjRectDefSet(obs_RECT_WORK, 65534, 0);
     AppMain.ObjRectWorkSet(obs_RECT_WORK, -4, 9, 4, 24);
     obs_RECT_WORK.flag    |= 1024U;
     obs_OBJECT_WORK.pos.z  = 0;
     obs_OBJECT_WORK.ppFunc = null;
     AppMain.OBS_OBJECT_WORK      obs_OBJECT_WORK2     = AppMain.GMM_EFFECT_CREATE_WORK(() => new AppMain.GMS_EFFECT_3DNN_WORK(), obs_OBJECT_WORK, 0, "GMK_PULLEY_ROT");
     AppMain.GMS_EFFECT_3DNN_WORK gms_EFFECT_3DNN_WORK = (AppMain.GMS_EFFECT_3DNN_WORK)obs_OBJECT_WORK2;
     AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK2, AppMain.gm_gmk_pulley_obj_3d_list[1], gms_EFFECT_3DNN_WORK.obj_3d);
     obs_OBJECT_WORK2.move_flag |= 8448U;
     obs_OBJECT_WORK2.disp_flag |= 4194304U;
     obs_OBJECT_WORK2.disp_flag &= 4294967039U;
     obs_OBJECT_WORK2.flag      |= 16U;
     obs_OBJECT_WORK2.ppFunc     = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkPulleyRotMain);
     ((AppMain.GMS_GMK_PULLEY_WORK)obs_OBJECT_WORK).efct_work = null;
     return(obs_OBJECT_WORK);
 }
Example #6
0
 private static AppMain.GMS_BOSS5_LDPART_WORK gmBoss5LandCreateLdPart(
     AppMain.GMS_BOSS5_LAND_WORK land_work,
     int land_type,
     int part_index)
 {
     AppMain.OBS_OBJECT_WORK       work = AppMain.GMM_EFFECT_CREATE_WORK((AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_BOSS5_LDPART_WORK()), AppMain.GMM_BS_OBJ((object)land_work), (ushort)0, "BOSS5_LAND_PART");
     AppMain.GMS_EFFECT_3DNN_WORK  gmsEffect3DnnWork = (AppMain.GMS_EFFECT_3DNN_WORK)work;
     AppMain.GMS_BOSS5_LDPART_WORK ldpart_work       = (AppMain.GMS_BOSS5_LDPART_WORK)work;
     ldpart_work.part_index = part_index;
     AppMain.ObjObjectCopyAction3dNNModel(work, AppMain.GmBoss5GetObject3dList()[AppMain.gm_boss5_land_mdl_amb_idx_tbl[land_type]], gmsEffect3DnnWork.obj_3d);
     work.obj_3d.drawflag = (uint)((ulong)work.obj_3d.drawflag & ulong.MaxValue);
     AppMain.ObjObjectAction3dNNMaterialMotionLoad(work, 0, AppMain.ObjDataGet(AppMain.gm_boss5_land_mat_mtn_dwork_no_tbl[land_type]), (string)null, AppMain.gm_boss5_land_mat_mtn_data_tbl[land_type], (object)null);
     work.obj_3d.use_light_flag &= 4294967294U;
     work.obj_3d.use_light_flag |= 2U;
     work.flag         |= 1024U;
     work.flag         |= 18U;
     work.disp_flag    |= 4194304U;
     work.move_flag    |= 256U;
     work.move_flag    &= 4294967167U;
     work.parent_ofst.x = AppMain.GMD_BOSS5_LAND_LDPART_WIDTH_FX / 2 + part_index * AppMain.GMD_BOSS5_LAND_LDPART_WIDTH_FX + AppMain.GMD_BOSS5_LAND_LDPART_CENTER_OFST_X_FX;
     work.parent_ofst.y = AppMain.GMD_BOSS5_LAND_LDPART_HEIGHT_FX / 2 + AppMain.GMD_BOSS5_LAND_LDPART_CENTER_OFST_Y_FX;
     work.parent_ofst.z = 0;
     ldpart_work.pivot_parent_ofst[0] = work.parent_ofst.x;
     ldpart_work.pivot_parent_ofst[1] = work.parent_ofst.y;
     work.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmBoss5LdPartMain);
     AppMain.gmBoss5LdPartProcInit(ldpart_work);
     return(ldpart_work);
 }
Example #7
0
    // Token: 0x06001B30 RID: 6960 RVA: 0x000F852C File Offset: 0x000F672C
    private static void gmGmkPressWallCreateParts(OBS_OBJECT_WORK parent_obj, int pos_y, int height)
    {
        OBS_OBJECT_WORK obs_OBJECT_WORK = null;

        for (int i = 0; i < 3; i++)
        {
            obs_OBJECT_WORK = AppMain.GMM_EFFECT_CREATE_WORK(() => new AppMain.GMS_GMK_PRESSWALL_PARTS(), parent_obj, 0, "PresswallZ4Parts");
            AppMain.GMS_EFFECT_3DNN_WORK gms_EFFECT_3DNN_WORK = (AppMain.GMS_EFFECT_3DNN_WORK)obs_OBJECT_WORK;
            AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK, AppMain.gm_gmk_presswall_obj_3d_list[( int )(( UIntPtr )AppMain.tbl_gmk_z4PressWall_model[i])], gms_EFFECT_3DNN_WORK.obj_3d);
            obs_OBJECT_WORK.flag      &= 4294966271U;
            obs_OBJECT_WORK.pos.y      = pos_y;
            obs_OBJECT_WORK.pos.z      = parent_obj.pos.z + AppMain.tbl_gmk_z4PressWall_ofst_z[i];
            obs_OBJECT_WORK.disp_flag |= 4194304U;
            obs_OBJECT_WORK.disp_flag |= 256U;
            obs_OBJECT_WORK.disp_flag |= 134217728U;
            obs_OBJECT_WORK.ppFunc     = AppMain.gmGmkPressWallParts;
            AppMain.GMS_GMK_PRESSWALL_PARTS gms_GMK_PRESSWALL_PARTS = (AppMain.GMS_GMK_PRESSWALL_PARTS)obs_OBJECT_WORK;
            gms_GMK_PRESSWALL_PARTS.master_posy = pos_y;
            if (height == 0)
            {
                obs_OBJECT_WORK.ppOut = AppMain.gmGmkPressWallZ4Parts_ppOut;
            }
        }
        AppMain.ObjAction3dNNMaterialMotionLoad(obs_OBJECT_WORK.obj_3d, 0, null, null, 0, ( AMS_AMB_HEADER )AppMain.ObjDataGet(895).pData);
        AppMain.ObjDrawObjectActionSet3DNNMaterial(obs_OBJECT_WORK, 0);
        obs_OBJECT_WORK.obj_3d.mat_speed = 1f;
        obs_OBJECT_WORK.disp_flag       |= 4U;
    }
Example #8
0
 private static void gmGmkPressWallCreateRail(
     AppMain.OBS_OBJECT_WORK parent_obj,
     int height,
     int pos_y)
 {
     AppMain.OBS_OBJECT_WORK      work1 = AppMain.GMM_EFFECT_CREATE_WORK((AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_GMK_PRESSWALL_PARTS()), parent_obj, (ushort)0, "PresswallRail-Top");
     AppMain.GMS_EFFECT_3DNN_WORK gmsEffect3DnnWork1 = (AppMain.GMS_EFFECT_3DNN_WORK)work1;
     AppMain.ObjObjectCopyAction3dNNModel(work1, AppMain.gm_gmk_presswall_obj_3d_list[2], gmsEffect3DnnWork1.obj_3d);
     work1.flag      &= 4294966271U;
     work1.pos.y      = pos_y;
     work1.pos.z      = parent_obj.pos.z + 4096;
     work1.disp_flag |= 4194304U;
     work1.disp_flag |= 256U;
     work1.disp_flag |= 134217728U;
     ((AppMain.GMS_GMK_PRESSWALL_PARTS)work1).ofst_y = -8192;
     work1.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkPressWallRail);
     AppMain.OBS_OBJECT_WORK      work2 = AppMain.GMM_EFFECT_CREATE_WORK((AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_GMK_PRESSWALL_PARTS()), parent_obj, (ushort)0, "PresswallRail-Botom");
     AppMain.GMS_EFFECT_3DNN_WORK gmsEffect3DnnWork2 = (AppMain.GMS_EFFECT_3DNN_WORK)work2;
     AppMain.ObjObjectCopyAction3dNNModel(work2, AppMain.gm_gmk_presswall_obj_3d_list[1], gmsEffect3DnnWork2.obj_3d);
     work2.flag      &= 4294966271U;
     work2.pos.y      = pos_y + height;
     work2.pos.z      = parent_obj.pos.z + 4096;
     work2.disp_flag |= 4194304U;
     work2.disp_flag |= 256U;
     work2.disp_flag |= 134217728U;
     ((AppMain.GMS_GMK_PRESSWALL_PARTS)work2).ofst_y = height - 65536;
     work2.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkPressWallRail);
 }
Example #9
0
    // Token: 0x060018B2 RID: 6322 RVA: 0x000E157C File Offset: 0x000DF77C
    public static OBS_OBJECT_WORK GmGmkAnimalInit(OBS_OBJECT_WORK parent_work, int ofs_x, int ofs_y, int ofs_z, byte type, byte vec, ushort timer)
    {
        OBS_OBJECT_WORK obs_OBJECT_WORK = AppMain.GMM_EFFECT_CREATE_WORK(() => new AppMain.GMS_EFFECT_3DNN_WORK(), parent_work, 0, "GMK_ANIMAL");

        AppMain.GMS_EFFECT_3DNN_WORK gms_EFFECT_3DNN_WORK = (AppMain.GMS_EFFECT_3DNN_WORK)obs_OBJECT_WORK;
        obs_OBJECT_WORK.view_out_ofst = 64;
        OBS_OBJECT_WORK obs_OBJECT_WORK2 = obs_OBJECT_WORK;

        obs_OBJECT_WORK2.pos.x = obs_OBJECT_WORK2.pos.x + ofs_x;
        OBS_OBJECT_WORK obs_OBJECT_WORK3 = obs_OBJECT_WORK;

        obs_OBJECT_WORK3.pos.y = obs_OBJECT_WORK3.pos.y + ofs_y;
        obs_OBJECT_WORK.pos.z  = -131072 + ofs_z;
        if (type != 0)
        {
            type = ( byte )(type - 1 & 1);
        }
        else
        {
            type = ( byte )(AppMain.mtMathRand() & 1);
        }
        int num = AppMain.g_gm_gamedat_zone_type_tbl[(int)AppMain.g_gs_main_sys_info.stage_id];

        obs_OBJECT_WORK.user_work  = AppMain.g_gm_gmk_animal_type_id[num][( int )type];
        obs_OBJECT_WORK.user_flag  = ( uint )vec;
        obs_OBJECT_WORK.user_timer = ( int )timer;
        AppMain.gmGmkAnimalObjSet(obs_OBJECT_WORK, gms_EFFECT_3DNN_WORK.obj_3d);
        obs_OBJECT_WORK.move_flag |= 16128U;
        obs_OBJECT_WORK.move_flag &= 4294967167U;
        obs_OBJECT_WORK.flag      |= 512U;
        obs_OBJECT_WORK.flag      |= 2U;
        obs_OBJECT_WORK.flag      &= 4294967279U;
        obs_OBJECT_WORK.ppFunc     = AppMain.gmGmkAnimalWait;
        return(obs_OBJECT_WORK);
    }
Example #10
0
    private static AppMain.OBS_OBJECT_WORK GmGmkPressPillarInit(
        AppMain.GMS_EVE_RECORD_EVENT eve_rec,
        int pos_x,
        int pos_y,
        byte type)
    {
        AppMain.OBS_OBJECT_WORK   work1          = AppMain.GMM_ENEMY_CREATE_WORK(eve_rec, pos_x, pos_y, (AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_ENEMY_3D_WORK()), "GMK_P_PIL_TOP");
        AppMain.GMS_ENEMY_3D_WORK gmsEnemy3DWork = (AppMain.GMS_ENEMY_3D_WORK)work1;
        uint num = 0;

        if (eve_rec.id == (ushort)285)
        {
            num = 1U;
        }
        AppMain.ObjObjectCopyAction3dNNModel(work1, AppMain.gm_gmk_press_pillar_obj_3d_list[(int)(2U + num)], gmsEnemy3DWork.obj_3d);
        work1.pos.z      = -126976;
        work1.disp_flag |= 4194304U;
        work1.move_flag |= 512U;
        work1.move_flag |= 1040U;
        work1.flag      |= 1U;
        work1.user_flag  = 0U;
        AppMain.OBS_COLLISION_WORK colWork = gmsEnemy3DWork.ene_com.col_work;
        colWork.obj_col.obj    = work1;
        colWork.obj_col.width  = (ushort)AppMain.GMD_GMK_PPIL_COL_WIDTH;
        colWork.obj_col.height = (ushort)AppMain.GMD_GMK_PPIL_COL_HEIGHT;
        colWork.obj_col.ofst_x = (short)((int)-colWork.obj_col.width / 2);
        colWork.obj_col.ofst_y = (short)0;
        if (eve_rec.id == (ushort)285)
        {
            colWork.obj_col.ofst_y = (short)-colWork.obj_col.height;
        }
        if (eve_rec.id == (ushort)284)
        {
            AppMain.ObjObjectFieldRectSet(work1, (short)((int)-AppMain.GMD_GMK_PPIL_COL_WIDTH / 2 + 2), (short)-1, (short)((int)AppMain.GMD_GMK_PPIL_COL_WIDTH / 2 - 2), AppMain.GMD_GMK_PPIL_COL_HEIGHT);
        }
        else
        {
            AppMain.ObjObjectFieldRectSet(work1, (short)((int)-AppMain.GMD_GMK_PPIL_COL_WIDTH / 2 + 2), (short)-AppMain.GMD_GMK_PPIL_COL_HEIGHT, (short)((int)AppMain.GMD_GMK_PPIL_COL_WIDTH / 2 - 2), (short)-1);
        }
        work1.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkPPillarTopWait);
        AppMain.OBS_OBJECT_WORK      work2 = AppMain.GMM_EFFECT_CREATE_WORK((AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_EFFECT_3DNN_WORK()), work1, (ushort)0, "GMK_P_PIL_BODY");
        AppMain.GMS_EFFECT_3DNN_WORK gmsEffect3DnnWork1 = (AppMain.GMS_EFFECT_3DNN_WORK)work2;
        AppMain.ObjObjectCopyAction3dNNModel(work2, AppMain.gm_gmk_press_pillar_obj_3d_list[(int)num], gmsEffect3DnnWork1.obj_3d);
        AppMain.ObjAction3dNNMaterialMotionLoad(gmsEffect3DnnWork1.obj_3d, 0, (AppMain.OBS_DATA_WORK)null, (string)null, (int)num, AppMain.readAMBFile(AppMain.ObjDataGet(953).pData));
        AppMain.ObjDrawObjectActionSet3DNNMaterial(work2, 0);
        work2.pos.z      = -131072;
        work2.move_flag |= 256U;
        work2.disp_flag |= 4194308U;
        work2.ppFunc     = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkPPillarBodyFollow);
        AppMain.OBS_OBJECT_WORK      work3 = AppMain.GMM_EFFECT_CREATE_WORK((AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_EFFECT_3DNN_WORK()), work1, (ushort)0, "GMK_P_PIL_SPRING");
        AppMain.GMS_EFFECT_3DNN_WORK gmsEffect3DnnWork2 = (AppMain.GMS_EFFECT_3DNN_WORK)work3;
        AppMain.ObjObjectCopyAction3dNNModel(work3, AppMain.gm_gmk_press_pillar_obj_3d_list[4], gmsEffect3DnnWork2.obj_3d);
        work3.pos.z      = -131072;
        work3.move_flag |= 256U;
        work3.disp_flag |= 4194304U;
        work3.ppFunc     = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkPPillarSpringFollow);
        return(work1);
    }
Example #11
0
    // Token: 0x060003CF RID: 975 RVA: 0x0001E540 File Offset: 0x0001C740
    private static OBS_OBJECT_WORK GmGmkPressPillarInit(AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type)
    {
        OBS_OBJECT_WORK obs_OBJECT_WORK = AppMain.GMM_ENEMY_CREATE_WORK(eve_rec, pos_x, pos_y, () => new AppMain.GMS_ENEMY_3D_WORK(), "GMK_P_PIL_TOP");

        AppMain.GMS_ENEMY_3D_WORK gms_ENEMY_3D_WORK = (AppMain.GMS_ENEMY_3D_WORK)obs_OBJECT_WORK;
        uint num = 0U;

        if (eve_rec.id == 285)
        {
            num = 1U;
        }
        AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK, AppMain.gm_gmk_press_pillar_obj_3d_list[( int )(( UIntPtr )(2U + num))], gms_ENEMY_3D_WORK.obj_3d);
        obs_OBJECT_WORK.pos.z      = -126976;
        obs_OBJECT_WORK.disp_flag |= 4194304U;
        obs_OBJECT_WORK.move_flag |= 512U;
        obs_OBJECT_WORK.move_flag |= 1040U;
        obs_OBJECT_WORK.flag      |= 1U;
        obs_OBJECT_WORK.user_flag  = 0U;
        AppMain.OBS_COLLISION_WORK col_work = gms_ENEMY_3D_WORK.ene_com.col_work;
        col_work.obj_col.obj    = obs_OBJECT_WORK;
        col_work.obj_col.width  = ( ushort )AppMain.GMD_GMK_PPIL_COL_WIDTH;
        col_work.obj_col.height = ( ushort )AppMain.GMD_GMK_PPIL_COL_HEIGHT;
        col_work.obj_col.ofst_x = ( short )(-col_work.obj_col.width / 2);
        col_work.obj_col.ofst_y = 0;
        if (eve_rec.id == 285)
        {
            col_work.obj_col.ofst_y = ( short )(-( short )col_work.obj_col.height);
        }
        if (eve_rec.id == 284)
        {
            AppMain.ObjObjectFieldRectSet(obs_OBJECT_WORK, ( short )(-AppMain.GMD_GMK_PPIL_COL_WIDTH / 2 + 2), -1, ( short )(AppMain.GMD_GMK_PPIL_COL_WIDTH / 2 - 2), AppMain.GMD_GMK_PPIL_COL_HEIGHT);
        }
        else
        {
            AppMain.ObjObjectFieldRectSet(obs_OBJECT_WORK, ( short )(-AppMain.GMD_GMK_PPIL_COL_WIDTH / 2 + 2), ( short )(-AppMain.GMD_GMK_PPIL_COL_HEIGHT), ( short )(AppMain.GMD_GMK_PPIL_COL_WIDTH / 2 - 2), -1);
        }
        obs_OBJECT_WORK.ppFunc = AppMain.gmGmkPPillarTopWait;
        OBS_OBJECT_WORK obs_OBJECT_WORK2 = AppMain.GMM_EFFECT_CREATE_WORK(() => new AppMain.GMS_EFFECT_3DNN_WORK(), obs_OBJECT_WORK, 0, "GMK_P_PIL_BODY");

        AppMain.GMS_EFFECT_3DNN_WORK gms_EFFECT_3DNN_WORK = (AppMain.GMS_EFFECT_3DNN_WORK)obs_OBJECT_WORK2;
        AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK2, AppMain.gm_gmk_press_pillar_obj_3d_list[( int )(( UIntPtr )num)], gms_EFFECT_3DNN_WORK.obj_3d);
        AppMain.ObjAction3dNNMaterialMotionLoad(gms_EFFECT_3DNN_WORK.obj_3d, 0, null, null, ( int )num, AmFs.readAMBFile(AppMain.ObjDataGet(953).pData));
        AppMain.ObjDrawObjectActionSet3DNNMaterial(obs_OBJECT_WORK2, 0);
        obs_OBJECT_WORK2.pos.z      = -131072;
        obs_OBJECT_WORK2.move_flag |= 256U;
        obs_OBJECT_WORK2.disp_flag |= 4194308U;
        obs_OBJECT_WORK2.ppFunc     = AppMain.gmGmkPPillarBodyFollow;
        obs_OBJECT_WORK2            = AppMain.GMM_EFFECT_CREATE_WORK(() => new AppMain.GMS_EFFECT_3DNN_WORK(), obs_OBJECT_WORK, 0, "GMK_P_PIL_SPRING");
        gms_EFFECT_3DNN_WORK        = (AppMain.GMS_EFFECT_3DNN_WORK)obs_OBJECT_WORK2;
        AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK2, AppMain.gm_gmk_press_pillar_obj_3d_list[4], gms_EFFECT_3DNN_WORK.obj_3d);
        obs_OBJECT_WORK2.pos.z      = -131072;
        obs_OBJECT_WORK2.move_flag |= 256U;
        obs_OBJECT_WORK2.disp_flag |= 4194304U;
        obs_OBJECT_WORK2.ppFunc     = AppMain.gmGmkPPillarSpringFollow;
        return(obs_OBJECT_WORK);
    }
Example #12
0
 private static void gmEndingLastPicInit()
 {
     AppMain.GMS_ENDING_WORK      work1             = AppMain.gmEndingGetWork();
     AppMain.OBS_OBJECT_WORK      work2             = AppMain.GMM_EFFECT_CREATE_WORK((AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_EFFECT_3DNN_WORK()), AppMain.g_gm_main_system.ply_work[0].obj_work, (ushort)0, "END_PIC");
     AppMain.GMS_EFFECT_3DNN_WORK gmsEffect3DnnWork = (AppMain.GMS_EFFECT_3DNN_WORK)work2;
     work2.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmEndingLastPic);
     AppMain.ObjObjectCopyAction3dNNModel(work2, AppMain.gm_ending_obj_3d_list[work1.type], gmsEffect3DnnWork.obj_3d);
     work2.move_flag    |= 16128U;
     work2.disp_flag    |= 4194336U;
     work2.flag         |= 1026U;
     work2.scale.x       = work2.scale.y = work2.scale.z = 5120;
     work2.parent_ofst.y = AppMain.gm_ending_obj_offset[work1.type];
 }
Example #13
0
 // Token: 0x06001261 RID: 4705 RVA: 0x000A0A34 File Offset: 0x0009EC34
 private static void gmEndingLastPicInit()
 {
     AppMain.GMS_ENDING_WORK      gms_ENDING_WORK      = AppMain.gmEndingGetWork();
     AppMain.GMS_PLAYER_WORK      gms_PLAYER_WORK      = AppMain.g_gm_main_system.ply_work[(int)((UIntPtr)0)];
     AppMain.OBS_OBJECT_WORK      obs_OBJECT_WORK      = AppMain.GMM_EFFECT_CREATE_WORK(() => new AppMain.GMS_EFFECT_3DNN_WORK(), gms_PLAYER_WORK.obj_work, 0, "END_PIC");
     AppMain.GMS_EFFECT_3DNN_WORK gms_EFFECT_3DNN_WORK = (AppMain.GMS_EFFECT_3DNN_WORK)obs_OBJECT_WORK;
     obs_OBJECT_WORK.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmEndingLastPic);
     AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK, AppMain.gm_ending_obj_3d_list[gms_ENDING_WORK.type], gms_EFFECT_3DNN_WORK.obj_3d);
     obs_OBJECT_WORK.move_flag    |= 16128U;
     obs_OBJECT_WORK.disp_flag    |= 4194336U;
     obs_OBJECT_WORK.flag         |= 1026U;
     obs_OBJECT_WORK.scale.x       = (obs_OBJECT_WORK.scale.y = (obs_OBJECT_WORK.scale.z = 5120));
     obs_OBJECT_WORK.parent_ofst.y = AppMain.gm_ending_obj_offset[gms_ENDING_WORK.type];
 }
Example #14
0
 // Token: 0x06001B52 RID: 6994 RVA: 0x000F9D98 File Offset: 0x000F7F98
 private static void gmGmkItemCreatePopUpEffect(AppMain.OBS_OBJECT_WORK parent_obj, int mat_id)
 {
     AppMain.OBS_OBJECT_WORK      obs_OBJECT_WORK      = AppMain.GMM_EFFECT_CREATE_WORK(() => new AppMain.GMS_EFFECT_3DNN_WORK(), null, 0, "GMK_ITEM_POP");
     AppMain.GMS_EFFECT_3DNN_WORK gms_EFFECT_3DNN_WORK = (AppMain.GMS_EFFECT_3DNN_WORK)obs_OBJECT_WORK;
     AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK, AppMain.gm_gmk_item_obj_3d_list[2], gms_EFFECT_3DNN_WORK.obj_3d);
     obs_OBJECT_WORK.pos.x = parent_obj.pos.x;
     obs_OBJECT_WORK.pos.y = parent_obj.pos.y + -86016;
     obs_OBJECT_WORK.pos.z = -524288;
     gms_EFFECT_3DNN_WORK.obj_3d.material_cb_func = new AppMain.MPP_BOOL_NNSDRAWCALLBACKVAL_OBJECT_DELEGATE(AppMain.gmGmkItemMaterialCallback);
     obs_OBJECT_WORK.ppOut      = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkItemOut);
     obs_OBJECT_WORK.user_work  = ( uint )mat_id;
     obs_OBJECT_WORK.flag      |= 18U;
     obs_OBJECT_WORK.disp_flag |= 4194304U;
     obs_OBJECT_WORK.move_flag &= 4294967167U;
     obs_OBJECT_WORK.scale.x    = (obs_OBJECT_WORK.scale.y = 6144);
     obs_OBJECT_WORK.ppFunc     = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkItemPopUpEffectMain);
     obs_OBJECT_WORK.spd.y      = -10240;
     obs_OBJECT_WORK.spd_add.y  = 320;
 }
Example #15
0
 private static void gmGmkItemCreatePopUpEffect(AppMain.OBS_OBJECT_WORK parent_obj, int mat_id)
 {
     AppMain.OBS_OBJECT_WORK      work = AppMain.GMM_EFFECT_CREATE_WORK((AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_EFFECT_3DNN_WORK()), (AppMain.OBS_OBJECT_WORK)null, (ushort)0, "GMK_ITEM_POP");
     AppMain.GMS_EFFECT_3DNN_WORK gmsEffect3DnnWork = (AppMain.GMS_EFFECT_3DNN_WORK)work;
     AppMain.ObjObjectCopyAction3dNNModel(work, AppMain.gm_gmk_item_obj_3d_list[2], gmsEffect3DnnWork.obj_3d);
     work.pos.x = parent_obj.pos.x;
     work.pos.y = parent_obj.pos.y - 86016;
     work.pos.z = -524288;
     gmsEffect3DnnWork.obj_3d.material_cb_func = new AppMain.MPP_BOOL_NNSDRAWCALLBACKVAL_OBJECT_DELEGATE(AppMain.gmGmkItemMaterialCallback);
     work.ppOut      = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkItemOut);
     work.user_work  = (uint)mat_id;
     work.flag      |= 18U;
     work.disp_flag |= 4194304U;
     work.move_flag &= 4294967167U;
     work.scale.x    = work.scale.y = 6144;
     work.ppFunc     = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkItemPopUpEffectMain);
     work.spd.y      = -10240;
     work.spd_add.y  = 320;
 }
Example #16
0
    // Token: 0x060008DC RID: 2268 RVA: 0x000505D0 File Offset: 0x0004E7D0
    public static OBS_OBJECT_WORK GmGmkBridgeInit(AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type)
    {
        OBS_OBJECT_WORK obs_OBJECT_WORK = AppMain.GMM_ENEMY_CREATE_WORK(eve_rec, pos_x, pos_y, () => new AppMain.GMS_ENEMY_3D_WORK(), "GMK_BRIDGE");

        AppMain.GMS_ENEMY_3D_WORK gms_ENEMY_3D_WORK = (AppMain.GMS_ENEMY_3D_WORK)obs_OBJECT_WORK;
        AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK, AppMain.gm_gmk_bridge_obj_3d_list[0], gms_ENEMY_3D_WORK.obj_3d);
        if ((eve_rec.flag & 1) != 0)
        {
            obs_OBJECT_WORK.user_work = 3U;
        }
        else
        {
            obs_OBJECT_WORK.user_work = 2U;
        }
        obs_OBJECT_WORK.user_flag  = 0U;
        obs_OBJECT_WORK.user_timer = 0;
        obs_OBJECT_WORK.pos.z      = -131072;
        obs_OBJECT_WORK.move_flag |= 8448U;
        obs_OBJECT_WORK.disp_flag |= 4194304U;
        obs_OBJECT_WORK.ppFunc     = AppMain.gmGmkBridgeMain;
        obs_OBJECT_WORK.ppOut      = AppMain.gmGmkBridgeDrawFunc;
        AppMain.OBS_COLLISION_WORK col_work = gms_ENEMY_3D_WORK.ene_com.col_work;
        col_work.obj_col.obj       = obs_OBJECT_WORK;
        col_work.obj_col.diff_data = AppMain.g_gm_default_col;
        col_work.obj_col.flag     |= 134217728U;
        col_work.obj_col.width     = ( ushort )(obs_OBJECT_WORK.user_work * 64U);
        col_work.obj_col.height    = 16;
        col_work.obj_col.ofst_x    = -96;
        col_work.obj_col.ofst_y    = 0;
        col_work.obj_col.attr      = 1;
        OBS_OBJECT_WORK obs_OBJECT_WORK2 = AppMain.GMM_EFFECT_CREATE_WORK(() => new AppMain.GMS_EFFECT_3DNN_WORK(), obs_OBJECT_WORK, 0, "GMK_SPILE");

        AppMain.GMS_EFFECT_3DNN_WORK gms_EFFECT_3DNN_WORK = (AppMain.GMS_EFFECT_3DNN_WORK)obs_OBJECT_WORK2;
        AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK2, AppMain.gm_gmk_bridge_obj_3d_list[2], gms_EFFECT_3DNN_WORK.obj_3d);
        obs_OBJECT_WORK2.user_work        = obs_OBJECT_WORK.user_work;
        obs_OBJECT_WORK2.pos.z            = -131072;
        obs_OBJECT_WORK2.move_flag       |= 8448U;
        obs_OBJECT_WORK2.disp_flag       |= 4194304U;
        obs_OBJECT_WORK2.ppOut            = AppMain.gmGmkBridgeDecoDrawFunc;
        obs_OBJECT_WORK2.obj_3d.drawflag |= 32U;
        return(obs_OBJECT_WORK);
    }
Example #17
0
 private static AppMain.OBS_OBJECT_WORK GmGmkCapsuleInit(
     AppMain.GMS_EVE_RECORD_EVENT eve_rec,
     int pos_x,
     int pos_y,
     byte type)
 {
     AppMain.OBS_OBJECT_WORK   work1           = AppMain.GMM_ENEMY_CREATE_WORK(eve_rec, pos_x, pos_y, (AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_ENEMY_3D_WORK()), "GMK_CAPSULE");
     AppMain.GMS_ENEMY_3D_WORK gmsEnemy3DWork1 = (AppMain.GMS_ENEMY_3D_WORK)work1;
     AppMain.ObjObjectCopyAction3dNNModel(work1, AppMain.gm_gmk_capsule_obj_3d_list[2], gmsEnemy3DWork1.obj_3d);
     work1.pos.z      = -393216;
     work1.move_flag |= 8448U;
     work1.disp_flag |= 4194304U;
     AppMain.OBS_COLLISION_WORK colWork = gmsEnemy3DWork1.ene_com.col_work;
     colWork.obj_col.obj    = work1;
     colWork.obj_col.width  = (ushort)32;
     colWork.obj_col.height = (ushort)40;
     colWork.obj_col.ofst_x = (short)((int)-colWork.obj_col.width / 2);
     colWork.obj_col.ofst_y = (short)-76;
     gmsEnemy3DWork1.ene_com.rect_work[0].flag &= 4294967291U;
     gmsEnemy3DWork1.ene_com.rect_work[1].flag &= 4294967291U;
     AppMain.OBS_RECT_WORK pRec = gmsEnemy3DWork1.ene_com.rect_work[2];
     pRec.ppHit = (AppMain.OBS_RECT_WORK_Delegate1)null;
     pRec.ppDef = (AppMain.OBS_RECT_WORK_Delegate1)null;
     AppMain.ObjRectAtkSet(pRec, (ushort)0, (short)0);
     AppMain.ObjRectDefSet(pRec, (ushort)65534, (short)0);
     AppMain.ObjRectWorkSet(pRec, (short)-4, (short)-80, (short)4, (short)-72);
     work1.user_flag = (uint)((ulong)work1.user_flag & 18446744073709551614UL);
     work1.ppFunc    = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkCapsuleSwitchMain);
     AppMain.OBS_OBJECT_WORK obsObjectWork = AppMain.GmEventMgrLocalEventBirth((ushort)301, pos_x, pos_y, gmsEnemy3DWork1.ene_com.eve_rec.flag, gmsEnemy3DWork1.ene_com.eve_rec.left, gmsEnemy3DWork1.ene_com.eve_rec.top, gmsEnemy3DWork1.ene_com.eve_rec.width, gmsEnemy3DWork1.ene_com.eve_rec.height, (byte)0);
     obsObjectWork.parent_obj    = work1;
     obsObjectWork.view_out_ofst = work1.view_out_ofst;
     AppMain.GMS_ENEMY_3D_WORK    gmsEnemy3DWork2   = (AppMain.GMS_ENEMY_3D_WORK)obsObjectWork;
     AppMain.OBS_OBJECT_WORK      work2             = AppMain.GMM_EFFECT_CREATE_WORK((AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_EFFECT_3DNN_WORK()), work1, (ushort)0, "GMK_CAPSULE_BODY");
     AppMain.GMS_EFFECT_3DNN_WORK gmsEffect3DnnWork = (AppMain.GMS_EFFECT_3DNN_WORK)work2;
     AppMain.ObjObjectCopyAction3dNNModel(work2, AppMain.gm_gmk_capsule_obj_3d_list[1], gmsEffect3DnnWork.obj_3d);
     work2.pos.z      = -131072;
     work2.move_flag |= 8448U;
     work2.disp_flag |= 4194304U;
     work2.ppFunc     = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkCapsuleKeyMain);
     return(work1);
 }
Example #18
0
 private static AppMain.OBS_OBJECT_WORK GmGmkPulleyBaseInit(
     AppMain.GMS_EVE_RECORD_EVENT eve_rec,
     int pos_x,
     int pos_y,
     byte type)
 {
     pos_y -= 24576;
     AppMain.OBS_OBJECT_WORK   rideWork       = AppMain.GMM_ENEMY_CREATE_RIDE_WORK(eve_rec, pos_x, pos_y, (AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_GMK_PULLEY_WORK()), "GMK_PULLEY_BASE");
     AppMain.GMS_ENEMY_3D_WORK gmsEnemy3DWork = (AppMain.GMS_ENEMY_3D_WORK)rideWork;
     ((AppMain.GMS_GMK_PULLEY_WORK)rideWork).se_handle = (AppMain.GSS_SND_SE_HANDLE)null;
     AppMain.mtTaskChangeTcbDestructor(rideWork.tcb, new AppMain.GSF_TASK_PROCEDURE(AppMain.gmGmkPulleyBaseExit));
     AppMain.ObjObjectCopyAction3dNNModel(rideWork, AppMain.gm_gmk_pulley_obj_3d_list[0], gmsEnemy3DWork.obj_3d);
     AppMain.ObjObjectAction3dNNMotionLoad(rideWork, 0, false, AppMain.ObjDataGet(821), (string)null, 0, (AppMain.AMS_AMB_HEADER)null);
     AppMain.ObjDrawObjectActionSet(rideWork, 0);
     rideWork.move_flag |= 8448U;
     rideWork.disp_flag |= 4194308U;
     gmsEnemy3DWork.ene_com.col_work.obj_col.flag |= 134217728U;
     gmsEnemy3DWork.ene_com.rect_work[0].flag     &= 4294967291U;
     gmsEnemy3DWork.ene_com.rect_work[1].flag     &= 4294967291U;
     AppMain.OBS_RECT_WORK pRec = gmsEnemy3DWork.ene_com.rect_work[2];
     pRec.ppHit = (AppMain.OBS_RECT_WORK_Delegate1)null;
     pRec.ppDef = new AppMain.OBS_RECT_WORK_Delegate1(AppMain.gmGmkPulleyDefFunc);
     AppMain.ObjRectAtkSet(pRec, (ushort)0, (short)0);
     AppMain.ObjRectDefSet(pRec, (ushort)65534, (short)0);
     AppMain.ObjRectWorkSet(pRec, (short)-4, (short)9, (short)4, (short)24);
     pRec.flag      |= 1024U;
     rideWork.pos.z  = 0;
     rideWork.ppFunc = (AppMain.MPP_VOID_OBS_OBJECT_WORK)null;
     AppMain.OBS_OBJECT_WORK      work = AppMain.GMM_EFFECT_CREATE_WORK((AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_EFFECT_3DNN_WORK()), rideWork, (ushort)0, "GMK_PULLEY_ROT");
     AppMain.GMS_EFFECT_3DNN_WORK gmsEffect3DnnWork = (AppMain.GMS_EFFECT_3DNN_WORK)work;
     AppMain.ObjObjectCopyAction3dNNModel(work, AppMain.gm_gmk_pulley_obj_3d_list[1], gmsEffect3DnnWork.obj_3d);
     work.move_flag |= 8448U;
     work.disp_flag |= 4194304U;
     work.disp_flag &= 4294967039U;
     work.flag      |= 16U;
     work.ppFunc     = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkPulleyRotMain);
     ((AppMain.GMS_GMK_PULLEY_WORK)rideWork).efct_work = (AppMain.GMS_EFFECT_3DES_WORK)null;
     return(rideWork);
 }
Example #19
0
    // Token: 0x0600100B RID: 4107 RVA: 0x0008B7E0 File Offset: 0x000899E0
    private static OBS_OBJECT_WORK GmGmkCapsuleInit(AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type)
    {
        OBS_OBJECT_WORK obs_OBJECT_WORK = AppMain.GMM_ENEMY_CREATE_WORK(eve_rec, pos_x, pos_y, () => new AppMain.GMS_ENEMY_3D_WORK(), "GMK_CAPSULE");

        AppMain.GMS_ENEMY_3D_WORK gms_ENEMY_3D_WORK = (AppMain.GMS_ENEMY_3D_WORK)obs_OBJECT_WORK;
        AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK, AppMain.gm_gmk_capsule_obj_3d_list[2], gms_ENEMY_3D_WORK.obj_3d);
        obs_OBJECT_WORK.pos.z      = -393216;
        obs_OBJECT_WORK.move_flag |= 8448U;
        obs_OBJECT_WORK.disp_flag |= 4194304U;
        AppMain.OBS_COLLISION_WORK col_work = gms_ENEMY_3D_WORK.ene_com.col_work;
        col_work.obj_col.obj    = obs_OBJECT_WORK;
        col_work.obj_col.width  = 32;
        col_work.obj_col.height = 40;
        col_work.obj_col.ofst_x = ( short )(-col_work.obj_col.width / 2);
        col_work.obj_col.ofst_y = -76;
        gms_ENEMY_3D_WORK.ene_com.rect_work[0].flag &= 4294967291U;
        gms_ENEMY_3D_WORK.ene_com.rect_work[1].flag &= 4294967291U;
        AppMain.OBS_RECT_WORK obs_RECT_WORK = gms_ENEMY_3D_WORK.ene_com.rect_work[2];
        obs_RECT_WORK.ppHit = null;
        obs_RECT_WORK.ppDef = null;
        AppMain.ObjRectAtkSet(obs_RECT_WORK, 0, 0);
        AppMain.ObjRectDefSet(obs_RECT_WORK, 65534, 0);
        AppMain.ObjRectWorkSet(obs_RECT_WORK, -4, -80, 4, -72);
        obs_OBJECT_WORK.user_flag = ( uint )(( ulong )obs_OBJECT_WORK.user_flag & 18446744073709551614UL);
        obs_OBJECT_WORK.ppFunc    = AppMain.gmGmkCapsuleSwitchMain;
        OBS_OBJECT_WORK obs_OBJECT_WORK2 = AppMain.GmEventMgrLocalEventBirth(301, pos_x, pos_y, gms_ENEMY_3D_WORK.ene_com.eve_rec.flag, gms_ENEMY_3D_WORK.ene_com.eve_rec.left, gms_ENEMY_3D_WORK.ene_com.eve_rec.top, gms_ENEMY_3D_WORK.ene_com.eve_rec.width, gms_ENEMY_3D_WORK.ene_com.eve_rec.height, 0);

        obs_OBJECT_WORK2.parent_obj    = obs_OBJECT_WORK;
        obs_OBJECT_WORK2.view_out_ofst = obs_OBJECT_WORK.view_out_ofst;
        gms_ENEMY_3D_WORK = (AppMain.GMS_ENEMY_3D_WORK)obs_OBJECT_WORK2;
        obs_OBJECT_WORK2  = AppMain.GMM_EFFECT_CREATE_WORK(() => new AppMain.GMS_EFFECT_3DNN_WORK(), obs_OBJECT_WORK, 0, "GMK_CAPSULE_BODY");
        AppMain.GMS_EFFECT_3DNN_WORK gms_EFFECT_3DNN_WORK = (AppMain.GMS_EFFECT_3DNN_WORK)obs_OBJECT_WORK2;
        AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK2, AppMain.gm_gmk_capsule_obj_3d_list[1], gms_EFFECT_3DNN_WORK.obj_3d);
        obs_OBJECT_WORK2.pos.z      = -131072;
        obs_OBJECT_WORK2.move_flag |= 8448U;
        obs_OBJECT_WORK2.disp_flag |= 4194304U;
        obs_OBJECT_WORK2.ppFunc     = AppMain.gmGmkCapsuleKeyMain;
        return(obs_OBJECT_WORK);
    }
Example #20
0
 public static AppMain.OBS_OBJECT_WORK GmGmkBridgeInit(
     AppMain.GMS_EVE_RECORD_EVENT eve_rec,
     int pos_x,
     int pos_y,
     byte type)
 {
     AppMain.OBS_OBJECT_WORK   work1          = AppMain.GMM_ENEMY_CREATE_WORK(eve_rec, pos_x, pos_y, (AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_ENEMY_3D_WORK()), "GMK_BRIDGE");
     AppMain.GMS_ENEMY_3D_WORK gmsEnemy3DWork = (AppMain.GMS_ENEMY_3D_WORK)work1;
     AppMain.ObjObjectCopyAction3dNNModel(work1, AppMain.gm_gmk_bridge_obj_3d_list[0], gmsEnemy3DWork.obj_3d);
     work1.user_work  = ((int)eve_rec.flag & 1) == 0 ? 2U : 3U;
     work1.user_flag  = 0U;
     work1.user_timer = 0;
     work1.pos.z      = -131072;
     work1.move_flag |= 8448U;
     work1.disp_flag |= 4194304U;
     work1.ppFunc     = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkBridgeMain);
     work1.ppOut      = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkBridgeDrawFunc);
     AppMain.OBS_COLLISION_WORK colWork = gmsEnemy3DWork.ene_com.col_work;
     colWork.obj_col.obj       = work1;
     colWork.obj_col.diff_data = AppMain.g_gm_default_col;
     colWork.obj_col.flag     |= 134217728U;
     colWork.obj_col.width     = (ushort)(work1.user_work * 64U);
     colWork.obj_col.height    = (ushort)16;
     colWork.obj_col.ofst_x    = (short)-96;
     colWork.obj_col.ofst_y    = (short)0;
     colWork.obj_col.attr      = (ushort)1;
     AppMain.OBS_OBJECT_WORK      work2             = AppMain.GMM_EFFECT_CREATE_WORK((AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_EFFECT_3DNN_WORK()), work1, (ushort)0, "GMK_SPILE");
     AppMain.GMS_EFFECT_3DNN_WORK gmsEffect3DnnWork = (AppMain.GMS_EFFECT_3DNN_WORK)work2;
     AppMain.ObjObjectCopyAction3dNNModel(work2, AppMain.gm_gmk_bridge_obj_3d_list[2], gmsEffect3DnnWork.obj_3d);
     work2.user_work        = work1.user_work;
     work2.pos.z            = -131072;
     work2.move_flag       |= 8448U;
     work2.disp_flag       |= 4194304U;
     work2.ppOut            = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkBridgeDecoDrawFunc);
     work2.obj_3d.drawflag |= 32U;
     return(work1);
 }
Example #21
0
 public GMS_BOSS5_LDPART_WORK()
 {
     this.efct_3d = new AppMain.GMS_EFFECT_3DNN_WORK((object)this);
 }
 public GMS_GMK_PISTONROD_WORK()
 {
     this.eff_work = new AppMain.GMS_EFFECT_3DNN_WORK((object)this);
 }
Example #23
0
 public GMS_GMK_BWALL_PARTS()
 {
     this.eff_work = new AppMain.GMS_EFFECT_3DNN_WORK((object)this);
 }
Example #24
0
    // Token: 0x06000B1D RID: 2845 RVA: 0x000641C4 File Offset: 0x000623C4
    private static void gmGmkSsRingGateNumMain(OBS_OBJECT_WORK obj_work)
    {
        OBS_OBJECT_WORK parent_obj = obj_work.parent_obj;

        AppMain.GMS_EFFECT_3DNN_WORK gms_EFFECT_3DNN_WORK = (AppMain.GMS_EFFECT_3DNN_WORK)obj_work;
        if (parent_obj.user_timer < 8)
        {
            obj_work.flag |= 4U;
            return;
        }
        int num = (int)((ulong)parent_obj.user_work - (ulong)((long)AppMain.g_gm_main_system.ply_work[(int)((UIntPtr)0)].ring_num));

        num = AppMain.MTM_MATH_CLIP(num, 0, 99);
        if (obj_work.user_work == 1U && num < 10)
        {
            obj_work.disp_flag |= 32U;
            return;
        }
        bool flag = false;

        switch (obj_work.user_work)
        {
        case 1U:
            if (obj_work.user_timer != num / 10)
            {
                obj_work.user_timer = num / 10;
                flag = true;
            }
            break;

        case 2U:
            if (obj_work.user_timer != num % 10)
            {
                obj_work.user_timer = num % 10;
                flag = true;
            }
            break;
        }
        if (flag)
        {
            AppMain.ObjAction3dNNMotionRelease(obj_work.obj_3d);
            AppMain.ObjObjectAction3dNNModelReleaseCopy(obj_work);
            AppMain.ObjObjectCopyAction3dNNModel(obj_work, AppMain.gm_gmk_ss_ringgate_obj_3d_list[2 + obj_work.user_timer], gms_EFFECT_3DNN_WORK.obj_3d);
        }
        obj_work.dir.z            = AppMain.GmMainGetObjectRotation();
        obj_work.disp_flag       |= (parent_obj.disp_flag & 134217728U);
        obj_work.obj_3d.drawflag |= (parent_obj.obj_3d.drawflag & 8388608U);
        obj_work.obj_3d.draw_state.alpha.alpha = parent_obj.obj_3d.draw_state.alpha.alpha;
        int num2 = parent_obj.pos.x;
        int num3 = parent_obj.pos.y;

        switch (obj_work.user_work)
        {
        case 0U:
            num2 += AppMain.FX_Mul(-36864, AppMain.mtMathCos(( int )obj_work.dir.z));
            num3 += AppMain.FX_Mul(-36864, AppMain.mtMathSin(( int )obj_work.dir.z));
            break;

        case 2U:
            num2 += AppMain.FX_Mul(36864, AppMain.mtMathCos(( int )obj_work.dir.z));
            num3 += AppMain.FX_Mul(36864, AppMain.mtMathSin(( int )obj_work.dir.z));
            break;
        }
        obj_work.pos.x = num2;
        obj_work.pos.y = num3;
    }
Example #25
0
    // Token: 0x06000B17 RID: 2839 RVA: 0x0006387C File Offset: 0x00061A7C
    private static OBS_OBJECT_WORK GmGmkSsRingGateInit(AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type)
    {
        OBS_OBJECT_WORK obs_OBJECT_WORK = AppMain.GMM_ENEMY_CREATE_WORK(eve_rec, pos_x, pos_y, () => new AppMain.GMS_ENEMY_3D_WORK(), "GMK_SS_RINGGATE");

        AppMain.GMS_ENEMY_3D_WORK gms_ENEMY_3D_WORK = (AppMain.GMS_ENEMY_3D_WORK)obs_OBJECT_WORK;
        obs_OBJECT_WORK.user_work  = ( uint )AppMain.GmSplStageRingGateNumGet(( ushort )eve_rec.left);
        obs_OBJECT_WORK.user_flag  = ( uint )(eve_rec.flag & 1);
        obs_OBJECT_WORK.user_timer = 20;
        if (( ushort )obs_OBJECT_WORK.user_work > ( ushort )AppMain.g_gm_main_system.ply_work[( int )(( UIntPtr )0)].ring_num)
        {
            AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK, AppMain.gm_gmk_ss_ringgate_obj_3d_list[0], gms_ENEMY_3D_WORK.obj_3d);
            uint num = AppMain.g_gm_main_system.sync_time % 128U;
            gms_ENEMY_3D_WORK.obj_3d.mat_frame = num;
            obs_OBJECT_WORK.ppOut     = AppMain.gmGmkSsRingGateDrawFunc;
            obs_OBJECT_WORK.user_flag = ((obs_OBJECT_WORK.user_flag & 1U) | (num & 127U) << 8);
        }
        else
        {
            AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK, AppMain.gm_gmk_ss_ringgate_obj_3d_list[1], gms_ENEMY_3D_WORK.obj_3d);
        }
        obs_OBJECT_WORK.pos.z      = -131072;
        obs_OBJECT_WORK.move_flag |= 8448U;
        gms_ENEMY_3D_WORK.ene_com.col_work.obj_col.flag |= 134217728U;
        obs_OBJECT_WORK.disp_flag             |= 4194304U;
        obs_OBJECT_WORK.obj_3d.use_light_flag &= 4294967294U;
        obs_OBJECT_WORK.obj_3d.use_light_flag |= 2U;
        if (( ushort )obs_OBJECT_WORK.user_work > ( ushort )AppMain.g_gm_main_system.ply_work[( int )(( UIntPtr )0)].ring_num)
        {
            OBS_OBJECT_WORK obs_OBJECT_WORK2 = AppMain.GMM_EFFECT_CREATE_WORK(() => new AppMain.GMS_EFFECT_3DNN_WORK(), obs_OBJECT_WORK, 0, "GATERING");
            AppMain.GMS_EFFECT_3DNN_WORK gms_EFFECT_3DNN_WORK = (AppMain.GMS_EFFECT_3DNN_WORK)obs_OBJECT_WORK2;
            AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK2, AppMain.gm_gmk_ss_ringgate_obj_3d_list[12], gms_EFFECT_3DNN_WORK.obj_3d);
            obs_OBJECT_WORK2.pos.z      = -65536;
            obs_OBJECT_WORK2.move_flag |= 8448U;
            obs_OBJECT_WORK2.disp_flag &= 4294967039U;
            obs_OBJECT_WORK2.user_work  = 0U;
            obs_OBJECT_WORK2.ppFunc     = AppMain.gmGmkSsRingGateNumMain;
            obs_OBJECT_WORK2.dir.y      = 49152;
            obs_OBJECT_WORK2            = AppMain.GMM_EFFECT_CREATE_WORK(() => new AppMain.GMS_EFFECT_3DNN_WORK(), obs_OBJECT_WORK, 0, "GATENUM10");
            gms_EFFECT_3DNN_WORK        = (AppMain.GMS_EFFECT_3DNN_WORK)obs_OBJECT_WORK2;
            obs_OBJECT_WORK2.user_timer = ( int )(obs_OBJECT_WORK.user_work / 10U);
            AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK2, AppMain.gm_gmk_ss_ringgate_obj_3d_list[2 + obs_OBJECT_WORK2.user_timer], gms_EFFECT_3DNN_WORK.obj_3d);
            obs_OBJECT_WORK2.pos.z      = -65536;
            obs_OBJECT_WORK2.move_flag |= 8448U;
            obs_OBJECT_WORK2.disp_flag &= 4294967039U;
            obs_OBJECT_WORK2.user_work  = 1U;
            obs_OBJECT_WORK2.ppFunc     = AppMain.gmGmkSsRingGateNumMain;
            obs_OBJECT_WORK2.dir.y      = 49152;
            obs_OBJECT_WORK2            = AppMain.GMM_EFFECT_CREATE_WORK(() => new AppMain.GMS_EFFECT_3DNN_WORK(), obs_OBJECT_WORK, 0, "GATENUM1");
            gms_EFFECT_3DNN_WORK        = (AppMain.GMS_EFFECT_3DNN_WORK)obs_OBJECT_WORK2;
            obs_OBJECT_WORK2.user_timer = ( int )(obs_OBJECT_WORK.user_work % 10U);
            AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK2, AppMain.gm_gmk_ss_ringgate_obj_3d_list[2 + obs_OBJECT_WORK2.user_timer], gms_EFFECT_3DNN_WORK.obj_3d);
            obs_OBJECT_WORK2.pos.z      = -65536;
            obs_OBJECT_WORK2.move_flag |= 8448U;
            obs_OBJECT_WORK2.disp_flag &= 4294967039U;
            obs_OBJECT_WORK2.user_work  = 2U;
            obs_OBJECT_WORK2.ppFunc     = AppMain.gmGmkSsRingGateNumMain;
            obs_OBJECT_WORK2.dir.y      = 49152;
        }
        obs_OBJECT_WORK.ppFunc = AppMain.gmGmkSsRingGateMain;
        gms_ENEMY_3D_WORK.ene_com.rect_work[0].flag &= 4294967291U;
        AppMain.OBS_RECT_WORK obs_RECT_WORK = gms_ENEMY_3D_WORK.ene_com.rect_work[2];
        obs_RECT_WORK.ppDef = AppMain.gmGmkSsRingGateDefFunc;
        AppMain.ObjRectDefSet(obs_RECT_WORK, 65534, 0);
        if ((eve_rec.flag & 1) != 0)
        {
            AppMain.ObjRectWorkSet(obs_RECT_WORK, -20, -52, 20, 52);
            obs_OBJECT_WORK.dir.z = 16384;
        }
        else
        {
            AppMain.ObjRectWorkSet(obs_RECT_WORK, -52, -20, 52, 20);
        }
        obs_RECT_WORK.flag |= 1024U;
        AppMain.OBS_COLLISION_WORK col_work = gms_ENEMY_3D_WORK.ene_com.col_work;
        col_work.obj_col.obj       = obs_OBJECT_WORK;
        col_work.obj_col.diff_data = AppMain.g_gm_default_col;
        if ((eve_rec.flag & 1) != 0)
        {
            col_work.obj_col.width  = 24;
            col_work.obj_col.height = 96;
        }
        else
        {
            col_work.obj_col.width  = 96;
            col_work.obj_col.height = 24;
        }
        col_work.obj_col.ofst_x = ( short )(-( short )(col_work.obj_col.width / 2));
        col_work.obj_col.ofst_y = ( short )(-( short )(col_work.obj_col.height / 2));
        col_work.obj_col.attr   = 2;
        col_work.obj_col.flag  |= 134217760U;
        if (( ushort )obs_OBJECT_WORK.user_work <= ( ushort )AppMain.g_gm_main_system.ply_work[( int )(( UIntPtr )0)].ring_num)
        {
            gms_ENEMY_3D_WORK.ene_com.rect_work[2].flag   &= 4294967291U;
            gms_ENEMY_3D_WORK.ene_com.col_work.obj_col.obj = null;
            obs_OBJECT_WORK.ppFunc = null;
            obs_OBJECT_WORK.ppOut  = AppMain.ObjDrawActionSummary;
        }
        return(obs_OBJECT_WORK);
    }
Example #26
0
 private static AppMain.OBS_OBJECT_WORK GmGmkSsRingGateInit(
     AppMain.GMS_EVE_RECORD_EVENT eve_rec,
     int pos_x,
     int pos_y,
     byte type)
 {
     AppMain.OBS_OBJECT_WORK   work1          = AppMain.GMM_ENEMY_CREATE_WORK(eve_rec, pos_x, pos_y, (AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_ENEMY_3D_WORK()), "GMK_SS_RINGGATE");
     AppMain.GMS_ENEMY_3D_WORK gmsEnemy3DWork = (AppMain.GMS_ENEMY_3D_WORK)work1;
     work1.user_work  = (uint)AppMain.GmSplStageRingGateNumGet((ushort)eve_rec.left);
     work1.user_flag  = (uint)eve_rec.flag & 1U;
     work1.user_timer = 20;
     if ((int)(ushort)work1.user_work > (int)AppMain.g_gm_main_system.ply_work[0].ring_num)
     {
         AppMain.ObjObjectCopyAction3dNNModel(work1, AppMain.gm_gmk_ss_ringgate_obj_3d_list[0], gmsEnemy3DWork.obj_3d);
         uint num = AppMain.g_gm_main_system.sync_time % 128U;
         gmsEnemy3DWork.obj_3d.mat_frame = (float)num;
         work1.ppOut     = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkSsRingGateDrawFunc);
         work1.user_flag = (uint)((int)work1.user_flag & 1 | ((int)num & (int)sbyte.MaxValue) << 8);
     }
     else
     {
         AppMain.ObjObjectCopyAction3dNNModel(work1, AppMain.gm_gmk_ss_ringgate_obj_3d_list[1], gmsEnemy3DWork.obj_3d);
     }
     work1.pos.z      = -131072;
     work1.move_flag |= 8448U;
     gmsEnemy3DWork.ene_com.col_work.obj_col.flag |= 134217728U;
     work1.disp_flag             |= 4194304U;
     work1.obj_3d.use_light_flag &= 4294967294U;
     work1.obj_3d.use_light_flag |= 2U;
     if ((int)(ushort)work1.user_work > (int)AppMain.g_gm_main_system.ply_work[0].ring_num)
     {
         AppMain.OBS_OBJECT_WORK      work2 = AppMain.GMM_EFFECT_CREATE_WORK((AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_EFFECT_3DNN_WORK()), work1, (ushort)0, "GATERING");
         AppMain.GMS_EFFECT_3DNN_WORK gmsEffect3DnnWork1 = (AppMain.GMS_EFFECT_3DNN_WORK)work2;
         AppMain.ObjObjectCopyAction3dNNModel(work2, AppMain.gm_gmk_ss_ringgate_obj_3d_list[12], gmsEffect3DnnWork1.obj_3d);
         work2.pos.z      = -65536;
         work2.move_flag |= 8448U;
         work2.disp_flag &= 4294967039U;
         work2.user_work  = 0U;
         work2.ppFunc     = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkSsRingGateNumMain);
         work2.dir.y      = (ushort)49152;
         AppMain.OBS_OBJECT_WORK      work3 = AppMain.GMM_EFFECT_CREATE_WORK((AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_EFFECT_3DNN_WORK()), work1, (ushort)0, "GATENUM10");
         AppMain.GMS_EFFECT_3DNN_WORK gmsEffect3DnnWork2 = (AppMain.GMS_EFFECT_3DNN_WORK)work3;
         work3.user_timer = (int)(work1.user_work / 10U);
         AppMain.ObjObjectCopyAction3dNNModel(work3, AppMain.gm_gmk_ss_ringgate_obj_3d_list[2 + work3.user_timer], gmsEffect3DnnWork2.obj_3d);
         work3.pos.z      = -65536;
         work3.move_flag |= 8448U;
         work3.disp_flag &= 4294967039U;
         work3.user_work  = 1U;
         work3.ppFunc     = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkSsRingGateNumMain);
         work3.dir.y      = (ushort)49152;
         AppMain.OBS_OBJECT_WORK      work4 = AppMain.GMM_EFFECT_CREATE_WORK((AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_EFFECT_3DNN_WORK()), work1, (ushort)0, "GATENUM1");
         AppMain.GMS_EFFECT_3DNN_WORK gmsEffect3DnnWork3 = (AppMain.GMS_EFFECT_3DNN_WORK)work4;
         work4.user_timer = (int)(work1.user_work % 10U);
         AppMain.ObjObjectCopyAction3dNNModel(work4, AppMain.gm_gmk_ss_ringgate_obj_3d_list[2 + work4.user_timer], gmsEffect3DnnWork3.obj_3d);
         work4.pos.z      = -65536;
         work4.move_flag |= 8448U;
         work4.disp_flag &= 4294967039U;
         work4.user_work  = 2U;
         work4.ppFunc     = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkSsRingGateNumMain);
         work4.dir.y      = (ushort)49152;
     }
     work1.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkSsRingGateMain);
     gmsEnemy3DWork.ene_com.rect_work[0].flag &= 4294967291U;
     AppMain.OBS_RECT_WORK pRec = gmsEnemy3DWork.ene_com.rect_work[2];
     pRec.ppDef = new AppMain.OBS_RECT_WORK_Delegate1(AppMain.gmGmkSsRingGateDefFunc);
     AppMain.ObjRectDefSet(pRec, (ushort)65534, (short)0);
     if (((int)eve_rec.flag & 1) != 0)
     {
         AppMain.ObjRectWorkSet(pRec, (short)-20, (short)-52, (short)20, (short)52);
         work1.dir.z = (ushort)16384;
     }
     else
     {
         AppMain.ObjRectWorkSet(pRec, (short)-52, (short)-20, (short)52, (short)20);
     }
     pRec.flag |= 1024U;
     AppMain.OBS_COLLISION_WORK colWork = gmsEnemy3DWork.ene_com.col_work;
     colWork.obj_col.obj       = work1;
     colWork.obj_col.diff_data = AppMain.g_gm_default_col;
     if (((int)eve_rec.flag & 1) != 0)
     {
         colWork.obj_col.width  = (ushort)24;
         colWork.obj_col.height = (ushort)96;
     }
     else
     {
         colWork.obj_col.width  = (ushort)96;
         colWork.obj_col.height = (ushort)24;
     }
     colWork.obj_col.ofst_x = (short)-((int)colWork.obj_col.width / 2);
     colWork.obj_col.ofst_y = (short)-((int)colWork.obj_col.height / 2);
     colWork.obj_col.attr   = (ushort)2;
     colWork.obj_col.flag  |= 134217760U;
     if ((int)(ushort)work1.user_work <= (int)AppMain.g_gm_main_system.ply_work[0].ring_num)
     {
         gmsEnemy3DWork.ene_com.rect_work[2].flag   &= 4294967291U;
         gmsEnemy3DWork.ene_com.col_work.obj_col.obj = (AppMain.OBS_OBJECT_WORK)null;
         work1.ppFunc = (AppMain.MPP_VOID_OBS_OBJECT_WORK)null;
         work1.ppOut  = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.ObjDrawActionSummary);
     }
     return(work1);
 }
Example #27
0
 public GMS_GMK_SPEARPARTS_WORK()
 {
     this.eff_work = new AppMain.GMS_EFFECT_3DNN_WORK((object)this);
 }
Example #28
0
    private static void gmGmkSsRingGateNumMain(AppMain.OBS_OBJECT_WORK obj_work)
    {
        AppMain.OBS_OBJECT_WORK      parentObj         = obj_work.parent_obj;
        AppMain.GMS_EFFECT_3DNN_WORK gmsEffect3DnnWork = (AppMain.GMS_EFFECT_3DNN_WORK)obj_work;
        if (parentObj.user_timer < 8)
        {
            obj_work.flag |= 4U;
        }
        else
        {
            int num = AppMain.MTM_MATH_CLIP((int)((long)parentObj.user_work - (long)AppMain.g_gm_main_system.ply_work[0].ring_num), 0, 99);
            if (obj_work.user_work == 1U && num < 10)
            {
                obj_work.disp_flag |= 32U;
            }
            else
            {
                bool flag = false;
                switch (obj_work.user_work)
                {
                case 1:
                    if (obj_work.user_timer != num / 10)
                    {
                        obj_work.user_timer = num / 10;
                        flag = true;
                        break;
                    }
                    break;

                case 2:
                    if (obj_work.user_timer != num % 10)
                    {
                        obj_work.user_timer = num % 10;
                        flag = true;
                        break;
                    }
                    break;
                }
                if (flag)
                {
                    AppMain.ObjAction3dNNMotionRelease(obj_work.obj_3d);
                    AppMain.ObjObjectAction3dNNModelReleaseCopy(obj_work);
                    AppMain.ObjObjectCopyAction3dNNModel(obj_work, AppMain.gm_gmk_ss_ringgate_obj_3d_list[2 + obj_work.user_timer], gmsEffect3DnnWork.obj_3d);
                }
                obj_work.dir.z            = AppMain.GmMainGetObjectRotation();
                obj_work.disp_flag       |= parentObj.disp_flag & 134217728U;
                obj_work.obj_3d.drawflag |= parentObj.obj_3d.drawflag & 8388608U;
                obj_work.obj_3d.draw_state.alpha.alpha = parentObj.obj_3d.draw_state.alpha.alpha;
                int x = parentObj.pos.x;
                int y = parentObj.pos.y;
                switch (obj_work.user_work)
                {
                case 0:
                    x += AppMain.FX_Mul(-36864, AppMain.mtMathCos((int)obj_work.dir.z));
                    y += AppMain.FX_Mul(-36864, AppMain.mtMathSin((int)obj_work.dir.z));
                    break;

                case 2:
                    x += AppMain.FX_Mul(36864, AppMain.mtMathCos((int)obj_work.dir.z));
                    y += AppMain.FX_Mul(36864, AppMain.mtMathSin((int)obj_work.dir.z));
                    break;
                }
                obj_work.pos.x = x;
                obj_work.pos.y = y;
            }
        }
    }