Ejemplo n.º 1
0
    private static AppMain.OBS_OBJECT_WORK gmGmkPopSteamInit(
        AppMain.GMS_EVE_RECORD_EVENT eve_rec,
        int pos_x,
        int pos_y,
        byte type,
        int obj_type)
    {
        AppMain.UNREFERENCED_PARAMETER((object)type);
        AppMain.OBS_OBJECT_WORK   work           = AppMain.GMM_ENEMY_CREATE_WORK(eve_rec, pos_x, pos_y, (AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_GMK_P_STEAM_WORK()), "Gmk_PopSteam");
        AppMain.GMS_ENEMY_3D_WORK gmsEnemy3DWork = (AppMain.GMS_ENEMY_3D_WORK)work;
        int index = AppMain.tbl_popsteam_model_id[obj_type][0];

        if (eve_rec.height == (byte)0)
        {
            index = AppMain.tbl_popsteam_model_id[obj_type][1];
        }
        AppMain.ObjObjectCopyAction3dNNModel(work, AppMain.gm_gmk_popsteam_obj_3d_list[index], gmsEnemy3DWork.obj_3d);
        work.ppOut      = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkBeltPopSteam_ppOutUseDirModel);
        work.pos.z      = 622592;
        work.move_flag |= 256U;
        work.disp_flag |= 4194304U;
        AppMain.GMS_GMK_P_STEAM_WORK gmsGmkPSteamWork = (AppMain.GMS_GMK_P_STEAM_WORK)work;
        gmsGmkPSteamWork.steamsize    = ((int)eve_rec.flag & 3) != 2 ? (((int)eve_rec.flag & 3) != 1 ? (short)1 : (short)0) : (short)2;
        gmsGmkPSteamWork.steampower   = (int)eve_rec.width * 2;
        gmsGmkPSteamWork.steampower <<= 12;
        if (gmsGmkPSteamWork.steampower == 0)
        {
            gmsGmkPSteamWork.steampower = 61440;
        }
        gmsGmkPSteamWork.steamwait = (short)((int)eve_rec.height * 2);
        gmsGmkPSteamWork.obj_type  = obj_type;
        return(work);
    }
