コード例 #1
0
    // Token: 0x06001038 RID: 4152 RVA: 0x0008D20C File Offset: 0x0008B40C
    public static void gmEneMoguWaitMain(OBS_OBJECT_WORK obj_work)
    {
        AppMain.GMS_ENE_MOGU_WORK mogu_work       = (AppMain.GMS_ENE_MOGU_WORK)obj_work;
        GMS_PLAYER_WORK           gms_PLAYER_WORK = AppMain.g_gm_main_system.ply_work[(int)((UIntPtr)0)];
        int num  = gms_PLAYER_WORK.obj_work.pos.x - obj_work.pos.x;
        int num2 = gms_PLAYER_WORK.obj_work.pos.y - obj_work.pos.y;
        int num3 = AppMain.FX_Mul(num, num) + AppMain.FX_Mul(num2, num2);

        if (num3 <= AppMain.FX_F32_TO_FX32(25600f))
        {
            obj_work.ppFunc = AppMain.gmEneMoguJumpInit;
            AppMain.GMS_EFFECT_3DES_WORK gms_EFFECT_3DES_WORK;
            if (AppMain.gmEneMoguCheckWater(mogu_work, 48) == 0)
            {
                gms_EFFECT_3DES_WORK = AppMain.GmEfctEneEsCreate(obj_work, 7);
                if (AppMain.g_gs_main_sys_info.stage_id == 9)
                {
                    gms_EFFECT_3DES_WORK.efct_com.obj_work.pos.z = 393216;
                }
            }
            else
            {
                gms_EFFECT_3DES_WORK = AppMain.GmEfctEneEsCreate(obj_work, 8);
            }
            AppMain.GmComEfctSetDispOffsetF(gms_EFFECT_3DES_WORK, 0f, -30f, 0f);
        }
    }
コード例 #2
0
 // Token: 0x06001035 RID: 4149 RVA: 0x0008CF48 File Offset: 0x0008B148
 public static AppMain.OBS_OBJECT_WORK GmEneMoguInit(AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type)
 {
     AppMain.OBS_OBJECT_WORK   obs_OBJECT_WORK   = AppMain.GMM_ENEMY_CREATE_WORK(eve_rec, pos_x, pos_y, () => new AppMain.GMS_ENE_MOGU_WORK(), "ENE_MOGU");
     AppMain.GMS_ENEMY_3D_WORK gms_ENEMY_3D_WORK = (AppMain.GMS_ENEMY_3D_WORK)obs_OBJECT_WORK;
     AppMain.GMS_ENE_MOGU_WORK gms_ENE_MOGU_WORK = (AppMain.GMS_ENE_MOGU_WORK)obs_OBJECT_WORK;
     AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK, AppMain.gm_ene_mogu_obj_3d_list[0], gms_ENEMY_3D_WORK.obj_3d);
     AppMain.ObjObjectAction3dNNMotionLoad(obs_OBJECT_WORK, 0, true, AppMain.ObjDataGet(676), null, 0, null);
     AppMain.ObjDrawObjectSetToon(obs_OBJECT_WORK);
     obs_OBJECT_WORK.pos.z = 0;
     AppMain.OBS_RECT_WORK obs_RECT_WORK = gms_ENEMY_3D_WORK.ene_com.rect_work[1];
     AppMain.ObjRectWorkSet(obs_RECT_WORK, -11, -24, 11, 0);
     obs_RECT_WORK.flag |= 4U;
     obs_RECT_WORK       = gms_ENEMY_3D_WORK.ene_com.rect_work[0];
     AppMain.ObjRectWorkSet(obs_RECT_WORK, -19, -32, 19, 0);
     obs_RECT_WORK.flag |= 4U;
     gms_ENEMY_3D_WORK.ene_com.rect_work[2].flag &= 4294967291U;
     obs_RECT_WORK = gms_ENEMY_3D_WORK.ene_com.rect_work[2];
     AppMain.ObjRectWorkSet(obs_RECT_WORK, -19, -32, 19, 0);
     obs_RECT_WORK.flag &= 4294967291U;
     AppMain.ObjObjectFieldRectSet(obs_OBJECT_WORK, -4, -44, 4, -38);
     obs_OBJECT_WORK.move_flag |= 128U;
     if ((eve_rec.flag & 1) == 0)
     {
         obs_OBJECT_WORK.disp_flag |= 1U;
     }
     obs_OBJECT_WORK.user_work      = ( uint )(obs_OBJECT_WORK.pos.x + (( int )eve_rec.left << 12));
     obs_OBJECT_WORK.user_flag      = ( uint )(obs_OBJECT_WORK.pos.x + (( int )(eve_rec.left + ( sbyte )eve_rec.width) << 12));
     gms_ENE_MOGU_WORK.spd_dec      = 102;
     gms_ENE_MOGU_WORK.spd_dec_dist = 20480;
     gms_ENE_MOGU_WORK.flag         = 0U;
     AppMain.gmEneMoguWaitInit(obs_OBJECT_WORK);
     obs_OBJECT_WORK.obj_3d.use_light_flag &= 4294967294U;
     obs_OBJECT_WORK.obj_3d.use_light_flag |= 64U;
     return(obs_OBJECT_WORK);
 }
