Elin Decompiled Documentation EA 23.295 Stable
Loading...
Searching...
No Matches
RecipeManager Class Reference
Inheritance diagram for RecipeManager:
EClass

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< RecipeSourceListSources (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< RecipeSourcelist = new List<RecipeSource>()
 
static Dictionary< string, RecipeSourcedict = 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]
 

Detailed Description

Definition at line 5 of file RecipeManager.cs.

Member Enumeration Documentation

◆ LearnState

Enumerator
Unavailable 
InsufficientSkill 
AlreadyLearned 
Learnable 

Definition at line 7 of file RecipeManager.cs.

Member Function Documentation

◆ Add()

void RecipeManager.Add ( string  id,
bool  showEffect = true 
)
inline

Definition at line 117 of file RecipeManager.cs.

118 {
119 if (id.IsEmpty())
120 {
121 return;
122 }
123 RecipeSource recipeSource = Get(id);
124 if (recipeSource == null)
125 {
126 return;
127 }
128 if (!knownRecipes.ContainsKey(id))
129 {
130 newRecipes.Add(id);
131 knownRecipes[id] = 0;
132 }
133 knownRecipes[id]++;
134 int num = knownRecipes[id];
135 if (showEffect)
136 {
137 EClass.pc.PlaySound("idea");
138 EClass.pc.ShowEmo(Emo.idea, 0.5f, skipSame: false);
139 }
140 EClass.pc.Say("learnRecipe" + ((num == 1) ? "New" : ""), dict[id].Name.ToTitleCase(), num.ToString() ?? "");
141 if (num == 1 && !recipeSource.isBridgePillar)
142 {
143 if (recipeSource.NeedFactory)
144 {
145 EClass.pc.Say("recipe_factory", recipeSource.NameFactory);
146 }
147 else
148 {
149 EClass.pc.Say("recipe_nofactory");
150 }
151 }
152 recipeSource = Get(id + "-p");
153 if (recipeSource != null && !knownRecipes.ContainsKey(recipeSource.id))
154 {
155 Add(recipeSource.id, showEffect: false);
156 }
157 recipeSource = Get(id.Replace("-p", ""));
158 if (recipeSource != null && !knownRecipes.ContainsKey(recipeSource.id))
159 {
160 Add(recipeSource.id, showEffect: false);
161 }
162 if (recipeSource.row.category == "floor")
163 {
164 recipeSource = Get(id + "-b");
165 if (recipeSource != null && !knownRecipes.ContainsKey(recipeSource.id))
166 {
167 Add(recipeSource.id, showEffect: false);
168 }
169 recipeSource = Get(id.Replace("-b", ""));
170 if (recipeSource != null && !knownRecipes.ContainsKey(recipeSource.id))
171 {
172 Add(recipeSource.id, showEffect: false);
173 }
174 }
175 }
Emo
Definition: Emo.cs:2
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
Definition: Card.cs:6421
void ShowEmo(Emo _emo=Emo.none, float duration=0f, bool skipSame=true)
Definition: Card.cs:6389
void Say(string lang, string ref1=null, string ref2=null)
Definition: Card.cs:7099
Definition: EClass.cs:6
static Chara pc
Definition: EClass.cs:15
static RecipeSource Get(string id)
static Dictionary< string, RecipeSource > dict
Dictionary< string, int > knownRecipes
void Add(string id, bool showEffect=true)
HashSet< string > newRecipes
RenderRow row
Definition: RecipeSource.cs:5
string NameFactory
Definition: RecipeSource.cs:75
bool isBridgePillar
Definition: RecipeSource.cs:15
bool NeedFactory
Definition: RecipeSource.cs:63
string category
Definition: RenderRow.cs:46

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().

◆ BuildList()

static void RecipeManager.BuildList ( )
inlinestatic

Definition at line 39 of file RecipeManager.cs.

