Elin Decompiled Documentation EA 23.221 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 int | rndSeed (int a, int seed) |
static int | rnd (long a) |
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.
Enumerator | |
---|---|
Unavailable | |
InsufficientSkill | |
AlreadyLearned | |
Learnable |
Definition at line 7 of file RecipeManager.cs.
|
inline |
Definition at line 113 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 39 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 242 of file RecipeManager.cs.
References Add(), GetRandomRecipe(), and Msg.Say().
Referenced by TraitShrine._OnUse(), ComeUpWithRecipe(), and RecipeCard.Craft().
|
inline |
Definition at line 275 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 88 of file RecipeManager.cs.
References Recipe.BuildIngredientList(), RenderRow.components, Recipe.Create(), dict, RecipeSource.id, and list.
Referenced by BuildList().
|
inlinestatic |
Definition at line 103 of file RecipeManager.cs.
References dict.
Referenced by Add(), ComeUpWithRecipe(), Map.DropBlockComponent(), GetLearnedRecipe(), GetRecipeLearnState(), CraftUtil.MakeDish(), and LayerCraftFloat.RefreshDisassemble().
|
inlinestatic |
Definition at line 319 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 333 of file RecipeManager.cs.
References GetLearnedRecipe(), GetUnlearnedRecipe(), and RecipeSource.id.
Referenced by ComeUpWithRandomRecipe(), TraitRecipe.OnCreate(), TraitRecipeCat.OnRead(), and OnSleep().
|
inline |
Definition at line 252 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 108 of file RecipeManager.cs.
References dict.
Referenced by AM_Picker.TryGetRecipe().
|
inlinestatic |
Definition at line 305 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 173 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 182 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 230 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 344 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 25 of file RecipeManager.cs.
Referenced by Recipe.HasFirstTimeBonus(), and Recipe.TryGetFirstTimeBonus().
|
static |
Definition at line 19 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 31 of file RecipeManager.cs.
Referenced by LayerCraft.RefreshCategory(), LayerCraftFloat.RefreshCraft(), and ButtonGrid.SetCraftRecipe().
HashSet<string> RecipeManager.knownIngredients = new HashSet<string>() |
Definition at line 22 of file RecipeManager.cs.
Referenced by Card.AddThing(), and OnVersionUpdate().
Dictionary<string, int> RecipeManager.knownRecipes = new Dictionary<string, int>() |
Definition at line 28 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 37 of file RecipeManager.cs.
Referenced by DropdownGrid.BuildIngredients(), and Recipe.SaveLastIngredients().
|
static |
Definition at line 17 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 34 of file RecipeManager.cs.
Referenced by Add(), and ListSources().
|
static |
Definition at line 15 of file RecipeManager.cs.
Referenced by BuildList().