Ejemplo n.º 2
0
 private static void gmGmkPopSteamWait_100(AppMain.OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_GMK_P_STEAM_WORK pwork = (AppMain.GMS_GMK_P_STEAM_WORK)obj_work;
     ++pwork.timer;
     if ((int)pwork.timer >= (int)pwork.steamwait)
     {
         if (pwork.opt_steam_int[0] != null)
         {
             for (int index = 0; index < 3; ++index)
             {
                 AppMain.ObjDrawKillAction3DES(pwork.opt_steam_int[index]);
                 pwork.opt_steam_int[index] = (AppMain.OBS_OBJECT_WORK)null;
             }
         }
         obj_work.user_timer = 0;
         obj_work.pos.x      = pwork.pos_x;
         obj_work.pos.y      = pwork.pos_y;
         AppMain.gmGmkPopSteamInterval(obj_work);
     }
     else
     {
         if ((int)pwork.timer >= (int)pwork.steamwait * 3 / 4)
         {
             obj_work.pos.x = pwork.pos_x + ((int)AppMain.tbl_psteam_viv[obj_work.user_timer][0] << 12);
             obj_work.pos.y = pwork.pos_y + ((int)AppMain.tbl_psteam_viv[obj_work.user_timer][1] << 12);
             ++obj_work.user_timer;
             obj_work.user_timer %= 10;
         }
         AppMain._gmGmkPopSteam(pwork);
     }
 }
 // Token: 0x06001B3F RID: 6975 RVA: 0x000F8A80 File Offset: 0x000F6C80
 private static void gmGmkPopSteamWait_100(AppMain.OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_GMK_P_STEAM_WORK gms_GMK_P_STEAM_WORK  = (AppMain.GMS_GMK_P_STEAM_WORK)obj_work;
     AppMain.GMS_GMK_P_STEAM_WORK gms_GMK_P_STEAM_WORK2 = gms_GMK_P_STEAM_WORK;
     gms_GMK_P_STEAM_WORK2.timer += 1;
     if (gms_GMK_P_STEAM_WORK.timer >= gms_GMK_P_STEAM_WORK.steamwait)
     {
         if (gms_GMK_P_STEAM_WORK.opt_steam_int[0] != null)
         {
             for (int i = 0; i < 3; i++)
             {
                 AppMain.ObjDrawKillAction3DES(gms_GMK_P_STEAM_WORK.opt_steam_int[i]);
                 gms_GMK_P_STEAM_WORK.opt_steam_int[i] = null;
             }
         }
         obj_work.user_timer = 0;
         obj_work.pos.x      = gms_GMK_P_STEAM_WORK.pos_x;
         obj_work.pos.y      = gms_GMK_P_STEAM_WORK.pos_y;
         AppMain.gmGmkPopSteamInterval(obj_work);
         return;
     }
     if (gms_GMK_P_STEAM_WORK.timer >= gms_GMK_P_STEAM_WORK.steamwait * 3 / 4)
     {
         obj_work.pos.x = gms_GMK_P_STEAM_WORK.pos_x + (( int )AppMain.tbl_psteam_viv[obj_work.user_timer][0] << 12);
         obj_work.pos.y = gms_GMK_P_STEAM_WORK.pos_y + (( int )AppMain.tbl_psteam_viv[obj_work.user_timer][1] << 12);
         obj_work.user_timer++;
         obj_work.user_timer %= 10;
     }
     AppMain._gmGmkPopSteam(gms_GMK_P_STEAM_WORK);
 }
 // Token: 0x06001B3C RID: 6972 RVA: 0x000F8954 File Offset: 0x000F6B54
 private static void gmGmkPopSteamInterval(AppMain.OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_GMK_P_STEAM_WORK gms_GMK_P_STEAM_WORK = (AppMain.GMS_GMK_P_STEAM_WORK)obj_work;
     obj_work.flag &= 4294967293U;
     gms_GMK_P_STEAM_WORK.opt_steam       = (AppMain.OBS_OBJECT_WORK)AppMain.GmEfctCmnEsCreate(obj_work, ( int )AppMain.tbl_popsteam_effct[0][( int )gms_GMK_P_STEAM_WORK.steamsize]);
     gms_GMK_P_STEAM_WORK.opt_steam.dir.z = obj_work.dir.z;
     obj_work.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkPopSteamInterval_100);
     AppMain.gmGmkPopSteamInterval_100(obj_work);
 }
 // Token: 0x06001B3E RID: 6974 RVA: 0x000F8A30 File Offset: 0x000F6C30
 private static void gmGmkPopSteamWait(AppMain.OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_GMK_P_STEAM_WORK gms_GMK_P_STEAM_WORK = (AppMain.GMS_GMK_P_STEAM_WORK)obj_work;
     for (int i = 0; i < 3; i++)
     {
         gms_GMK_P_STEAM_WORK.opt_steam_int[i] = null;
     }
     obj_work.flag  |= 2U;
     obj_work.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkPopSteamWait_100);
     AppMain.gmGmkPopSteamWait_100(obj_work);
 }
Ejemplo n.º 6
0
 private static void gmGmkPopSteamWait(AppMain.OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_GMK_P_STEAM_WORK gmsGmkPSteamWork = (AppMain.GMS_GMK_P_STEAM_WORK)obj_work;
     for (int index = 0; index < 3; ++index)
     {
         gmsGmkPSteamWork.opt_steam_int[index] = (AppMain.OBS_OBJECT_WORK)null;
     }
     obj_work.flag  |= 2U;
     obj_work.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkPopSteamWait_100);
     AppMain.gmGmkPopSteamWait_100(obj_work);
 }
 // Token: 0x06001B42 RID: 6978 RVA: 0x000F8E9C File Offset: 0x000F709C
 private static void gmGmkPopSteamHit(AppMain.OBS_RECT_WORK mine_rect, AppMain.OBS_RECT_WORK match_rect)
 {
     AppMain.GMS_GMK_P_STEAM_WORK gms_GMK_P_STEAM_WORK = (AppMain.GMS_GMK_P_STEAM_WORK)mine_rect.parent_obj;
     AppMain.GMS_PLAYER_WORK      gms_PLAYER_WORK      = (AppMain.GMS_PLAYER_WORK)match_rect.parent_obj;
     if (gms_PLAYER_WORK == AppMain.g_gm_main_system.ply_work[( int )(( UIntPtr )0)])
     {
         gms_GMK_P_STEAM_WORK.ply_work = gms_PLAYER_WORK;
         AppMain.GMS_GMK_P_STEAM_WORK gms_GMK_P_STEAM_WORK2 = gms_GMK_P_STEAM_WORK;
         gms_GMK_P_STEAM_WORK2.status |= 1;
     }
     mine_rect.flag &= 4294573823U;
 }