40 {
41 if (!rebuild && list.Count > 0)
42 {
43 return;
44 }
45 Debug.Log("Rebuilding recipe list");
46 list.Clear();
47 dict.Clear();
48 foreach (CardRow row in EClass.sources.cards.rows)
49 {
50 if (!row.isOrigin)
51 {
52 Create(row, "", row.isChara ? "-c" : "");
53 }
54 }
55 foreach (SourceBlock.Row row2 in EClass.sources.blocks.rows)
56 {
57 Create(row2, "Block");
58 if (row2.tileType == TileType.Pillar)
59 {
60 Create(row2, "BridgePillar", "-p");
61 }
62 }
63 foreach (SourceFloor.Row row3 in EClass.sources.floors.rows)
64 {
65 if (!row3.tag.Contains("noFloor"))
66 {
67 Create(row3, "Floor");
68 }
69 }
70 foreach (SourceFloor.Row row4 in EClass.sources.floors.rows)
71 {
72 if (!row4.tag.Contains("noBridge") && !row4.factory.IsEmpty() && row4.factory[0] != "x")
73 {
74 Create(row4, "Bridge", "-b");
75 }
76 }
77 foreach (SourceObj.Row row5 in EClass.sources.objs.rows)
78 {
79 Create(row5, "Obj");
80 }
81 foreach (SourceCellEffect.Row row6 in EClass.sources.cellEffects.rows)
82 {
83 Create(row6, "Liquid");
84 }
85 rebuild = false;
86 }
bool isChara
Definition: CardRow.cs:55
bool isOrigin
Definition: CardRow.cs:52
static SourceManager sources
Definition: EClass.cs:43
static bool rebuild
static List< RecipeSource > list
static void Create(RenderRow row, string type, string suffix="")
List< CardRow > rows
Definition: SourceCard.cs:7
SourceCard cards
SourceObj objs
SourceCellEffect cellEffects
SourceBlock blocks
SourceFloor floors
static TileTypePillar Pillar
Definition: TileType.cs:41

References SourceManager.blocks, SourceManager.cards, SourceManager.cellEffects, Create(), Debug, 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().

◆ ComeUpWithRandomRecipe()

void RecipeManager.ComeUpWithRandomRecipe ( string  idCat = null,
int  lvBonus = 0 
)
inline

Definition at line 246 of file RecipeManager.cs.

247 {
248 string randomRecipe = GetRandomRecipe(lvBonus, idCat, onlyUnlearned: true);
249 if (randomRecipe != null)
250 {
251 Msg.Say("learnRecipeIdea");
252 Add(randomRecipe);
253 }
254 }
Definition: Msg.cs:5
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
Definition: Msg.cs:58
static string GetRandomRecipe(int lvBonus, string cat=null, bool onlyUnlearned=false)

References Add(), GetRandomRecipe(), and Msg.Say().

Referenced by TraitShrine._OnUse(), ComeUpWithRecipe(), and RecipeCard.Craft().

◆ ComeUpWithRecipe()

void RecipeManager.ComeUpWithRecipe ( string  idRecipe,
int  chanceForRandomRecipe = 0 
)
inline

Definition at line 279 of file RecipeManager.cs.

280 {
281 if (idRecipe.IsEmpty())
282 {
283 return;
284 }
285 RecipeSource recipeSource = Get(idRecipe);
286 int num = EClass.pc.Evalue(1661);
287 if (EClass.rnd((num >= 2) ? 5 : ((num == 1) ? 8 : 10)) != 0 && !EClass.debug.enable)
288 {
289 return;
290 }
291 if (recipeSource == null || EClass.player.recipes.knownRecipes.ContainsKey(idRecipe) || (!recipeSource.NeedFactory && !recipeSource.IsQuickCraft))
292 {
293 if (recipeSource != null && chanceForRandomRecipe > 0 && EClass.rnd(EClass.debug.enable ? 1 : chanceForRandomRecipe) == 0)
294 {
295 ComeUpWithRandomRecipe(recipeSource.row.Category.id);
296 }
297 return;
298 }
299 int id = recipeSource.GetReqSkill().id;
300 if (EClass.pc.Evalue(id) + 5 < recipeSource.row.LV)
301 {
302 Msg.Say("recipeReqLv", EClass.sources.elements.map[id].GetName());
303 return;
304 }
305 Msg.Say("learnRecipeIdea");
306 Add(idRecipe);
307 }
int Evalue(int ele)
Definition: Card.cs:2611
bool enable
Definition: CoreDebug.cs:286
static int rnd(long a)
Definition: EClass.cs:59
static Player player
Definition: EClass.cs:13
static CoreDebug debug
Definition: EClass.cs:49
int id
Definition: ELEMENT.cs:255
RecipeManager recipes
Definition: Player.cs:1164
void ComeUpWithRandomRecipe(string idCat=null, int lvBonus=0)
Element GetReqSkill()
bool IsQuickCraft
Definition: RecipeSource.cs:51
SourceCategory.Row Category
Definition: RenderRow.cs:119
int LV
Definition: RenderRow.cs:22
SourceElement elements

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().

