Exemplo n.º 1
0
 private static void gmGmkPressWallControlerStart(AppMain.OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_GMK_PWALLCTRL_WORK gmkPwallctrlWork = (AppMain.GMS_GMK_PWALLCTRL_WORK)obj_work;
     AppMain.GMS_PLAYER_WORK        gmsPlayerWork    = AppMain.g_gm_main_system.ply_work[0];
     gmkPwallctrlWork.ply_work   = gmsPlayerWork;
     gmkPwallctrlWork.last_ply_x = gmsPlayerWork.obj_work.pos.x;
     gmkPwallctrlWork.last_ply_y = gmsPlayerWork.obj_work.pos.y;
     obj_work.disp_flag         |= 32U;
     obj_work.move_flag         |= 8960U;
     obj_work.ppFunc             = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkPressWallControler);
 }
Exemplo n.º 2
0
 // Token: 0x06001B2B RID: 6955 RVA: 0x000F8150 File Offset: 0x000F6350
 private static void gmGmkPressWallControlerStart(AppMain.OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_GMK_PWALLCTRL_WORK gms_GMK_PWALLCTRL_WORK = (AppMain.GMS_GMK_PWALLCTRL_WORK)obj_work;
     AppMain.GMS_PLAYER_WORK        gms_PLAYER_WORK        = AppMain.g_gm_main_system.ply_work[(int)((UIntPtr)0)];
     gms_GMK_PWALLCTRL_WORK.ply_work   = gms_PLAYER_WORK;
     gms_GMK_PWALLCTRL_WORK.last_ply_x = gms_PLAYER_WORK.obj_work.pos.x;
     gms_GMK_PWALLCTRL_WORK.last_ply_y = gms_PLAYER_WORK.obj_work.pos.y;
     obj_work.disp_flag |= 32U;
     obj_work.move_flag |= 8960U;
     obj_work.ppFunc     = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkPressWallControler);
 }
Exemplo n.º 3
0
 private static AppMain.OBS_OBJECT_WORK GmGmkPressWallControlerInit(
     AppMain.GMS_EVE_RECORD_EVENT eve_rec,
     int pos_x,
     int pos_y,
     byte 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_PWALLCTRL_WORK()), "Gmk_PressWallControler");
     AppMain.GMS_GMK_PWALLCTRL_WORK gmkPwallctrlWork = (AppMain.GMS_GMK_PWALLCTRL_WORK)work;
     AppMain.OBS_RECT_WORK          pRec             = ((AppMain.GMS_ENEMY_3D_WORK)work).ene_com.rect_work[2];
     pRec.ppDef = (AppMain.OBS_RECT_WORK_Delegate1)null;
     pRec.ppHit = (AppMain.OBS_RECT_WORK_Delegate1)null;
     pRec.flag &= 4294967291U;
     if (eve_rec.left != (sbyte)0)
     {
         AppMain.ObjRectWorkSet(pRec, (short)((int)eve_rec.left * 2), (short)0, (short)((int)eve_rec.width * 2), (short)1);
         work.user_flag  = 0U;
         work.user_timer = (int)eve_rec.height * 819;
     }
     else
     {
         pRec.ppDef = (AppMain.OBS_RECT_WORK_Delegate1)null;
         pRec.ppHit = (AppMain.OBS_RECT_WORK_Delegate1)null;
         AppMain.ObjRectWorkSet(pRec, (short)0, (short)((int)eve_rec.top * 2), (short)1, (short)((int)eve_rec.height * 2));
         gmkPwallctrlWork.line_top    = (int)eve_rec.top * 2 * 4096 + work.pos.y;
         gmkPwallctrlWork.line_bottom = (int)eve_rec.height * 2 * 4096 + work.pos.y;
         work.user_flag  = 1U;
         work.user_timer = (int)eve_rec.width * 819;
     }
     work.flag &= 4294967293U;
     if (((int)eve_rec.flag & 1) != 0)
     {
         work.user_flag |= 2U;
     }
     if (((int)eve_rec.flag & 2) != 0)
     {
         work.user_flag |= 4U;
     }
     AppMain.gmGmkPressWallControlerStart(work);
     return(work);
 }