Ejemplo n.º 8
0
 private static void gmGmkPopSteamHit(
     AppMain.OBS_RECT_WORK mine_rect,
     AppMain.OBS_RECT_WORK match_rect)
 {
     AppMain.GMS_GMK_P_STEAM_WORK parentObj1 = (AppMain.GMS_GMK_P_STEAM_WORK)mine_rect.parent_obj;
     AppMain.GMS_PLAYER_WORK      parentObj2 = (AppMain.GMS_PLAYER_WORK)match_rect.parent_obj;
     if (parentObj2 == AppMain.g_gm_main_system.ply_work[0])
     {
         parentObj1.ply_work = parentObj2;
         parentObj1.status  |= (ushort)1;
     }
     mine_rect.flag &= 4294573823U;
 }
 // Token: 0x06001B40 RID: 6976 RVA: 0x000F8B88 File Offset: 0x000F6D88
 private static void _ModgmGmkPopSteamStart(AppMain.GMS_GMK_P_STEAM_WORK pwork, ref short u)
 {
     if (pwork.steamsize == 2)
     {
         u /= 96;
         u *= 128;
         return;
     }
     if (pwork.steamsize == 0)
     {
         u /= 96;
         u *= 64;
     }
 }
Ejemplo n.º 10
0
    private static void gmGmkPopSteamTimer(AppMain.OBS_OBJECT_WORK obj_work)
    {
        AppMain.GMS_GMK_P_STEAM_WORK parentObj = (AppMain.GMS_GMK_P_STEAM_WORK)obj_work.parent_obj;
        uint num1 = 65536;
        int  num2 = 4096;
        uint num3 = num1 * (uint)parentObj.timer / (uint)parentObj.steamwait;

        obj_work.dir.z  = obj_work.parent_obj.dir.z;
        obj_work.dir.z += (ushort)num3;
        int num4 = num2 + (int)num3;

        obj_work.parent_ofst.z = num4 >> 3;
        obj_work.ofst.x        = obj_work.parent_obj.ofst.x;
        obj_work.ofst.y        = obj_work.parent_obj.ofst.x;
    }
    // Token: 0x06001B44 RID: 6980 RVA: 0x000F9038 File Offset: 0x000F7238
    private static void gmGmkPopSteamTimer(AppMain.OBS_OBJECT_WORK obj_work)
    {
        AppMain.GMS_GMK_P_STEAM_WORK gms_GMK_P_STEAM_WORK = (AppMain.GMS_GMK_P_STEAM_WORK)obj_work.parent_obj;
        uint num  = 65536U;
        int  num2 = 4096;

        num                   *= ( uint )gms_GMK_P_STEAM_WORK.timer;
        num                   /= ( uint )gms_GMK_P_STEAM_WORK.steamwait;
        obj_work.dir.z         = obj_work.parent_obj.dir.z;
        obj_work.dir.z         = ( ushort )(obj_work.dir.z + ( ushort )num);
        num2                  += ( int )num;
        obj_work.parent_ofst.z = num2 >> 3;
        obj_work.ofst.x        = obj_work.parent_obj.ofst.x;
        obj_work.ofst.y        = obj_work.parent_obj.ofst.x;
    }