◆ Create()

static void RecipeManager.Create ( RenderRow  row,
string  type,
string  suffix = "" 
)
inlinestatic

Definition at line 88 of file RecipeManager.cs.

89 {
90 RecipeSource recipeSource = new RecipeSource();
91 recipeSource.id = row.RecipeID + suffix;
92 recipeSource.isBridge = type == "Bridge";
93 recipeSource.isBridgePillar = type == "BridgePillar";
94 recipeSource.type = type;
95 recipeSource.row = row;
96 recipeSource.isChara = row is SourceChara.Row;
97 if (!row.factory.IsEmpty() && row.factory[0] == "x")
98 {
99 recipeSource.noListing = true;
100 }
101 list.Add(recipeSource);
102 dict[recipeSource.id] = recipeSource;
103 _ = row.components;
104 Recipe.Create(recipeSource).BuildIngredientList();
105 }
Definition: Recipe.cs:7
static Recipe Create(RecipeSource _source, int idMat=-1, Thing ing=null)
Definition: Recipe.cs:325
virtual void BuildIngredientList()
Definition: Recipe.cs:526
string[] factory
Definition: RenderRow.cs:54
string[] components
Definition: RenderRow.cs:52

References Recipe.BuildIngredientList(), RenderRow.components, Recipe.Create(), dict, RenderRow.factory, RecipeSource.id, and list.

Referenced by BuildList().

◆ Get()

static RecipeSource RecipeManager.Get ( string  id)
inlinestatic

Definition at line 107 of file RecipeManager.cs.

108 {
109 return dict.TryGetValue(id);
110 }

References dict.

Referenced by Add(), ComeUpWithRecipe(), Map.DropBlockComponent(), GetLearnedRecipe(), GetRecipeLearnState(), CraftUtil.MakeDish(), and LayerCraftFloat.RefreshDisassemble().

◆ GetLearnedRecipe()

static RecipeSource RecipeManager.GetLearnedRecipe ( string  cat = null)
inlinestatic

Definition at line 323 of file RecipeManager.cs.

324 {
325 List<RecipeSource> list = new List<RecipeSource>();
326 foreach (string key in EClass.player.recipes.knownRecipes.Keys)
327 {
328 RecipeSource recipeSource = Get(key);
329 if (recipeSource != null && recipeSource.row is SourceThing.Row && !recipeSource.noRandomRecipe && (recipeSource.NeedFactory || recipeSource.IsQuickCraft) && (cat == null || recipeSource.row.Category.IsChildOf(cat)))
330 {
331 list.Add(recipeSource);
332 }
333 }
334 return list.RandomItemWeighted((RecipeSource r) => (r.row.chance == 0) ? 100 : r.row.chance);
335 }
bool noRandomRecipe
Definition: RecipeSource.cs:25
int chance
Definition: RenderRow.cs:24

References RenderRow.Category, RenderRow.chance, Get(), RecipeSource.IsQuickCraft, knownRecipes, list, RecipeSource.NeedFactory, RecipeSource.noRandomRecipe, EClass.player, Player.recipes, and RecipeSource.row.

Referenced by GetRandomRecipe().

◆ GetRandomRecipe()

static string RecipeManager.GetRandomRecipe ( int  lvBonus,
string  cat = null,
bool  onlyUnlearned = false 
)
inlinestatic

Definition at line 337 of file RecipeManager.cs.

