Esempio n. 1
0
    /// <summary>
    /// Gets the wardrobeRecipes from this collections arbitrary recipes list
    /// </summary>
    public List <UMATextRecipe> GetArbitraryRecipes(DynamicCharacterSystem dcs)
    {
        List <UMATextRecipe> recipesWeGot = new List <UMATextRecipe>();

        for (int i = 0; i < arbitraryRecipes.Count; i++)
        {
            recipesWeGot.Add(dcs.GetRecipe(arbitraryRecipes[i], true));
        }
        return(recipesWeGot);
    }
Esempio n. 2
0
    /// <summary>
    /// Gets the wardrobeRecipes for the given race from the WardrobeCollection
    /// </summary>
    public List <UMATextRecipe> GetRacesRecipes(string race, DynamicCharacterSystem dcs)
    {
        var recipesToGet = wardrobeCollection[race];
        List <UMATextRecipe> recipesWeGot = new List <UMATextRecipe>();

        for (int i = 0; i < recipesToGet.Count; i++)
        {
            recipesWeGot.Add(dcs.GetRecipe(recipesToGet[i].recipe, true));
        }
        return(recipesWeGot);
    }