コード例 #3
0
    // Token: 0x06001036 RID: 4150 RVA: 0x0008D120 File Offset: 0x0008B320
    public static int gmEneMoguCheckWater(AppMain.GMS_ENE_MOGU_WORK mogu_work, short ofst)
    {
        OBS_OBJECT_WORK obs_OBJECT_WORK = (OBS_OBJECT_WORK)mogu_work;

        if (!AppMain.GmMainIsWaterLevel())
        {
            return(0);
        }
        if ((obs_OBJECT_WORK.pos.y >> 12) - ( int )ofst >= ( int )AppMain.g_gm_main_system.water_level)
        {
            if ((mogu_work.flag & 1U) == 0U && (mogu_work.flag & 2U) != 0U)
            {
                AppMain.GmEfctCmnEsCreate(obs_OBJECT_WORK, 76);
                GmSound.PlaySE("Spray");
            }
            mogu_work.flag |= 1U;
            return(1);
        }
        if ((mogu_work.flag & 1U) != 0U)
        {
            if ((mogu_work.flag & 2U) != 0U)
            {
                AppMain.GmEfctCmnEsCreate(obs_OBJECT_WORK, 76);
                GmSound.PlaySE("Spray");
            }
            mogu_work.flag &= 4294967294U;
            return(1);
        }
        return(0);
    }
コード例 #4
0
 public static void gmEneMoguJumpMain(AppMain.OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_ENE_MOGU_WORK mogu_work = (AppMain.GMS_ENE_MOGU_WORK)obj_work;
     obj_work.spd.x = ((int)obj_work.disp_flag & 1) == 0 ? 2048 : -2048;
     if (obj_work.spd.y > 0)
     {
         if (mogu_work.jumpdown == 0)
         {
             mogu_work.jumpdown = 1;
             AppMain.ObjDrawObjectActionSet(obj_work, 5);
             obj_work.disp_flag |= 4U;
             obj_work.move_flag &= 4294967039U;
             AppMain.ObjObjectFieldRectSet(obj_work, (short)-4, (short)-8, (short)4, (short)-2);
             obj_work.pos.z  = 0;
             mogu_work.flag |= 2U;
         }
         if (((int)obj_work.move_flag & 4) != 0)
         {
             if (((int)obj_work.disp_flag & 1) != 0)
             {
                 obj_work.disp_flag &= 4294967294U;
             }
             else
             {
                 obj_work.disp_flag |= 1U;
             }
         }
     }
     if (((int)obj_work.move_flag & 1) != 0)
     {
         AppMain.GmEneComActionSetDependHFlip(obj_work, 0, 1);
         obj_work.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmEneMoguJumpEnd);
     }
     AppMain.gmEneMoguCheckWater(mogu_work, (short)0);
 }