Exemplo n.º 4
0
    // Token: 0x06001B1A RID: 6938 RVA: 0x000F6F50 File Offset: 0x000F5150
    private static OBS_OBJECT_WORK GmGmkPressWallControlerInit(AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte 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_PWALLCTRL_WORK(), "Gmk_PressWallControler");

        AppMain.GMS_GMK_PWALLCTRL_WORK gms_GMK_PWALLCTRL_WORK = (AppMain.GMS_GMK_PWALLCTRL_WORK)obs_OBJECT_WORK;
        AppMain.GMS_ENEMY_3D_WORK      gms_ENEMY_3D_WORK      = (AppMain.GMS_ENEMY_3D_WORK)obs_OBJECT_WORK;
        AppMain.OBS_RECT_WORK          obs_RECT_WORK          = gms_ENEMY_3D_WORK.ene_com.rect_work[2];
        obs_RECT_WORK.ppDef = null;
        obs_RECT_WORK.ppHit = null;
        obs_RECT_WORK.flag &= 4294967291U;
        if (eve_rec.left != 0)
        {
            AppMain.ObjRectWorkSet(obs_RECT_WORK, ( short )(eve_rec.left * 2), 0, ( short )(eve_rec.width * 2), 1);
            obs_OBJECT_WORK.user_flag  = 0U;
            obs_OBJECT_WORK.user_timer = ( int )eve_rec.height * 819;
        }
        else
        {
            obs_RECT_WORK.ppDef = null;
            obs_RECT_WORK.ppHit = null;
            AppMain.ObjRectWorkSet(obs_RECT_WORK, 0, ( short )(eve_rec.top * 2), 1, ( short )(eve_rec.height * 2));
            gms_GMK_PWALLCTRL_WORK.line_top    = ( int )(eve_rec.top * 2) * 4096 + obs_OBJECT_WORK.pos.y;
            gms_GMK_PWALLCTRL_WORK.line_bottom = ( int )(eve_rec.height * 2) * 4096 + obs_OBJECT_WORK.pos.y;
            obs_OBJECT_WORK.user_flag          = 1U;
            obs_OBJECT_WORK.user_timer         = ( int )eve_rec.width * 819;
        }
        obs_OBJECT_WORK.flag &= 4294967293U;
        if ((eve_rec.flag & 1) != 0)
        {
            obs_OBJECT_WORK.user_flag |= 2U;
        }
        if ((eve_rec.flag & 2) != 0)
        {
            obs_OBJECT_WORK.user_flag |= 4U;
        }
        AppMain.gmGmkPressWallControlerStart(obs_OBJECT_WORK);
        return(obs_OBJECT_WORK);
    }
Exemplo n.º 5
0
 // Token: 0x06001B2A RID: 6954 RVA: 0x000F7FB8 File Offset: 0x000F61B8
 private static void gmGmkPressWallControler(AppMain.OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_GMK_PWALLCTRL_WORK gms_GMK_PWALLCTRL_WORK = (AppMain.GMS_GMK_PWALLCTRL_WORK)obj_work;
     AppMain.GMS_PLAYER_WORK        ply_work = gms_GMK_PWALLCTRL_WORK.ply_work;
     if (AppMain.pwall != null && (obj_work.user_flag & 1U) != 0U && obj_work.pos.x > gms_GMK_PWALLCTRL_WORK.last_ply_x && obj_work.pos.x <= ply_work.obj_work.pos.x && ((obj_work.user_flag & 2U) == 0U || (ply_work.obj_work.pos.y >= gms_GMK_PWALLCTRL_WORK.line_top && ply_work.obj_work.pos.y <= gms_GMK_PWALLCTRL_WORK.line_bottom)))
     {
         if ((obj_work.user_flag & 4U) != 0U && AppMain.pwall.gmk_work.ene_com.obj_work.pos.x <= AppMain.g_obj.camera[0][0] - 32768)
         {
             AppMain.pwall.gmk_work.ene_com.obj_work.pos.x = AppMain.g_obj.camera[0][0] - 32768;
         }
         AppMain.pwall.wall_speed = obj_work.user_timer;
         if (AppMain.pwall.wall_speed == 0)
         {
             AppMain.pwall.stop_wall = true;
         }
         obj_work.flag |= 8U;
         gms_GMK_PWALLCTRL_WORK.gmk_work.ene_com.enemy_flag |= 65536U;
         return;
     }
     gms_GMK_PWALLCTRL_WORK.last_ply_x = ply_work.obj_work.pos.x;
     gms_GMK_PWALLCTRL_WORK.last_ply_y = ply_work.obj_work.pos.y;
 }
Exemplo n.º 6
0
 private static void gmGmkPressWallControler(AppMain.OBS_OBJECT_WORK obj_work)
 {
     AppMain.GMS_GMK_PWALLCTRL_WORK gmkPwallctrlWork = (AppMain.GMS_GMK_PWALLCTRL_WORK)obj_work;
     AppMain.GMS_PLAYER_WORK        plyWork          = gmkPwallctrlWork.ply_work;
     if (AppMain.pwall != null && ((int)obj_work.user_flag & 1) != 0 && (obj_work.pos.x > gmkPwallctrlWork.last_ply_x && obj_work.pos.x <= plyWork.obj_work.pos.x) && (((int)obj_work.user_flag & 2) == 0 || plyWork.obj_work.pos.y >= gmkPwallctrlWork.line_top && plyWork.obj_work.pos.y <= gmkPwallctrlWork.line_bottom))
     {
         if (((int)obj_work.user_flag & 4) != 0 && AppMain.pwall.gmk_work.ene_com.obj_work.pos.x <= AppMain.g_obj.camera[0][0] - 32768)
         {
             AppMain.pwall.gmk_work.ene_com.obj_work.pos.x = AppMain.g_obj.camera[0][0] - 32768;
         }
         AppMain.pwall.wall_speed = obj_work.user_timer;
         if (AppMain.pwall.wall_speed == 0)
         {
             AppMain.pwall.stop_wall = true;
         }
         obj_work.flag |= 8U;
         gmkPwallctrlWork.gmk_work.ene_com.enemy_flag |= 65536U;
     }
     else
     {
         gmkPwallctrlWork.last_ply_x = plyWork.obj_work.pos.x;
         gmkPwallctrlWork.last_ply_y = plyWork.obj_work.pos.y;
     }
 }