Ejemplo n.º 12
0
    // Token: 0x06001B39 RID: 6969 RVA: 0x000F881C File Offset: 0x000F6A1C
    private static void _gmGmkPopSteam(AppMain.GMS_GMK_P_STEAM_WORK pwork)
    {
        GMS_PLAYER_WORK gms_PLAYER_WORK = AppMain.g_gm_main_system.ply_work[(int)((UIntPtr)0)];

        if ((pwork.status & 1) != 0)
        {
            if (gms_PLAYER_WORK.seq_state == 24)
            {
                pwork.ply_work = null;
                pwork.status  &= 65532;
                return;
            }
            int num;
            int num2;
            if ((pwork.steamvect & 16384) != 0)
            {
                num  = 0;
                num2 = pwork.steampower;
                if ((pwork.steamvect & 32768) != 0)
                {
                    num2 = -num2;
                }
            }
            else
            {
                num2 = 0;
                num  = pwork.steampower;
                if ((pwork.steamvect & 32768) != 0)
                {
                    num = -num;
                }
            }
            AppMain.GmPlySeqGmkInitPopSteamJump(gms_PLAYER_WORK, num, num2, ( int )pwork.gmk_work.ene_com.eve_rec.top << 13);
            if ((pwork.status & 2) == 0)
            {
                GmSound.PlaySE("Steam");
                AppMain.GMM_PAD_VIB_SMALL();
            }
            pwork.status |= 2;
        }
        else
        {
            pwork.status &= 65533;
        }
        pwork.status &= 65534;
    }
Ejemplo n.º 13
0
 private static void _ModgmGmkPopSteamStart(AppMain.GMS_GMK_P_STEAM_WORK pwork, ref short u)
 {
     if (pwork.steamsize == (short)2)
     {
         u /= (short)96;
         u *= (short)128;
     }
     else
     {
         if (pwork.steamsize != (short)0)
         {
             return;
         }
         u /= (short)96;
         u *= (short)64;
     }
 }
Ejemplo n.º 14
0
 private static void _gmGmkPopSteam(AppMain.GMS_GMK_P_STEAM_WORK pwork)
 {
     AppMain.GMS_PLAYER_WORK ply_work = AppMain.g_gm_main_system.ply_work[0];
     if (((int)pwork.status & 1) != 0)
     {
         if (ply_work.seq_state == 24)
         {
             pwork.ply_work = (AppMain.GMS_PLAYER_WORK)null;
             pwork.status  &= (ushort)65532;
             return;
         }
         int spd_x;
         int spd_y;
         if (((int)pwork.steamvect & 16384) != 0)
         {
             spd_x = 0;
             spd_y = pwork.steampower;
             if (((int)pwork.steamvect & 32768) != 0)
             {
                 spd_y = -spd_y;
             }
         }
         else
         {
             spd_y = 0;
             spd_x = pwork.steampower;
             if (((int)pwork.steamvect & 32768) != 0)
             {
                 spd_x = -spd_x;
             }
         }
         AppMain.GmPlySeqGmkInitPopSteamJump(ply_work, spd_x, spd_y, (int)pwork.gmk_work.ene_com.eve_rec.top << 13);
         if (((int)pwork.status & 2) == 0)
         {
             AppMain.GmSoundPlaySE("Steam");
             AppMain.GMM_PAD_VIB_SMALL();
         }
         pwork.status |= (ushort)2;
     }
     else
     {
         pwork.status &= (ushort)65533;
     }
     pwork.status &= (ushort)65534;
 }
 // Token: 0x06001B3D RID: 6973 RVA: 0x000F89CC File Offset: 0x000F6BCC
 private static void gmGmkPopSteamInterval_100(AppMain.OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_GMK_P_STEAM_WORK gms_GMK_P_STEAM_WORK  = (AppMain.GMS_GMK_P_STEAM_WORK)obj_work;
     AppMain.GMS_GMK_P_STEAM_WORK gms_GMK_P_STEAM_WORK2 = gms_GMK_P_STEAM_WORK;
     gms_GMK_P_STEAM_WORK2.timer -= ( short )(gms_GMK_P_STEAM_WORK.steamwait / 60);
     if (gms_GMK_P_STEAM_WORK.timer <= 0)
     {
         if (gms_GMK_P_STEAM_WORK.opt_steam != null)
         {
             AppMain.ObjDrawKillAction3DES(gms_GMK_P_STEAM_WORK.opt_steam);
             gms_GMK_P_STEAM_WORK.opt_steam = null;
         }
         gms_GMK_P_STEAM_WORK.timer = 0;
         AppMain.gmGmkPopSteamWait(obj_work);
         return;
     }
     AppMain._gmGmkPopSteam(gms_GMK_P_STEAM_WORK);
 }
