Пример #1
0
 private static void gmBoss1EffBodySmallSmokeProcMain(AppMain.OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_BOSS1_BODY_WORK parentObj = (AppMain.GMS_BOSS1_BODY_WORK)obj_work.parent_obj;
     AppMain.MTM_ASSERT((int)parentObj.snm_work.reg_node_max);
     obj_work.flag &= 4294966271U;
     AppMain.GmBsCmnUpdateObject3DESStuckWithNode(obj_work, parentObj.snm_work, parentObj.body_snm_reg_id, 1);
 }
Пример #2
0
 private static void gmBoss1EggMain(AppMain.OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_BOSS1_BODY_WORK parentObj       = (AppMain.GMS_BOSS1_BODY_WORK)obj_work.parent_obj;
     AppMain.GMS_BOSS1_EGG_WORK  gmsBosS1EggWork = (AppMain.GMS_BOSS1_EGG_WORK)obj_work;
     AppMain.GmBsCmnUpdateObject3DNNStuckWithNode(obj_work, parentObj.snm_work, parentObj.egg_snm_reg_id, 1);
     if (gmsBosS1EggWork.proc_update != null)
     {
         gmsBosS1EggWork.proc_update(gmsBosS1EggWork);
     }
     if (((int)parentObj.flag & 8388608) != 0)
     {
         parentObj.flag &= 4286578687U;
         AppMain.gmBoss1EggProcEscapeInit(gmsBosS1EggWork);
     }
     if (((int)parentObj.flag & 536870912) != 0)
     {
         parentObj.flag &= 3758096383U;
         AppMain.gmBoss1EggProcDamageInit(gmsBosS1EggWork);
     }
     if (((int)parentObj.flag & 16777216) != 0)
     {
         parentObj.flag &= 4278190079U;
         AppMain.gmBoss1SetPartTextureBurnt(obj_work);
     }
     if (((int)AppMain.GMM_BS_OBJ((object)parentObj).disp_flag & 16) != 0)
     {
         obj_work.disp_flag |= 16U;
     }
     else
     {
         obj_work.disp_flag &= 4294967279U;
     }
 }
Пример #3
0
 private static void gmBoss1EggRevertActionIndependent(AppMain.GMS_BOSS1_EGG_WORK egg_work)
 {
     AppMain.OBS_OBJECT_WORK     obj_work  = AppMain.GMM_BS_OBJ((object)egg_work);
     AppMain.GMS_BOSS1_BODY_WORK parentObj = (AppMain.GMS_BOSS1_BODY_WORK)obj_work.parent_obj;
     AppMain.MTM_ASSERT(egg_work.flag & 1U);
     egg_work.flag &= 4294967294U;
     AppMain.GmBsCmnSetAction(obj_work, (int)parentObj.egg_revert_mtn_id, (int)AppMain.gm_boss1_act_id_tbl[parentObj.whole_act_id][2].is_repeat, 1);
     obj_work.obj_3d.frame[0] = AppMain.GMM_BS_OBJ((object)parentObj).obj_3d.frame[0];
 }
Пример #4
0
 private static void gmBoss1EffBodySmallSmokeInit(AppMain.GMS_BOSS1_BODY_WORK body_work)
 {
     AppMain.OBS_OBJECT_WORK parent_obj = AppMain.GMM_BS_OBJ((object)body_work);
     for (int index = 0; index < 3; ++index)
     {
         AppMain.GMS_EFFECT_3DES_WORK efct_3des = AppMain.GmEfctBossCmnEsCreate(parent_obj, 2U);
         AppMain.GmEffect3DESSetDispOffset(efct_3des, AppMain.gm_boss1_eff_small_smoke_disp_ofst_tbl[index][0], AppMain.gm_boss1_eff_small_smoke_disp_ofst_tbl[index][1], AppMain.gm_boss1_eff_small_smoke_disp_ofst_tbl[index][2]);
         AppMain.GMM_BS_OBJ((object)efct_3des).ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmBoss1EffBodySmallSmokeProcMain);
     }
 }
Пример #5
0
 private static void gmBoss1EffAfterburnerUpdateCreate(AppMain.GMS_BOSS1_BODY_WORK body_work)
 {
     if (((int)body_work.flag & 33554432) == 0)
     {
         return;
     }
     body_work.flag &= 4261412863U;
     body_work.flag |= 16U;
     AppMain.gmBoss1EffAfterburnerInit(body_work);
 }
Пример #6
0
 private static void gmBoss1EggProcIdleUpdateLoop(AppMain.GMS_BOSS1_EGG_WORK egg_work)
 {
     AppMain.GMS_BOSS1_BODY_WORK parentObj = (AppMain.GMS_BOSS1_BODY_WORK)AppMain.GMM_BS_OBJ((object)egg_work).parent_obj;
     if (((int)parentObj.flag & 268435456) == 0)
     {
         return;
     }
     parentObj.flag &= 4026531839U;
     AppMain.gmBoss1EggProcLaughInit(egg_work);
 }