338 {
339 RecipeSource recipeSource = null;
340 recipeSource = GetUnlearnedRecipe(lvBonus, cat, onlyUnlearned);
341 if (recipeSource == null)
342 {
343 recipeSource = GetLearnedRecipe(cat);
344 }
345 return recipeSource?.id;
346 }
static RecipeSource GetLearnedRecipe(string cat=null)
static RecipeSource GetUnlearnedRecipe(int lvBonus, string cat, bool onlyUnlearned)

References GetLearnedRecipe(), GetUnlearnedRecipe(), and RecipeSource.id.

Referenced by ComeUpWithRandomRecipe(), TraitRecipe.OnCreate(), TraitRecipeCat.OnRead(), and OnSleep().

◆ GetRecipeLearnState()

LearnState RecipeManager.GetRecipeLearnState ( string  idRecipe)
inline

Definition at line 256 of file RecipeManager.cs.

257 {
258 if (idRecipe.IsEmpty())
259 {
260 return LearnState.Unavailable;
261 }
262 RecipeSource recipeSource = Get(idRecipe);
263 if (recipeSource == null || (!recipeSource.NeedFactory && !recipeSource.IsQuickCraft))
264 {
265 return LearnState.Unavailable;
266 }
267 if (EClass.player.recipes.knownRecipes.ContainsKey(idRecipe))
268 {
269 return LearnState.AlreadyLearned;
270 }
271 int id = recipeSource.GetReqSkill().id;
272 if (EClass.pc.Evalue(id) + 5 < recipeSource.row.LV)
273 {
274 return LearnState.InsufficientSkill;
275 }
276 return LearnState.Learnable;
277 }

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().

◆ GetSource()

RecipeSource RecipeManager.GetSource ( string  id)
inline

Definition at line 112 of file RecipeManager.cs.

113 {
114 return dict.TryGetValue(id);
115 }

References dict.

Referenced by AM_Picker.TryGetRecipe().

◆ GetUnlearnedRecipe()

static RecipeSource RecipeManager.GetUnlearnedRecipe ( int  lvBonus,
string  cat,
bool  onlyUnlearned 
)
inlinestatic

Definition at line 309 of file RecipeManager.cs.

310 {
311 BuildList();
312 List<RecipeSource> list = new List<RecipeSource>();
314 {
315 if (!item.alwaysKnown && !item.noRandomRecipe && (item.NeedFactory || item.IsQuickCraft) && (cat == null || item.row.Category.IsChildOf(cat)) && (!onlyUnlearned || !EClass.player.recipes.knownRecipes.ContainsKey(item.id)) && EClass.pc.Evalue(item.GetReqSkill().id) + 5 + lvBonus >= item.row.LV && !item.row.ContainsTag("hiddenRecipe"))
316 {
317 list.Add(item);
318 }
319 }
320 return list.RandomItemWeighted((RecipeSource r) => (r.row.chance == 0) ? 100 : r.row.chance);
321 }
static void BuildList()

References BuildList(), RenderRow.chance, Card.Evalue(), item, knownRecipes, list, EClass.pc, EClass.player, Player.recipes, and RecipeSource.row.

Referenced by GetRandomRecipe().

◆ IsKnown()

bool RecipeManager.IsKnown ( string  id)
inline

Definition at line 177 of file RecipeManager.cs.

178 {
180 {
181 return EClass.player.recipes.knownRecipes.ContainsKey(id);
182 }
183 return true;
184 }
bool allRecipe
Definition: CoreDebug.cs:233

References CoreDebug.allRecipe, EClass.debug, knownRecipes, EClass.player, and Player.recipes.

Referenced by AM_Picker.Result.GetText(), and BuildMenu.RefreshCategory().

◆ ListSources()

List< RecipeSource > RecipeManager.ListSources ( Thing  factory,
List< RecipeSource newRecipes = null 
)
inline

Definition at line 186 of file RecipeManager.cs.

