Ejemplo n.º 1
0
    /// <summary>
    /// Show the info of the item.
    /// </summary>
    /// <param name="orderType">The order type of item.</param>
    /// <param name="equipItem">The equip item script on the item.</param>
    /// <param name="quality">The quality of the item.</param>
    /// <param name="level">The level of the item.</param>
    /// <param name="job">The job of the item.</param>
    /// <param name="atk">The attack of the item.</param>
    /// <param name="hp">The hp value of the item.</param>
    /// <param name="recover">The recover value of the item.</param>
    public static void ShowItem(OrderType orderType, EquipItem equipItem, int quality, short level, sbyte job, int atk, int hp, int recover)
    {
        switch (orderType)
        {
            case OrderType.Time:
                equipItem.ShowByLvl(level);
                break;

            case OrderType.Job:
                equipItem.ShowByJob(atk);
                break;

            case OrderType.Rarity:
                equipItem.ShowByQuality(quality);
                break;

            case OrderType.Team:
                equipItem.ShowByLvl(level);
                break;

            case OrderType.Attack:
                equipItem.ShowByJob(atk);
                break;

            case OrderType.Health:
                equipItem.ShowByHp(hp);
                break;

            case OrderType.Recover:
                equipItem.ShowByRecover(recover);
                break;

            case OrderType.Level:
                equipItem.ShowByLvl(level);
                break;
        }
    }