Interface IKnowledgeManager


public interface IKnowledgeManager
  • Method Details

    • knowsRecipe

      boolean knowsRecipe(PlayerCompendiumRecipe recipe)
    • knowsInformation

      boolean knowsInformation(ResourceName name)
    • getInformation

      Information getInformation(ResourceName name)
    • getInformation

      <T extends Information> T getInformation(ResourceName name, Class<T> infoClass)
    • teachRecipe

      boolean teachRecipe(PlayerCompendiumRecipe recipe, boolean announce)
      Tries to teach the recipe to the player
      Parameters:
      recipe - the recipe to teach
      announce - Should the player recieve a toast to inform them of their discovery?
      Returns:
      True if the player did not already know the recipe
    • teachRecipe

      boolean teachRecipe(PlayerCompendiumRecipe recipe)
    • teachRecipes

      void teachRecipes(List<PlayerCompendiumRecipe> recipes)
      Teaches many recipes with a single toast notification
      Parameters:
      recipes - A list of recipes to be taught
    • teachInformation

      void teachInformation(Information information, boolean announce)
    • teachInformation

      void teachInformation(Information information)
    • forgetRecipe

      void forgetRecipe(PlayerCompendiumRecipe recipe, boolean announce)
    • forgetRecipe

      void forgetRecipe(PlayerCompendiumRecipe recipe)
    • forgetInformation

      void forgetInformation(ResourceName name, boolean announce)
    • forgetInformation

      void forgetInformation(ResourceName name)