コード例 #5
0
 public static int gmEneMoguCheckWater(AppMain.GMS_ENE_MOGU_WORK mogu_work, short ofst)
 {
     AppMain.OBS_OBJECT_WORK parent_obj = (AppMain.OBS_OBJECT_WORK)mogu_work;
     if (!AppMain.GmMainIsWaterLevel())
     {
         return(0);
     }
     if ((parent_obj.pos.y >> 12) - (int)ofst >= (int)AppMain.g_gm_main_system.water_level)
     {
         if (((int)mogu_work.flag & 1) == 0 && ((int)mogu_work.flag & 2) != 0)
         {
             AppMain.GmEfctCmnEsCreate(parent_obj, 76);
             AppMain.GmSoundPlaySE("Spray");
         }
         mogu_work.flag |= 1U;
         return(1);
     }
     if (((int)mogu_work.flag & 1) == 0)
     {
         return(0);
     }
     if (((int)mogu_work.flag & 2) != 0)
     {
         AppMain.GmEfctCmnEsCreate(parent_obj, 76);
         AppMain.GmSoundPlaySE("Spray");
     }
     mogu_work.flag &= 4294967294U;
     return(1);
 }
コード例 #6
0
    public static void gmEneMoguWaitMain(AppMain.OBS_OBJECT_WORK obj_work)
    {
        AppMain.GMS_ENE_MOGU_WORK mogu_work     = (AppMain.GMS_ENE_MOGU_WORK)obj_work;
        AppMain.GMS_PLAYER_WORK   gmsPlayerWork = AppMain.g_gm_main_system.ply_work[0];
        int num1 = gmsPlayerWork.obj_work.pos.x - obj_work.pos.x;
        int num2 = gmsPlayerWork.obj_work.pos.y - obj_work.pos.y;

        if (AppMain.FX_Mul(num1, num1) + AppMain.FX_Mul(num2, num2) > AppMain.FX_F32_TO_FX32(25600f))
        {
            return;
        }
        obj_work.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmEneMoguJumpInit);
        AppMain.GMS_EFFECT_3DES_WORK efct_work;
        if (AppMain.gmEneMoguCheckWater(mogu_work, (short)48) == 0)
        {
            efct_work = AppMain.GmEfctEneEsCreate(obj_work, 7);
            if (AppMain.g_gs_main_sys_info.stage_id == (ushort)9)
            {
                efct_work.efct_com.obj_work.pos.z = 393216;
            }
        }
        else
        {
            efct_work = AppMain.GmEfctEneEsCreate(obj_work, 8);
        }
        AppMain.GmComEfctSetDispOffsetF(efct_work, 0.0f, -30f, 0.0f);
    }
コード例 #7
0
 // Token: 0x0600103B RID: 4155 RVA: 0x0008D4F0 File Offset: 0x0008B6F0
 public static void gmEneMoguJumpEnd(OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_ENE_MOGU_WORK mogu_work = (AppMain.GMS_ENE_MOGU_WORK)obj_work;
     AppMain.gmEneMoguCheckWater(mogu_work, 0);
     if ((obj_work.disp_flag & 8U) != 0U)
     {
         obj_work.ppFunc = AppMain.gmEneMoguWalkInit;
     }
 }
コード例 #8
0
    public static void gmEneMoguWalkMain(AppMain.OBS_OBJECT_WORK obj_work)
    {
        AppMain.GMS_PLAYER_WORK   gmsPlayerWork = AppMain.g_gm_main_system.ply_work[0];
        AppMain.GMS_ENE_MOGU_WORK mogu_work     = (AppMain.GMS_ENE_MOGU_WORK)obj_work;
        AppMain.gmEneMoguCheckWater(mogu_work, (short)0);
        int num1 = gmsPlayerWork.obj_work.pos.x - obj_work.pos.x;
        int num2 = gmsPlayerWork.obj_work.pos.y - obj_work.pos.y;
        int num3 = AppMain.FX_Mul(num1, num1) + AppMain.FX_Mul(num2, num2);

        if (((int)((AppMain.GMS_ENEMY_COM_WORK)obj_work).eve_rec.flag & 2) != 0)
        {
            num3 = AppMain.FX_F32_TO_FX32(6400f) + 1;
            mogu_work.wait_time = 216000;
        }
        if (num3 > AppMain.FX_F32_TO_FX32(6400f))
        {
            if (mogu_work.wait_time > 0)
            {
                --mogu_work.wait_time;
                if (((int)obj_work.move_flag & 4) == 0)
                {
                    return;
                }
                AppMain.gmEneMoguJumpInit(obj_work);
            }
            else
            {
                if (AppMain.AkMathRandFx() > AppMain.FX_F32_TO_FX32(0.5f))
                {
                    AppMain.gmEneMoguFlipInit(obj_work);
                }
                mogu_work.wait_time = 216000;
            }
        }
        else
        {
            mogu_work.wait_time = 0;
            if (((int)obj_work.disp_flag & 1) != 0)
            {
                if (AppMain.GmEneComTargetIsLeft(obj_work, gmsPlayerWork.obj_work) == 0)
                {
                    AppMain.gmEneMoguFlipInit(obj_work);
                }
            }
            else if (AppMain.GmEneComTargetIsLeft(obj_work, gmsPlayerWork.obj_work) != 0)
            {
                AppMain.gmEneMoguFlipInit(obj_work);
            }
            if (((int)obj_work.move_flag & 4) == 0)
            {
                return;
            }
            AppMain.gmEneMoguJumpInit(obj_work);
        }
    }