Ejemplo n.º 16
0
 private static void gmGmkPopSteamInterval_100(AppMain.OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_GMK_P_STEAM_WORK pwork = (AppMain.GMS_GMK_P_STEAM_WORK)obj_work;
     pwork.timer -= (short)((int)pwork.steamwait / 60);
     if (pwork.timer <= (short)0)
     {
         if (pwork.opt_steam != null)
         {
             AppMain.ObjDrawKillAction3DES(pwork.opt_steam);
             pwork.opt_steam = (AppMain.OBS_OBJECT_WORK)null;
         }
         pwork.timer = (short)0;
         AppMain.gmGmkPopSteamWait(obj_work);
     }
     else
     {
         AppMain._gmGmkPopSteam(pwork);
     }
 }
Ejemplo n.º 17
0
    // Token: 0x06001B46 RID: 6982 RVA: 0x000F91FC File Offset: 0x000F73FC
    private static OBS_OBJECT_WORK gmGmkPopSteamInit(AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type, int obj_type)
    {
        AppMain.UNREFERENCED_PARAMETER(type);
        OBS_OBJECT_WORK obs_OBJECT_WORK = AppMain.GMM_ENEMY_CREATE_WORK(eve_rec, pos_x, pos_y, () => new AppMain.GMS_GMK_P_STEAM_WORK(), "Gmk_PopSteam");

        AppMain.GMS_ENEMY_3D_WORK gms_ENEMY_3D_WORK = (AppMain.GMS_ENEMY_3D_WORK)obs_OBJECT_WORK;
        int num = AppMain.tbl_popsteam_model_id[obj_type][0];

        if (eve_rec.height == 0)
        {
            num = AppMain.tbl_popsteam_model_id[obj_type][1];
        }
        AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK, AppMain.gm_gmk_popsteam_obj_3d_list[num], gms_ENEMY_3D_WORK.obj_3d);
        obs_OBJECT_WORK.ppOut      = AppMain.gmGmkBeltPopSteam_ppOutUseDirModel;
        obs_OBJECT_WORK.pos.z      = 622592;
        obs_OBJECT_WORK.move_flag |= 256U;
        obs_OBJECT_WORK.disp_flag |= 4194304U;
        AppMain.GMS_GMK_P_STEAM_WORK gms_GMK_P_STEAM_WORK = (AppMain.GMS_GMK_P_STEAM_WORK)obs_OBJECT_WORK;
        if ((eve_rec.flag & 3) == 2)
        {
            gms_GMK_P_STEAM_WORK.steamsize = 2;
        }
        else if ((eve_rec.flag & 3) == 1)
        {
            gms_GMK_P_STEAM_WORK.steamsize = 0;
        }
        else
        {
            gms_GMK_P_STEAM_WORK.steamsize = 1;
        }
        gms_GMK_P_STEAM_WORK.steampower   = ( int )(eve_rec.width * 2);
        gms_GMK_P_STEAM_WORK.steampower <<= 12;
        if (gms_GMK_P_STEAM_WORK.steampower == 0)
        {
            gms_GMK_P_STEAM_WORK.steampower = 61440;
        }
        gms_GMK_P_STEAM_WORK.steamwait = ( short )(eve_rec.height * 2);
        gms_GMK_P_STEAM_WORK.obj_type  = obj_type;
        return(obs_OBJECT_WORK);
    }
    // Token: 0x06001B41 RID: 6977 RVA: 0x000F8BC0 File Offset: 0x000F6DC0
    private static void gmGmkPopSteamStart(AppMain.OBS_OBJECT_WORK obj_work)
    {
        AppMain.GMS_GMK_P_STEAM_WORK gms_GMK_P_STEAM_WORK = (AppMain.GMS_GMK_P_STEAM_WORK)obj_work;
        gms_GMK_P_STEAM_WORK.gmk_work.ene_com.rect_work[0].flag &= 4294967291U;
        gms_GMK_P_STEAM_WORK.gmk_work.ene_com.rect_work[1].flag &= 4294967291U;
        AppMain.OBS_RECT_WORK obs_RECT_WORK = gms_GMK_P_STEAM_WORK.gmk_work.ene_com.rect_work[2];
        obs_RECT_WORK.ppDef = new AppMain.OBS_RECT_WORK_Delegate1(AppMain.gmGmkPopSteamHit);
        obs_RECT_WORK.ppHit = null;
        AppMain.ObjRectAtkSet(obs_RECT_WORK, 0, 0);
        AppMain.ObjRectDefSet(obs_RECT_WORK, 65534, 0);
        AppMain.ObjRectWorkSet(obs_RECT_WORK, AppMain.tbl_gm_gmk_upbumper_rect[gms_GMK_P_STEAM_WORK.obj_type][0], AppMain.tbl_gm_gmk_upbumper_rect[gms_GMK_P_STEAM_WORK.obj_type][1], AppMain.tbl_gm_gmk_upbumper_rect[gms_GMK_P_STEAM_WORK.obj_type][2], AppMain.tbl_gm_gmk_upbumper_rect[gms_GMK_P_STEAM_WORK.obj_type][3]);
        obs_RECT_WORK.flag &= 4294966271U;
        obj_work.flag      &= 4294967293U;
        switch (gms_GMK_P_STEAM_WORK.obj_type)
        {
        case 0:
            obj_work.dir.z = 0;
            gms_GMK_P_STEAM_WORK.steamvect = 49152;
            AppMain._ModgmGmkPopSteamStart(gms_GMK_P_STEAM_WORK, ref obs_RECT_WORK.rect.top);
            break;

        case 1:
            obj_work.dir.z = 16384;
            gms_GMK_P_STEAM_WORK.steamvect = 0;
            AppMain._ModgmGmkPopSteamStart(gms_GMK_P_STEAM_WORK, ref obs_RECT_WORK.rect.right);
            break;

        case 2:
            obj_work.dir.z = 32768;
            gms_GMK_P_STEAM_WORK.steamvect = 16384;
            AppMain._ModgmGmkPopSteamStart(gms_GMK_P_STEAM_WORK, ref obs_RECT_WORK.rect.bottom);
            break;

        case 3:
            obj_work.dir.z = 49152;
            gms_GMK_P_STEAM_WORK.steamvect = 32768;
            AppMain._ModgmGmkPopSteamStart(gms_GMK_P_STEAM_WORK, ref obs_RECT_WORK.rect.left);
            break;

        default:
            AppMain._ModgmGmkPopSteamStart(gms_GMK_P_STEAM_WORK, ref obs_RECT_WORK.rect.top);
            break;
        }
        gms_GMK_P_STEAM_WORK.timer     = 0;
        gms_GMK_P_STEAM_WORK.status    = 0;
        gms_GMK_P_STEAM_WORK.opt_steam = null;
        gms_GMK_P_STEAM_WORK.pos_x     = obj_work.pos.x;
        gms_GMK_P_STEAM_WORK.pos_y     = obj_work.pos.y;
        if (gms_GMK_P_STEAM_WORK.steamwait > 0)
        {
            uint num = AppMain.g_gm_main_system.sync_time;
            num %= ( uint )(gms_GMK_P_STEAM_WORK.steamwait + 60);
            if (num < 60U)
            {
                gms_GMK_P_STEAM_WORK.timer = ( short )(( ulong )num * ( ulong )(( long )gms_GMK_P_STEAM_WORK.steamwait) / 60UL);
                AppMain.gmGmkPopSteamInterval(obj_work);
            }
            else
            {
                gms_GMK_P_STEAM_WORK.timer = ( short )(( long )gms_GMK_P_STEAM_WORK.steamwait - ( long )(( ulong )(num - 60U)));
                AppMain.gmGmkPopSteamWait(obj_work);
            }
            AppMain.create_steampipe(obj_work, gms_GMK_P_STEAM_WORK.obj_type);
            gms_GMK_P_STEAM_WORK.opt_timer = AppMain.create_steamtimer(obj_work, gms_GMK_P_STEAM_WORK.obj_type);
            return;
        }
        AppMain.OBS_OBJECT_WORK obs_OBJECT_WORK = (AppMain.OBS_OBJECT_WORK)AppMain.GmEfctCmnEsCreate(obj_work, (int)AppMain.tbl_popsteam_effct[1][(int)gms_GMK_P_STEAM_WORK.steamsize]);
        obs_OBJECT_WORK.dir.z = obj_work.dir.z;
        AppMain.OBS_OBJECT_WORK obs_OBJECT_WORK2 = obs_OBJECT_WORK;
        obs_OBJECT_WORK2.pos.z = obs_OBJECT_WORK2.pos.z - 4096;
        AppMain.gmGmkPopSteamStay(obj_work);
    }
