|
Elin Decompiled Documentation EA 23.326 Nightly
|
Public Types | |
| enum | LearnState { Unavailable , InsufficientSkill , AlreadyLearned , Learnable } |
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) |
| LearnState | GetRecipeLearnState (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 Public Member Functions inherited from EClass | |
| static int | rndSeed (int a, int seed) |
| static int | rnd (long a) |
| static int | rnd (int a) |
| static int | curve (long _a, int start, int step, int rate=75) |
| static int | sqrt (int a) |
| 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 Public Attributes inherited from EClass | |
| static Core | core |
Additional Inherited Members | |
Properties inherited from EClass | |
| 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 6 of file RecipeManager.cs.
| Enumerator | |
|---|---|
| Unavailable | |
| InsufficientSkill | |
| AlreadyLearned | |
| Learnable | |
Definition at line 8 of file RecipeManager.cs.
|
inline |
Definition at line 131 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 40 of file RecipeManager.cs.
References SourceManager.blocks, SourceManager.cards, SourceManager.cellEffects, Create(), Debug, SourceManager.decos, dict, 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 260 of file RecipeManager.cs.
References Add(), GetRandomRecipe(), and Msg.Say().
Referenced by TraitShrine._OnUse(), ComeUpWithRecipe(), and RecipeCard.Craft().
|
inline |
Definition at line 293 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 93 of file RecipeManager.cs.
References $, Recipe.BuildIngredientList(), RenderRow.components, Recipe.Create(), Debug, dict, RenderRow.factory, RecipeSource.id, and list.
Referenced by BuildList().
|
inlinestatic |
Definition at line 121 of file RecipeManager.cs.
References dict.
Referenced by Add(), ComeUpWithRecipe(), Map.DropBlockComponent(), GetLearnedRecipe(), GetRecipeLearnState(), CraftUtil.MakeDish(), and LayerCraftFloat.RefreshDisassemble().
|
inlinestatic |
Definition at line 337 of file RecipeManager.cs.
References RenderRow.Category, RenderRow.chance, Get(), RecipeSource.IsQuickCraft, knownRecipes, list, RecipeSource.NeedFactory, RecipeSource.noRandomRecipe, EClass.player, Player.recipes, and RecipeSource.row.
Referenced by GetRandomRecipe().
|
inlinestatic |
Definition at line 351 of file RecipeManager.cs.
References GetLearnedRecipe(), GetUnlearnedRecipe(), and RecipeSource.id.
Referenced by ComeUpWithRandomRecipe(), TraitRecipe.OnCreate(), TraitRecipeCat.OnRead(), and OnSleep().
|
inline |
Definition at line 270 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 BaseTaskHarvest.GetText().
|
inline |
Definition at line 126 of file RecipeManager.cs.
References dict.
Referenced by AM_Picker.TryGetRecipe().
|
inlinestatic |
Definition at line 323 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 191 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 200 of file RecipeManager.cs.
References Add(), BuildList(), EClass.debug, EClass.game, QuestManager.GetPhase(), 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 248 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 362 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 26 of file RecipeManager.cs.
Referenced by Recipe.HasFirstTimeBonus(), and Recipe.TryGetFirstTimeBonus().
|
static |
Definition at line 20 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 32 of file RecipeManager.cs.
Referenced by LayerCraft.RefreshCategory(), LayerCraftFloat.RefreshCraft(), and ButtonGrid.SetCraftRecipe().
| HashSet<string> RecipeManager.knownIngredients = new HashSet<string>() |
Definition at line 23 of file RecipeManager.cs.
Referenced by Card.AddThing(), and OnVersionUpdate().
| Dictionary<string, int> RecipeManager.knownRecipes = new Dictionary<string, int>() |
Definition at line 29 of file RecipeManager.cs.
Referenced by BuildMenu._Search(), Add(), CoreDebug.AddAllRecipes(), CoreDebug.AllRecipe(), ComeUpWithRecipe(), GetLearnedRecipe(), GetRecipeLearnState(), GetUnlearnedRecipe(), IsKnown(), ListSources(), UIRecipeInfo.Refresh(), WidgetCodex.Search(), and TraitRecipe.SetName().
| Dictionary<string, List<int> > RecipeManager.lastIngredients = new Dictionary<string, List<int>>() |
Definition at line 38 of file RecipeManager.cs.
Referenced by DropdownGrid.BuildIngredients(), and Recipe.SaveLastIngredients().
|
static |
Definition at line 18 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 35 of file RecipeManager.cs.
Referenced by Add(), and ListSources().
|
static |
Definition at line 16 of file RecipeManager.cs.
Referenced by BuildList().