コード例 #9
0
    // Token: 0x06001041 RID: 4161 RVA: 0x0008D75C File Offset: 0x0008B95C
    public static int gmEneMoguSetWalkSpeed(AppMain.GMS_ENE_MOGU_WORK mogu_work)
    {
        int             result          = 0;
        OBS_OBJECT_WORK obs_OBJECT_WORK = (OBS_OBJECT_WORK)mogu_work;

        if ((obs_OBJECT_WORK.disp_flag & 1U) != 0U)
        {
            if (obs_OBJECT_WORK.obj_3d.act_id[0] == 3 && obs_OBJECT_WORK.obj_3d.frame[0] >= 20f)
            {
                obs_OBJECT_WORK.spd.x = AppMain.ObjSpdUpSet(obs_OBJECT_WORK.spd.x, mogu_work.spd_dec, 2048);
            }
            else if (obs_OBJECT_WORK.pos.x <= ( int )(obs_OBJECT_WORK.user_work + ( uint )mogu_work.spd_dec_dist))
            {
                obs_OBJECT_WORK.spd.x = AppMain.ObjSpdDownSet(obs_OBJECT_WORK.spd.x, mogu_work.spd_dec);
                result = 1;
                if (obs_OBJECT_WORK.spd.x == 0 && obs_OBJECT_WORK.pos.x > ( int )obs_OBJECT_WORK.user_work)
                {
                    obs_OBJECT_WORK.spd.x = ( int )(obs_OBJECT_WORK.user_work - ( uint )obs_OBJECT_WORK.pos.x);
                    if (obs_OBJECT_WORK.spd.x < -mogu_work.spd_dec)
                    {
                        obs_OBJECT_WORK.spd.x = -mogu_work.spd_dec;
                    }
                }
            }
            else if (obs_OBJECT_WORK.spd.x > -2048)
            {
                obs_OBJECT_WORK.spd.x = AppMain.ObjSpdUpSet(obs_OBJECT_WORK.spd.x, -mogu_work.spd_dec, 2048);
            }
        }
        else if (obs_OBJECT_WORK.obj_3d.act_id[0] == 2 && obs_OBJECT_WORK.obj_3d.frame[0] >= 20f)
        {
            obs_OBJECT_WORK.spd.x = AppMain.ObjSpdUpSet(obs_OBJECT_WORK.spd.x, -mogu_work.spd_dec, 2048);
        }
        else if (obs_OBJECT_WORK.pos.x >= ( int )(obs_OBJECT_WORK.user_flag - ( uint )mogu_work.spd_dec_dist))
        {
            obs_OBJECT_WORK.spd.x = AppMain.ObjSpdDownSet(obs_OBJECT_WORK.spd.x, mogu_work.spd_dec);
            result = 1;
            if (obs_OBJECT_WORK.spd.x == 0 && obs_OBJECT_WORK.pos.x < ( int )obs_OBJECT_WORK.user_flag)
            {
                obs_OBJECT_WORK.spd.x = ( int )(obs_OBJECT_WORK.user_flag - ( uint )obs_OBJECT_WORK.pos.x);
                if (obs_OBJECT_WORK.spd.x > mogu_work.spd_dec)
                {
                    obs_OBJECT_WORK.spd.x = mogu_work.spd_dec;
                }
            }
        }
        else if (obs_OBJECT_WORK.spd.x < 2048)
        {
            obs_OBJECT_WORK.spd.x = AppMain.ObjSpdUpSet(obs_OBJECT_WORK.spd.x, mogu_work.spd_dec, 2048);
        }
        return(result);
    }