Ejemplo n.º 19
0
    private static void gmGmkPopSteamStart(AppMain.OBS_OBJECT_WORK obj_work)
    {
        AppMain.GMS_GMK_P_STEAM_WORK pwork = (AppMain.GMS_GMK_P_STEAM_WORK)obj_work;
        pwork.gmk_work.ene_com.rect_work[0].flag &= 4294967291U;
        pwork.gmk_work.ene_com.rect_work[1].flag &= 4294967291U;
        AppMain.OBS_RECT_WORK pRec = pwork.gmk_work.ene_com.rect_work[2];
        pRec.ppDef = new AppMain.OBS_RECT_WORK_Delegate1(AppMain.gmGmkPopSteamHit);
        pRec.ppHit = (AppMain.OBS_RECT_WORK_Delegate1)null;
        AppMain.ObjRectAtkSet(pRec, (ushort)0, (short)0);
        AppMain.ObjRectDefSet(pRec, (ushort)65534, (short)0);
        AppMain.ObjRectWorkSet(pRec, AppMain.tbl_gm_gmk_upbumper_rect[pwork.obj_type][0], AppMain.tbl_gm_gmk_upbumper_rect[pwork.obj_type][1], AppMain.tbl_gm_gmk_upbumper_rect[pwork.obj_type][2], AppMain.tbl_gm_gmk_upbumper_rect[pwork.obj_type][3]);
        pRec.flag     &= 4294966271U;
        obj_work.flag &= 4294967293U;
        switch (pwork.obj_type)
        {
        case 0:
            obj_work.dir.z  = (ushort)0;
            pwork.steamvect = (ushort)49152;
            AppMain._ModgmGmkPopSteamStart(pwork, ref pRec.rect.top);
            break;

        case 1:
            obj_work.dir.z  = (ushort)16384;
            pwork.steamvect = (ushort)0;
            AppMain._ModgmGmkPopSteamStart(pwork, ref pRec.rect.right);
            break;

        case 2:
            obj_work.dir.z  = (ushort)32768;
            pwork.steamvect = (ushort)16384;
            AppMain._ModgmGmkPopSteamStart(pwork, ref pRec.rect.bottom);
            break;

        case 3:
            obj_work.dir.z  = (ushort)49152;
            pwork.steamvect = (ushort)32768;
            AppMain._ModgmGmkPopSteamStart(pwork, ref pRec.rect.left);
            break;

        default:
            AppMain._ModgmGmkPopSteamStart(pwork, ref pRec.rect.top);
            break;
        }
        pwork.timer     = (short)0;
        pwork.status    = (ushort)0;
        pwork.opt_steam = (AppMain.OBS_OBJECT_WORK)null;
        pwork.pos_x     = obj_work.pos.x;
        pwork.pos_y     = obj_work.pos.y;
        if (pwork.steamwait > (short)0)
        {
            uint num = AppMain.g_gm_main_system.sync_time % ((uint)pwork.steamwait + 60U);
            if (num < 60U)
            {
                pwork.timer = (short)((long)num * (long)pwork.steamwait / 60L);
                AppMain.gmGmkPopSteamInterval(obj_work);
            }
            else
            {
                pwork.timer = (short)((long)pwork.steamwait - (long)(num - 60U));
                AppMain.gmGmkPopSteamWait(obj_work);
            }
            AppMain.create_steampipe(obj_work, pwork.obj_type);
            pwork.opt_timer = AppMain.create_steamtimer(obj_work, pwork.obj_type);
        }
        else
        {
            AppMain.OBS_OBJECT_WORK obsObjectWork = (AppMain.OBS_OBJECT_WORK)AppMain.GmEfctCmnEsCreate(obj_work, (int)AppMain.tbl_popsteam_effct[1][(int)pwork.steamsize]);
            obsObjectWork.dir.z  = obj_work.dir.z;
            obsObjectWork.pos.z -= 4096;
            AppMain.gmGmkPopSteamStay(obj_work);
        }
    }
 // Token: 0x06001B3B RID: 6971 RVA: 0x000F8938 File Offset: 0x000F6B38
 private static void gmGmkPopSteamStay_100(AppMain.OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_GMK_P_STEAM_WORK pwork = (AppMain.GMS_GMK_P_STEAM_WORK)obj_work;
     AppMain._gmGmkPopSteam(pwork);
 }