Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #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);
        }