Пример #1
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            GauntletType type = (GauntletType)value;

            switch (type)
            {
            case GauntletType.None:
                return("No Gauntlet");

            case GauntletType.CasualPhantomDraft:
                return("Expert Phantom Draft");

            case GauntletType.Constructed:
                return("Constructed");

            case GauntletType.ConstructedExpert:
                return("Expert Constructed");

            case GauntletType.PhantomDraftExpert:
                return("Expert Phantom Draft");

            case GauntletType.KeeperDraftExpert:
                return("Keeper's Draft");

            case GauntletType.CallToArms:
                return("Random Meta");

            default:
            {
                string error = $"Not implemented case for GauntletType enum - {type}";
                Logger.OutputError(error);
                throw new NotImplementedException(error);
            }
            }
        }
 public void setCurrentAmmo(GauntletType type)
 {
     currentAmmo = null;
     for (int i = 0; i < ammo.Length; i++)
     {
         if (ammo[i].type == type)
         {
             currentAmmo = ammo[i];
             currentAmmo.ammoObject.SetActive(true);
             break;
         }
     }
 }
Пример #3
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            GauntletType type = (GauntletType)value;

            return(type == GauntletType.None ? Visibility.Collapsed : Visibility.Visible);
        }