Elin Decompiled Documentation EA 23.102 Nightly
|
Public Member Functions | |
RecipeSource | GetSource (string id) |
void | Add (string id, bool showEffect=true) |
bool | IsKnown (string id) |
List< RecipeSource > | ListSources (Thing factory, List< RecipeSource > newRecipes=null) |
void | OnSleep (bool ehe=false) |
void | ComeUpWithRandomRecipe (string idCat=null, int lvBonus=0) |
bool | CanCeomUpWithRecipe (string idRecipe) |
void | ComeUpWithRecipe (string idRecipe, int chanceForRandomRecipe=0) |
void | OnVersionUpdate () |
Static Public Member Functions | |
static void | BuildList () |
static void | Create (RenderRow row, string type, string suffix="") |
static RecipeSource | Get (string id) |
static RecipeSource | GetUnlearnedRecipe (int lvBonus, string cat, bool onlyUnlearned) |
static RecipeSource | GetLearnedRecipe (string cat=null) |
static string | GetRandomRecipe (int lvBonus, string cat=null, bool onlyUnlearned=false) |
![]() | |
static int | rnd (int a) |
static int | curve (int a, int start, int step, int rate=75) |
static int | rndHalf (int a) |
static float | rndf (float a) |
static int | rndSqrt (int a) |
static void | Wait (float a, Card c) |
static void | Wait (float a, Point p) |
static int | Bigger (int a, int b) |
static int | Smaller (int a, int b) |
Public Attributes | |
HashSet< string > | knownIngredients = new HashSet<string>() |
HashSet< string > | craftedRecipes = new HashSet<string>() |
Dictionary< string, int > | knownRecipes = new Dictionary<string, int>() |
HashSet< string > | hoveredRecipes = new HashSet<string>() |
HashSet< string > | newRecipes = new HashSet<string>() |
Dictionary< string, List< int > > | lastIngredients = new Dictionary<string, List<int>>() |
Static Public Attributes | |
static bool | rebuild |
static List< RecipeSource > | list = new List<RecipeSource>() |
static Dictionary< string, RecipeSource > | dict = new Dictionary<string, RecipeSource>() |
![]() | |
static Core | core |
Additional Inherited Members | |
![]() | |
static Game | game [get] |
static bool | AdvMode [get] |
static Player | player [get] |
static Chara | pc [get] |
static UI | ui [get] |
static Map | _map [get] |
static Zone | _zone [get] |
static FactionBranch | Branch [get] |
static FactionBranch | BranchOrHomeBranch [get] |
static Faction | Home [get] |
static Faction | Wilds [get] |
static Scene | scene [get] |
static BaseGameScreen | screen [get] |
static GameSetting | setting [get] |
static GameData | gamedata [get] |
static ColorProfile | Colors [get] |
static World | world [get] |
static SourceManager | sources [get] |
static SourceManager | editorSources [get] |
static SoundManager | Sound [get] |
static CoreDebug | debug [get] |
Definition at line 5 of file RecipeManager.cs.
|
inline |
Definition at line 105 of file RecipeManager.cs.
References Add(), RenderRow.category, dict, Get(), RecipeSource.id, RecipeSource.isBridgePillar, knownRecipes, RecipeSource.NameFactory, RecipeSource.NeedFactory, newRecipes, EClass.pc, Card.PlaySound(), RecipeSource.row, Card.Say(), and Card.ShowEmo().
Referenced by Add(), ComeUpWithRandomRecipe(), ComeUpWithRecipe(), ListSources(), TraitRecipe.OnRead(), TraitRecipeCat.OnRead(), OnSleep(), and ResearchPlan.ParseReward().
|
inlinestatic |
Definition at line 31 of file RecipeManager.cs.
References SourceManager.blocks, SourceManager.cards, SourceManager.cellEffects, Create(), Debug, dict, RenderRow.factory, SourceManager.floors, CardRow.isChara, CardRow.isOrigin, list, SourceManager.objs, TileType.Pillar, rebuild, SourceCard.rows, and EClass.sources.
Referenced by BuildMenu._Search(), BuildMenu.Activate(), Map.DropBlockComponent(), Recipe.DropIngredients(), GetUnlearnedRecipe(), ListSources(), CraftUtil.MakeDish(), Game.OnGameInstantiated(), HotItemHeld.OnSetCurrentItem(), LayerCraft.RefreshCategory(), and WidgetCodex.Search().
|
inline |
Definition at line 244 of file RecipeManager.cs.
References Card.Evalue(), Get(), RecipeSource.GetReqSkill(), Element.id, RecipeSource.IsQuickCraft, knownRecipes, RenderRow.LV, RecipeSource.NeedFactory, EClass.pc, EClass.player, Player.recipes, and RecipeSource.row.
Referenced by TaskHarvest.GetBaseText().
|
inline |
Definition at line 234 of file RecipeManager.cs.
References Add(), GetRandomRecipe(), and Msg.Say().
Referenced by TraitShrine._OnUse(), ComeUpWithRecipe(), and RecipeCard.Craft().
|
inline |
Definition at line 263 of file RecipeManager.cs.
References Add(), RenderRow.Category, ComeUpWithRandomRecipe(), EClass.debug, SourceManager.elements, CoreDebug.enable, Card.Evalue(), Get(), RecipeSource.GetReqSkill(), Element.id, RecipeSource.IsQuickCraft, knownRecipes, RenderRow.LV, RecipeSource.NeedFactory, EClass.pc, EClass.player, Player.recipes, EClass.rnd(), RecipeSource.row, Msg.Say(), and EClass.sources.
Referenced by TaskHarvest.OnCreateProgress(), TaskDig.OnProgressComplete(), and TaskMine.OnProgressComplete().
|
inlinestatic |
Definition at line 80 of file RecipeManager.cs.
References Recipe.BuildIngredientList(), RenderRow.components, Recipe.Create(), dict, RecipeSource.id, and list.
Referenced by BuildList().
|
inlinestatic |
Definition at line 95 of file RecipeManager.cs.
References dict.
Referenced by Add(), CanCeomUpWithRecipe(), ComeUpWithRecipe(), Map.DropBlockComponent(), GetLearnedRecipe(), CraftUtil.MakeDish(), and LayerCraftFloat.RefreshDisassemble().
|
inlinestatic |
Definition at line 306 of file RecipeManager.cs.
References RenderRow.Category, RenderRow.chance, Get(), RecipeSource.IsQuickCraft, knownRecipes, list, RecipeSource.NeedFactory, EClass.player, Player.recipes, and RecipeSource.row.
Referenced by GetRandomRecipe().
|
inlinestatic |
Definition at line 320 of file RecipeManager.cs.
References GetLearnedRecipe(), GetUnlearnedRecipe(), and RecipeSource.id.
Referenced by ComeUpWithRandomRecipe(), TraitRecipe.OnCreate(), TraitRecipeCat.OnRead(), and OnSleep().
|
inline |
Definition at line 100 of file RecipeManager.cs.
References dict.
Referenced by AM_Picker.TryGetRecipe().
|
inlinestatic |
Definition at line 292 of file RecipeManager.cs.
References BuildList(), RenderRow.chance, Card.Evalue(), item, knownRecipes, list, EClass.pc, EClass.player, Player.recipes, and RecipeSource.row.
Referenced by GetRandomRecipe().
|
inline |
Definition at line 165 of file RecipeManager.cs.
References CoreDebug.allRecipe, EClass.debug, knownRecipes, EClass.player, and Player.recipes.
Referenced by AM_Picker.Result.GetText(), and BuildMenu.RefreshCategory().
|
inline |
Definition at line 174 of file RecipeManager.cs.
References Add(), BuildList(), EClass.debug, EClass.game, CoreDebug.godCraft, item, knownRecipes, list, newRecipes, EClass.player, Game.quests, and Player.recipes.
Referenced by TraitCrafter.OnUse(), LayerCraft.RefreshCategory(), and TraitCrafter.TrySetAct().
|
inline |
Definition at line 222 of file RecipeManager.cs.
References Add(), Card.Evalue(), EClass.game, GetRandomRecipe(), EClass.pc, EClass.player, EClass.rnd(), Msg.Say(), Game.seed, Rand.SetSeed(), Player.Stats.slept, and Player.stats.
Referenced by ConSleep.OnRemoved().
|
inline |
Definition at line 331 of file RecipeManager.cs.
References ThingContainer.Foreach(), Card.id, knownIngredients, EClass.pc, and Card.things.
HashSet<string> RecipeManager.craftedRecipes = new HashSet<string>() |
Definition at line 17 of file RecipeManager.cs.
Referenced by Recipe.HasFirstTimeBonus(), and Recipe.TryGetFirstTimeBonus().
|
static |
Definition at line 11 of file RecipeManager.cs.
Referenced by Add(), BuildList(), Create(), Recipe.Create(), Get(), TraitTile.GetBuildModeRecipe(), Recipe.GetOrCreate(), TraitTile.GetRecipe(), and GetSource().
HashSet<string> RecipeManager.hoveredRecipes = new HashSet<string>() |
Definition at line 23 of file RecipeManager.cs.
Referenced by LayerCraft.RefreshCategory(), LayerCraftFloat.RefreshCraft(), and ButtonGrid.SetCraftRecipe().
HashSet<string> RecipeManager.knownIngredients = new HashSet<string>() |
Definition at line 14 of file RecipeManager.cs.
Referenced by Card.AddThing(), and OnVersionUpdate().
Dictionary<string, int> RecipeManager.knownRecipes = new Dictionary<string, int>() |
Definition at line 20 of file RecipeManager.cs.
Referenced by BuildMenu._Search(), Add(), CoreDebug.AddAllRecipes(), CoreDebug.AllRecipe(), CanCeomUpWithRecipe(), ComeUpWithRecipe(), GetLearnedRecipe(), GetUnlearnedRecipe(), IsKnown(), ListSources(), UIRecipeInfo.Refresh(), WidgetCodex.Search(), and TraitRecipe.SetName().
Dictionary<string, List<int> > RecipeManager.lastIngredients = new Dictionary<string, List<int>>() |
Definition at line 29 of file RecipeManager.cs.
Referenced by DropdownGrid.BuildIngredients(), and Recipe.SaveLastIngredients().
|
static |
Definition at line 9 of file RecipeManager.cs.
Referenced by BuildMenu._Search(), CoreDebug.AddAllRecipes(), BuildList(), Create(), GetLearnedRecipe(), GetUnlearnedRecipe(), ListSources(), Trait.OnBarter(), BuildMenu.RefreshCategory(), WidgetCodex.Search(), and Map.TryShatter().
HashSet<string> RecipeManager.newRecipes = new HashSet<string>() |
Definition at line 26 of file RecipeManager.cs.
Referenced by Add(), and ListSources().
|
static |
Definition at line 7 of file RecipeManager.cs.
Referenced by BuildList().