示例#1
0
        public async Task <string> LoadAttackImage()
        {
            if (Attack != null)
            {
                return(Attack.ImageSource);
            }
            else if (AttackId.HasValue)
            {
                Attack = await AGearRoutes.GetOne(AttackId.Value);

                return(Attack.ImageSource);
            }
            return(ImageSourceAttack);
        }
示例#2
0
        public async Task <string> LoadSpecialImage()
        {
            if (Special != null)
            {
                return(Special.ImageSource);
            }
            else if (SpecialId.HasValue)
            {
                Special = await AGearRoutes.GetOne(SpecialId.Value);

                return(Special.ImageSource);
            }
            return(ImageSourceSpecial);
        }
示例#3
0
        public async Task <string> LoadRing2Image()
        {
            if (Ring2 != null)
            {
                return(Ring2.ImageSource);
            }
            else if (Ring2Id.HasValue)
            {
                Ring2 = await AGearRoutes.GetOne(Ring2Id.Value);

                return(Ring2.ImageSource);
            }
            return(IMAGE_SOURCE_ITEM);
        }
示例#4
0
        public async Task <string> LoadLegsImage()
        {
            if (Legs != null)
            {
                return(Legs.ImageSource);
            }
            else if (LegsId.HasValue)
            {
                Legs = await AGearRoutes.GetOne(LegsId.Value);

                return(Legs.ImageSource);
            }
            return(IMAGE_SOURCE_LEGS);
        }
示例#5
0
        public async Task <string> LoadArmorImage()
        {
            if (Armor != null)
            {
                return(Armor.ImageSource);
            }
            else if (ArmorId.HasValue)
            {
                Armor = await AGearRoutes.GetOne(ArmorId.Value);

                return(Armor.ImageSource);
            }
            return(IMAGE_SOURCE_ARMOR);
        }
示例#6
0
        public async Task <string> LoadHeadImage()
        {
            if (Head != null)
            {
                return(Head.ImageSource);
            }
            else if (HeadId.HasValue)
            {
                Head = await AGearRoutes.GetOne(HeadId.Value);

                return(Head.ImageSource);
            }
            return(IMAGE_SOURCE_HEAD);
        }