コード例 #10
0
    public static int gmEneMoguSetWalkSpeed(AppMain.GMS_ENE_MOGU_WORK mogu_work)
    {
        int num = 0;

        AppMain.OBS_OBJECT_WORK obsObjectWork = (AppMain.OBS_OBJECT_WORK)mogu_work;
        if (((int)obsObjectWork.disp_flag & 1) != 0)
        {
            if (obsObjectWork.obj_3d.act_id[0] == 3 && (double)obsObjectWork.obj_3d.frame[0] >= 20.0)
            {
                obsObjectWork.spd.x = AppMain.ObjSpdUpSet(obsObjectWork.spd.x, mogu_work.spd_dec, 2048);
            }
            else if (obsObjectWork.pos.x <= (int)obsObjectWork.user_work + mogu_work.spd_dec_dist)
            {
                obsObjectWork.spd.x = AppMain.ObjSpdDownSet(obsObjectWork.spd.x, mogu_work.spd_dec);
                num = 1;
                if (obsObjectWork.spd.x == 0 && obsObjectWork.pos.x > (int)obsObjectWork.user_work)
                {
                    obsObjectWork.spd.x = (int)obsObjectWork.user_work - obsObjectWork.pos.x;
                    if (obsObjectWork.spd.x < -mogu_work.spd_dec)
                    {
                        obsObjectWork.spd.x = -mogu_work.spd_dec;
                    }
                }
            }
            else if (obsObjectWork.spd.x > -2048)
            {
                obsObjectWork.spd.x = AppMain.ObjSpdUpSet(obsObjectWork.spd.x, -mogu_work.spd_dec, 2048);
            }
        }
        else if (obsObjectWork.obj_3d.act_id[0] == 2 && (double)obsObjectWork.obj_3d.frame[0] >= 20.0)
        {
            obsObjectWork.spd.x = AppMain.ObjSpdUpSet(obsObjectWork.spd.x, -mogu_work.spd_dec, 2048);
        }
        else if (obsObjectWork.pos.x >= (int)obsObjectWork.user_flag - mogu_work.spd_dec_dist)
        {
            obsObjectWork.spd.x = AppMain.ObjSpdDownSet(obsObjectWork.spd.x, mogu_work.spd_dec);
            num = 1;
            if (obsObjectWork.spd.x == 0 && obsObjectWork.pos.x < (int)obsObjectWork.user_flag)
            {
                obsObjectWork.spd.x = (int)obsObjectWork.user_flag - obsObjectWork.pos.x;
                if (obsObjectWork.spd.x > mogu_work.spd_dec)
                {
                    obsObjectWork.spd.x = mogu_work.spd_dec;
                }
            }
        }
        else if (obsObjectWork.spd.x < 2048)
        {
            obsObjectWork.spd.x = AppMain.ObjSpdUpSet(obsObjectWork.spd.x, mogu_work.spd_dec, 2048);
        }
        return(num);
    }
