Elin Modding Docs Doc
Loading...
Searching...
No Matches
RecipeManager Class Reference
Inheritance diagram for RecipeManager:
EClass

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)
 
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 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>()
 
Dictionary< string, int > knownRecipes = new Dictionary<string, int>()
 
HashSet< string > hoveredRecipes = new HashSet<string>()
 
HashSet< string > newRecipes = new HashSet<string>()
 

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 7 of file RecipeManager.cs.

Member Function Documentation

◆ Add()

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

Definition at line 88 of file RecipeManager.cs.

◆ BuildList()

static void RecipeManager.BuildList ( )
static

Definition at line 10 of file RecipeManager.cs.

◆ ComeUpWithRandomRecipe()

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

Definition at line 216 of file RecipeManager.cs.

◆ ComeUpWithRecipe()

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

Definition at line 228 of file RecipeManager.cs.

◆ Create()

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

Definition at line 60 of file RecipeManager.cs.

◆ Get()

static RecipeSource RecipeManager.Get ( string id)
static

Definition at line 76 of file RecipeManager.cs.

◆ GetLearnedRecipe()

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

Definition at line 273 of file RecipeManager.cs.

◆ GetRandomRecipe()

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

Definition at line 288 of file RecipeManager.cs.

◆ GetSource()

RecipeSource RecipeManager.GetSource ( string id)

Definition at line 82 of file RecipeManager.cs.

◆ GetUnlearnedRecipe()

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

Definition at line 258 of file RecipeManager.cs.

◆ IsKnown()

bool RecipeManager.IsKnown ( string id)

Definition at line 130 of file RecipeManager.cs.

◆ ListSources()

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

Definition at line 136 of file RecipeManager.cs.

◆ OnSleep()

void RecipeManager.OnSleep ( bool ehe = false)

Definition at line 187 of file RecipeManager.cs.

◆ OnVersionUpdate()

void RecipeManager.OnVersionUpdate ( )

Definition at line 303 of file RecipeManager.cs.

Member Data Documentation

◆ dict

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

Definition at line 319 of file RecipeManager.cs.

◆ hoveredRecipes

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

Definition at line 331 of file RecipeManager.cs.

◆ knownIngredients

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

Definition at line 323 of file RecipeManager.cs.

◆ knownRecipes

Dictionary<string, int> RecipeManager.knownRecipes = new Dictionary<string, int>()

Definition at line 327 of file RecipeManager.cs.

◆ list

List<RecipeSource> RecipeManager.list = new List<RecipeSource>()
static

Definition at line 316 of file RecipeManager.cs.

◆ newRecipes

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

Definition at line 335 of file RecipeManager.cs.

◆ rebuild

bool RecipeManager.rebuild
static

Definition at line 313 of file RecipeManager.cs.


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