Пример #7
0
 private static void gmBoss1EggWaitSetup(AppMain.OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_BOSS1_BODY_WORK parentObj = (AppMain.GMS_BOSS1_BODY_WORK)obj_work.parent_obj;
     AppMain.GMS_BOSS1_EGG_WORK  egg_work  = (AppMain.GMS_BOSS1_EGG_WORK)obj_work;
     if (((int)AppMain.GMM_BOSS1_MGR(parentObj).flag & 1) == 0)
     {
         return;
     }
     obj_work.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmBoss1EggMain);
     AppMain.gmBoss1EggProcIdleInit(egg_work);
 }
Пример #8
0
 private static void gmBoss1EffAfterburnerProcMain(AppMain.OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_BOSS1_BODY_WORK parentObj = (AppMain.GMS_BOSS1_BODY_WORK)obj_work.parent_obj;
     AppMain.MTM_ASSERT((int)parentObj.snm_work.reg_node_max);
     if (((int)obj_work.disp_flag & 8) != 0)
     {
         obj_work.flag |= 4U;
     }
     if (((int)parentObj.flag & 16) == 0)
     {
         AppMain.ObjDrawKillAction3DES(obj_work);
     }
     AppMain.GmBsCmnUpdateObject3DESStuckWithNode(obj_work, parentObj.snm_work, parentObj.body_snm_reg_id, 1);
 }
Пример #9
0
 private static void gmBoss1EffAfterburnerSetEnable(
     AppMain.GMS_BOSS1_BODY_WORK body_work,
     bool is_enable)
 {
     if (is_enable)
     {
         AppMain.MTM_ASSERT(0 == ((int)body_work.flag & 16));
         AppMain.MTM_ASSERT(0 == ((int)body_work.flag & 33554432));
         body_work.flag |= 33554432U;
     }
     else
     {
         body_work.flag &= 4294967279U;
         body_work.flag &= 4261412863U;
     }
 }
Пример #10
0
    private static void gmBoss1MgrWaitSetup(AppMain.OBS_OBJECT_WORK obj_work)
    {
        AppMain.GMS_BOSS1_MGR_WORK  gmsBosS1MgrWork = (AppMain.GMS_BOSS1_MGR_WORK)obj_work;
        AppMain.GMS_BOSS1_BODY_WORK bodyWork        = gmsBosS1MgrWork.body_work;
        bool flag = true;

        for (int index = 0; index < 3; ++index)
        {
            if (bodyWork.parts_objs[index] == null)
            {
                flag = false;
            }
        }
        if (!flag)
        {
            return;
        }
        gmsBosS1MgrWork.flag |= 1U;
        obj_work.ppFunc       = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmBoss1MgrMain);
    }
Пример #11
0
    private static void gmBoss1MgrWaitLoad(AppMain.OBS_OBJECT_WORK obj_work)
    {
        bool flag = false;

        if (AppMain.GmBsCmnIsFinalZoneType(obj_work) != 0)
        {
            if (AppMain.GmMainDatLoadBossBattleLoadCheck(0))
            {
                flag = true;
            }
        }
        else
        {
            flag = true;
        }
        if (!flag)
        {
            return;
        }
        AppMain.GMS_BOSS1_MGR_WORK mgr_work       = (AppMain.GMS_BOSS1_MGR_WORK)obj_work;
        AppMain.OBS_OBJECT_WORK    obsObjectWork1 = AppMain.GmEventMgrLocalEventBirth((ushort)313, obj_work.pos.x, obj_work.pos.y, (ushort)0, (sbyte)0, (sbyte)0, (byte)0, (byte)0, (byte)0);
        AppMain.gmBoss1MgrIncObjCreateCount(mgr_work);
        AppMain.OBS_OBJECT_WORK obsObjectWork2 = AppMain.GmEventMgrLocalEventBirth((ushort)314, obj_work.pos.x, obj_work.pos.y, (ushort)0, (sbyte)0, (sbyte)0, (byte)0, (byte)0, (byte)0);
        AppMain.gmBoss1MgrIncObjCreateCount(mgr_work);
        AppMain.OBS_OBJECT_WORK obsObjectWork3 = AppMain.GmEventMgrLocalEventBirth((ushort)315, obj_work.pos.x, obj_work.pos.y, (ushort)0, (sbyte)0, (sbyte)0, (byte)0, (byte)0, (byte)0);
        AppMain.gmBoss1MgrIncObjCreateCount(mgr_work);
        AppMain.GMS_BOSS1_BODY_WORK  gmsBosS1BodyWork  = (AppMain.GMS_BOSS1_BODY_WORK)obsObjectWork1;
        AppMain.GMS_BOSS1_CHAIN_WORK gmsBosS1ChainWork = (AppMain.GMS_BOSS1_CHAIN_WORK)obsObjectWork2;
        AppMain.GMS_BOSS1_EGG_WORK   gmsBosS1EggWork   = (AppMain.GMS_BOSS1_EGG_WORK)obsObjectWork3;
        mgr_work.body_work             = gmsBosS1BodyWork;
        gmsBosS1BodyWork.mgr_work      = mgr_work;
        gmsBosS1ChainWork.mgr_work     = mgr_work;
        gmsBosS1EggWork.mgr_work       = mgr_work;
        obsObjectWork1.parent_obj      = obj_work;
        obsObjectWork2.parent_obj      = obsObjectWork1;
        obsObjectWork3.parent_obj      = obsObjectWork1;
        gmsBosS1BodyWork.parts_objs[0] = obsObjectWork1;
        gmsBosS1BodyWork.parts_objs[1] = obsObjectWork2;
        gmsBosS1BodyWork.parts_objs[2] = obsObjectWork3;
        obj_work.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmBoss1MgrWaitSetup);
    }