187 {
188 BuildList();
189 List<RecipeSource> list = new List<RecipeSource>();
191 {
192 if (item.isBridgePillar || (factory == null && item.idFactory != "self") || (factory != null && !factory.trait.Contains(item)) || item.isChara || item.noListing)
193 {
194 continue;
195 }
196 if (!EClass.debug.godCraft && !EClass.player.recipes.knownRecipes.ContainsKey(item.id))
197 {
198 bool flag = false;
199 if (item.row.recipeKey != null && item.row.recipeKey.Length != 0 && item.row.recipeKey[0][0] == '*')
200 {
201 flag = true;
202 }
203 string id = item.id;
204 if (!(id == "waystone"))
205 {
206 if (id == "container_shipping" && EClass.game.quests.GetPhase<QuestShippingChest>() >= 0)
207 {
208 flag = true;
209 }
210 }
211 else if (EClass.game.quests.GetPhase<QuestExploration>() >= 6)
212 {
213 flag = true;
214 }
215 if (!flag)
216 {
217 continue;
218 }
219 if (newRecipes != null)
220 {
222 if (EClass.player.recipes.newRecipes.Contains(item.id))
223 {
224 newRecipes.Add(item);
226 }
227 }
228 }
229 list.Add(item);
230 }
231 return list;
232 }
Trait trait
Definition: Card.cs:54
bool godCraft
Definition: CoreDebug.cs:181
static Game game
Definition: EClass.cs:9
QuestManager quests
Definition: Game.cs:183
int GetPhase(string id)
virtual bool Contains(RecipeSource r)
Definition: Trait.cs:605

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().

◆ OnSleep()

void RecipeManager.OnSleep ( bool  ehe = false)
inline

Definition at line 234 of file RecipeManager.cs.

235 {
236 int slept = EClass.player.stats.slept;
237 Rand.SetSeed(EClass.game.seed + slept);
238 if ((slept <= 3 || EClass.rnd(ehe ? 777 : 3) != 0) && (EClass.rnd(EClass.pc.Evalue(1642) + 1) > 0 || ((slept <= 15 || EClass.rnd(3) != 0) && (slept <= 30 || EClass.rnd(3) != 0) && (slept <= 60 || EClass.rnd(3) != 0))))
239 {
240 Msg.Say("learnRecipeSleep");
241 Rand.SetSeed();
242 Add(GetRandomRecipe((ehe ? 5 : 0) + EClass.rnd(EClass.rnd(EClass.rnd(10)))));
243 }
244 }
int seed
Definition: Game.cs:201
int slept
Definition: Player.cs:102
Stats stats
Definition: Player.cs:1083
Definition: Rand.cs:4
static void SetSeed(int a=-1)
Definition: Rand.cs:44

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().

◆ OnVersionUpdate()

void RecipeManager.OnVersionUpdate ( )
inline

Definition at line 348 of file RecipeManager.cs.

349 {
350 EClass.pc.things.Foreach(delegate(Thing t)
351 {
352 knownIngredients.Add(t.id);
353 });
354 knownIngredients.Add("flower");
355 }
string id
Definition: Card.cs:36
ThingContainer things
Definition: Card.cs:39
HashSet< string > knownIngredients
void Foreach(Action< Thing > action, bool onlyAccessible=true)
Definition: Thing.cs:8

References ThingContainer.Foreach(), Card.id, knownIngredients, EClass.pc, and Card.things.

Member Data Documentation

◆ craftedRecipes

HashSet<string> RecipeManager.craftedRecipes = new HashSet<string>()

Definition at line 25 of file RecipeManager.cs.

Referenced by Recipe.HasFirstTimeBonus(), and Recipe.TryGetFirstTimeBonus().

◆ dict

Dictionary<string, RecipeSource> RecipeManager.dict = new Dictionary<string, RecipeSource>()
static

◆ hoveredRecipes

HashSet<string> RecipeManager.hoveredRecipes = new HashSet<string>()

◆ knownIngredients

HashSet<string> RecipeManager.knownIngredients = new HashSet<string>()

Definition at line 22 of file RecipeManager.cs.

Referenced by Card.AddThing(), and OnVersionUpdate().

◆ knownRecipes

◆ lastIngredients

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().

◆ list

◆ newRecipes

HashSet<string> RecipeManager.newRecipes = new HashSet<string>()

Definition at line 34 of file RecipeManager.cs.

Referenced by Add(), and ListSources().

◆ rebuild

bool RecipeManager.rebuild
static

Definition at line 15 of file RecipeManager.cs.

Referenced by BuildList().


The documentation for this class was generated from the following file: