Terraria.ModLoader.RecipeEditor.AcceptRecipeGroup C# (CSharp) Метод

AcceptRecipeGroup() публичный Метод

public AcceptRecipeGroup ( string groupName ) : bool
groupName string
Результат bool
		public bool AcceptRecipeGroup(string groupName)
		{
			int groupID;
			if (!RecipeGroup.recipeGroupIDs.TryGetValue(groupName, out groupID))
			{
				throw new RecipeException("No recipe group is named " + groupName);
			}
			if (recipe.acceptedGroups.Contains(groupID))
			{
				return false;
			}
			recipe.acceptedGroups.Add(groupID);
			return true;
		}