コード例 #11
0
    // Token: 0x0600103D RID: 4157 RVA: 0x0008D5A0 File Offset: 0x0008B7A0
    public static void gmEneMoguWalkMain(OBS_OBJECT_WORK obj_work)
    {
        GMS_PLAYER_WORK gms_PLAYER_WORK = AppMain.g_gm_main_system.ply_work[(int)((UIntPtr)0)];

        AppMain.GMS_ENE_MOGU_WORK gms_ENE_MOGU_WORK = (AppMain.GMS_ENE_MOGU_WORK)obj_work;
        AppMain.gmEneMoguCheckWater(gms_ENE_MOGU_WORK, 0);
        int num  = gms_PLAYER_WORK.obj_work.pos.x - obj_work.pos.x;
        int num2 = gms_PLAYER_WORK.obj_work.pos.y - obj_work.pos.y;
        int num3 = AppMain.FX_Mul(num, num) + AppMain.FX_Mul(num2, num2);

        AppMain.GMS_ENEMY_COM_WORK gms_ENEMY_COM_WORK = (AppMain.GMS_ENEMY_COM_WORK)obj_work;
        if ((gms_ENEMY_COM_WORK.eve_rec.flag & 2) != 0)
        {
            num3 = AppMain.FX_F32_TO_FX32(6400f) + 1;
            gms_ENE_MOGU_WORK.wait_time = 216000;
        }
        if (num3 <= AppMain.FX_F32_TO_FX32(6400f))
        {
            gms_ENE_MOGU_WORK.wait_time = 0;
            if ((obj_work.disp_flag & 1U) != 0U)
            {
                if (AppMain.GmEneComTargetIsLeft(obj_work, gms_PLAYER_WORK.obj_work) == 0)
                {
                    AppMain.gmEneMoguFlipInit(obj_work);
                }
            }
            else if (AppMain.GmEneComTargetIsLeft(obj_work, gms_PLAYER_WORK.obj_work) != 0)
            {
                AppMain.gmEneMoguFlipInit(obj_work);
            }
            if ((obj_work.move_flag & 4U) != 0U)
            {
                AppMain.gmEneMoguJumpInit(obj_work);
            }
            return;
        }
        if (gms_ENE_MOGU_WORK.wait_time > 0)
        {
            gms_ENE_MOGU_WORK.wait_time--;
            if ((obj_work.move_flag & 4U) != 0U)
            {
                AppMain.gmEneMoguJumpInit(obj_work);
            }
            return;
        }
        if (AkMath.RandFx() > AppMain.FX_F32_TO_FX32(0.5f))
        {
            AppMain.gmEneMoguFlipInit(obj_work);
        }
        gms_ENE_MOGU_WORK.wait_time = 216000;
    }
コード例 #12
0
 public static void gmEneMoguJumpInit(AppMain.OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_ENE_MOGU_WORK mogu_work = (AppMain.GMS_ENE_MOGU_WORK)obj_work;
     AppMain.ObjDrawObjectActionSet(obj_work, 4);
     obj_work.disp_flag |= 4U;
     obj_work.spd.y      = AppMain.FX_F32_TO_FX32(-6f);
     obj_work.spd_fall   = AppMain.FX_F32_TO_FX32(0.16f);
     obj_work.pos.y     -= AppMain.FX_F32_TO_FX32(4f);
     obj_work.move_flag |= 128U;
     obj_work.move_flag &= 4294967294U;
     obj_work.move_flag &= 4294967291U;
     obj_work.ppFunc     = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmEneMoguJumpMain);
     obj_work.spd.x      = ((int)obj_work.disp_flag & 1) == 0 ? 2048 : -2048;
     AppMain.gmEneMoguCheckWater(mogu_work, (short)0);
     mogu_work.jumpdown = 0;
 }
コード例 #13
0
 // Token: 0x0600103A RID: 4154 RVA: 0x0008D3E0 File Offset: 0x0008B5E0
 public static void gmEneMoguJumpMain(OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_ENE_MOGU_WORK gms_ENE_MOGU_WORK = (AppMain.GMS_ENE_MOGU_WORK)obj_work;
     if ((obj_work.disp_flag & 1U) != 0U)
     {
         obj_work.spd.x = -2048;
     }
     else
     {
         obj_work.spd.x = 2048;
     }
     if (obj_work.spd.y > 0)
     {
         if (gms_ENE_MOGU_WORK.jumpdown == 0)
         {
             gms_ENE_MOGU_WORK.jumpdown = 1;
             AppMain.ObjDrawObjectActionSet(obj_work, 5);
             obj_work.disp_flag |= 4U;
             obj_work.move_flag &= 4294967039U;
             AppMain.ObjObjectFieldRectSet(obj_work, -4, -8, 4, -2);
             obj_work.pos.z          = 0;
             gms_ENE_MOGU_WORK.flag |= 2U;
         }
         if ((obj_work.move_flag & 4U) != 0U)
         {
             if ((obj_work.disp_flag & 1U) != 0U)
             {
                 obj_work.disp_flag &= 4294967294U;
             }
             else
             {
                 obj_work.disp_flag |= 1U;
             }
         }
     }
     if ((obj_work.move_flag & 1U) != 0U)
     {
         AppMain.GmEneComActionSetDependHFlip(obj_work, 0, 1);
         obj_work.ppFunc = AppMain.gmEneMoguJumpEnd;
     }
     AppMain.gmEneMoguCheckWater(gms_ENE_MOGU_WORK, 0);
 }