Пример #12
0
 public static AppMain.GMS_BOSS1_MGR_WORK GMM_BOSS1_MGR(AppMain.GMS_BOSS1_BODY_WORK work)
 {
     return(work.mgr_work);
 }
Пример #13
0
 private static void gmBoss1EffBodyDebrisInit(AppMain.GMS_BOSS1_BODY_WORK body_work)
 {
     ((AppMain.OBS_OBJECT_WORK)AppMain.GmEfctBossCmnEsCreate(AppMain.GMM_BS_OBJ((object)body_work), 1U)).parent_ofst.x = -65536;
 }
Пример #14
0
 private static void gmBoss1EffBodySmokeInit(AppMain.GMS_BOSS1_BODY_WORK body_work)
 {
     AppMain.GMS_EFFECT_3DES_WORK efct_3des = AppMain.GmEfctBossCmnEsCreate(AppMain.GMM_BS_OBJ((object)body_work), 3U);
     AppMain.GmEffect3DESAddDispOffset(efct_3des, 0.0f, 0.0f, -32f);
     AppMain.GMM_BS_OBJ((object)efct_3des).ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmBoss1EffBodySmokeProcMain);
 }
Пример #15
0
 private static void gmBoss1EffDamageInit(AppMain.GMS_BOSS1_BODY_WORK body_work)
 {
     AppMain.GMM_BS_OBJ((object)AppMain.GmEfctBossCmnEsCreate(AppMain.GMM_BS_OBJ((object)body_work), 0U)).pos.z += 131072;
 }
Пример #16
0
    private static void gmBoss1ChainMain(AppMain.OBS_OBJECT_WORK obj_work)
    {
        AppMain.GMS_BOSS1_CHAIN_WORK chain_work = (AppMain.GMS_BOSS1_CHAIN_WORK)obj_work;
        AppMain.GMS_BOSS1_BODY_WORK  parentObj  = (AppMain.GMS_BOSS1_BODY_WORK)obj_work.parent_obj;
        bool flag;

        if (((int)parentObj.flag & 1) != 0)
        {
            obj_work.disp_flag |= 4194304U;
            flag = true;
        }
        else
        {
            obj_work.disp_flag &= 4290772991U;
            flag = false;
        }
        if (((int)chain_work.flag & 1) != 0)
        {
            obj_work.obj_3d.flag &= 4294967294U;
            if ((double)obj_work.obj_3d.marge > 0.0)
            {
                obj_work.obj_3d.marge -= obj_work.obj_3d.blend_spd;
            }
            else
            {
                chain_work.flag &= 4294967294U;
                if (AppMain.gm_boss1_act_id_tbl[parentObj.whole_act_id][1].is_repeat != (byte)0)
                {
                    obj_work.disp_flag |= 4U;
                }
                else
                {
                    obj_work.disp_flag &= 4294967291U;
                }
                obj_work.obj_3d.marge = 0.0f;
            }
        }
        if (((int)AppMain.GMM_BS_OBJ((object)parentObj).disp_flag & 16) != 0)
        {
            obj_work.disp_flag |= 16U;
        }
        else if (((int)parentObj.flag & 128) == 0)
        {
            obj_work.disp_flag &= 4294967279U;
        }
        if (((int)parentObj.flag & 32) != 0)
        {
            obj_work.disp_flag |= 32U;
        }
        else
        {
            obj_work.disp_flag &= 4294967263U;
        }
        if (((int)parentObj.flag & 64) != 0)
        {
            obj_work.flag |= 2U;
        }
        else
        {
            obj_work.flag &= 4294967293U;
        }
        if (((int)parentObj.flag & 8) != 0)
        {
            obj_work.disp_flag |= 16U;
            obj_work.flag      |= 2U;
        }
        AppMain.GmBsCmnUpdateObject3DNNStuckWithNode(obj_work, parentObj.snm_work, parentObj.chain_snm_reg_id, flag ? 1 : 0);
        if (((int)parentObj.flag & 134217728) != 0)
        {
            parentObj.flag &= 4160749567U;
            AppMain.gmBoss1EffShockwaveInit(chain_work);
        }
        if (((int)parentObj.flag & 67108864) != 0)
        {
            parentObj.flag &= 4227858431U;
            AppMain.gmBoss1EffScatterInit(chain_work);
        }
        AppMain.gmBoss1ChainUpdateAtkRectPosition(chain_work);
    }