Exemplo n.º 1
0
        public static void Register(WhitelistType type, int itemID)
        {
            switch (type)
            {
            case WhitelistType.AlchemyIngredient:
                AlchemistBagWhitelist.Add(itemID);
                break;

            case WhitelistType.Ore:
                OreWhitelist.Add(itemID);
                break;

            case WhitelistType.Explosive:
                ExplosiveWhitelist.Add(itemID);
                break;

            case WhitelistType.Fishing:
                FishingWhitelist.Add(itemID);
                break;

            case WhitelistType.Seed:
                SeedWhitelist.Add(itemID);
                break;
            }
        }
Exemplo n.º 2
0
            public static void Register(WhitelistType type, int itemID)
            {
                switch (type)
                {
                case WhitelistType.AlchemyIngredient:
                    if (!AlchemistBagWhitelist.Contains(itemID))
                    {
                        AlchemistBagWhitelist.Add(itemID);
                    }
                    break;

                case WhitelistType.Ore:
                    if (!OreWhitelist.Contains(itemID))
                    {
                        OreWhitelist.Add(itemID);
                    }
                    break;

                case WhitelistType.Explosive:
                    if (!ExplosiveWhitelist.Contains(itemID))
                    {
                        ExplosiveWhitelist.Add(itemID);
                    }
                    break;

                case WhitelistType.Fishing:
                    if (!FishingWhitelist.Contains(itemID))
                    {
                        FishingWhitelist.Add(itemID);
                    }
                    break;

                case WhitelistType.Seed:
                    if (!SeedWhitelist.Contains(itemID))
                    {
                        SeedWhitelist.Add(itemID);
                    }
                    break;
                }
            }