コード例 #14
0
 public static AppMain.OBS_OBJECT_WORK GmEneMoguInit(
     AppMain.GMS_EVE_RECORD_EVENT eve_rec,
     int pos_x,
     int pos_y,
     byte type)
 {
     AppMain.OBS_OBJECT_WORK   work           = AppMain.GMM_ENEMY_CREATE_WORK(eve_rec, pos_x, pos_y, (AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_ENE_MOGU_WORK()), "ENE_MOGU");
     AppMain.GMS_ENEMY_3D_WORK gmsEnemy3DWork = (AppMain.GMS_ENEMY_3D_WORK)work;
     AppMain.GMS_ENE_MOGU_WORK gmsEneMoguWork = (AppMain.GMS_ENE_MOGU_WORK)work;
     AppMain.ObjObjectCopyAction3dNNModel(work, AppMain.gm_ene_mogu_obj_3d_list[0], gmsEnemy3DWork.obj_3d);
     AppMain.ObjObjectAction3dNNMotionLoad(work, 0, true, AppMain.ObjDataGet(676), (string)null, 0, (AppMain.AMS_AMB_HEADER)null);
     AppMain.ObjDrawObjectSetToon(work);
     work.pos.z = 0;
     AppMain.OBS_RECT_WORK pRec1 = gmsEnemy3DWork.ene_com.rect_work[1];
     AppMain.ObjRectWorkSet(pRec1, (short)-11, (short)-24, (short)11, (short)0);
     pRec1.flag |= 4U;
     AppMain.OBS_RECT_WORK pRec2 = gmsEnemy3DWork.ene_com.rect_work[0];
     AppMain.ObjRectWorkSet(pRec2, (short)-19, (short)-32, (short)19, (short)0);
     pRec2.flag |= 4U;
     gmsEnemy3DWork.ene_com.rect_work[2].flag &= 4294967291U;
     AppMain.OBS_RECT_WORK pRec3 = gmsEnemy3DWork.ene_com.rect_work[2];
     AppMain.ObjRectWorkSet(pRec3, (short)-19, (short)-32, (short)19, (short)0);
     pRec3.flag &= 4294967291U;
     AppMain.ObjObjectFieldRectSet(work, (short)-4, (short)-44, (short)4, (short)-38);
     work.move_flag |= 128U;
     if (((int)eve_rec.flag & 1) == 0)
     {
         work.disp_flag |= 1U;
     }
     work.user_work              = (uint)(work.pos.x + ((int)eve_rec.left << 12));
     work.user_flag              = (uint)(work.pos.x + ((int)eve_rec.left + (int)eve_rec.width << 12));
     gmsEneMoguWork.spd_dec      = 102;
     gmsEneMoguWork.spd_dec_dist = 20480;
     gmsEneMoguWork.flag         = 0U;
     AppMain.gmEneMoguWaitInit(work);
     work.obj_3d.use_light_flag &= 4294967294U;
     work.obj_3d.use_light_flag |= 64U;
     return(work);
 }
コード例 #15
0
 // Token: 0x06001039 RID: 4153 RVA: 0x0008D2F8 File Offset: 0x0008B4F8
 public static void gmEneMoguJumpInit(OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_ENE_MOGU_WORK gms_ENE_MOGU_WORK = (AppMain.GMS_ENE_MOGU_WORK)obj_work;
     AppMain.ObjDrawObjectActionSet(obj_work, 4);
     obj_work.disp_flag |= 4U;
     obj_work.spd.y      = AppMain.FX_F32_TO_FX32(-6f);
     obj_work.spd_fall   = AppMain.FX_F32_TO_FX32(0.16f);
     obj_work.pos.y      = obj_work.pos.y - AppMain.FX_F32_TO_FX32(4f);
     obj_work.move_flag |= 128U;
     obj_work.move_flag &= 4294967294U;
     obj_work.move_flag &= 4294967291U;
     obj_work.ppFunc     = AppMain.gmEneMoguJumpMain;
     if ((obj_work.disp_flag & 1U) != 0U)
     {
         obj_work.spd.x = -2048;
     }
     else
     {
         obj_work.spd.x = 2048;
     }
     AppMain.gmEneMoguCheckWater(gms_ENE_MOGU_WORK, 0);
     gms_ENE_MOGU_WORK.jumpdown = 0;
 }