Elin Modding Docs Doc
Loading...
Searching...
No Matches
Recipe Class Reference
Inheritance diagram for Recipe:
EClass RecipeBridgePillar RecipeCard RecipeCustom

Classes

class  Ingredient
 

Public Types

enum  State { Valid , Invalid }
 

Public Member Functions

bool IsStaticLV ()
 
int GetQualityBonus ()
 
virtual int GetRefVal ()
 
virtual string GetIdThing ()
 
virtual bool ShouldShowHighlight (HitResult r)
 
BaseTileSelector.BoxType GetBoxType ()
 
int GetDefaultColor ()
 
virtual SourceMaterial.Row GetMainMaterial ()
 
virtual SourceMaterial.Row GetColorMaterial ()
 
virtual void BuildIngredientList ()
 
void BuildIngredientList (Thing t)
 
virtual void OnChangeIngredient ()
 
virtual Thing Craft (BlessedState blessed, bool sound=false, List< Thing > ings=null, bool model=false)
 
bool HasSameTile (Point point, int dir, int altitude, int bridgeHeight)
 
virtual void Build (TaskBuild task)
 
virtual void Build (Chara chara, Card t, Point pos, int mat, int dir, int altitude, int bridgeHeight)
 
virtual unsafe void OnRenderMarker (Point point, bool active, HitResult result, bool main, int dir, int bridgeHeight)
 
string GetName ()
 
virtual string GetDetail ()
 
virtual void WriteNote (UINote n)
 
void WriteReqFactory (UINote n, bool hasFactory=true)
 
void WriteReqSkill (UINote n)
 
virtual IRenderer GetRenderer ()
 
virtual void OnSelected ()
 
virtual void OnChangeAltitude (int a)
 
virtual void Rotate ()
 
virtual void SetDir (int d)
 
virtual Recipe Duplicate ()
 
virtual void SetImage (Image icon)
 
bool IsCraftable ()
 
int GetMaxCount ()
 
void SetTextDifficulty (UIText text)
 
int GetSortVal ()
 

Static Public Member Functions

static Recipe GetOrCreate (string id)
 
static Recipe Create (RecipeSource _source, int idMat=-1, Thing ing=null)
 
static Recipe Create (Thing t)
 
static void DropIngredients (string id, string idMatMain, int num=1)
 
- 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

string id
 
List< Recipe.Ingredientingredients = new List<Recipe.Ingredient>()
 
bool UseStock
 
bool IngAsProduct
 
bool VirtualBlock
 
int _dir
 
int sync
 
int idMat = -1
 
int idSkin
 
Recipe.State state
 
RecipeSource _source
 

Static Public Attributes

static Dictionary< string, ReciperecipeCache = new Dictionary<string, Recipe>()
 
- Static Public Attributes inherited from EClass
static Core core
 

Properties

RecipeSource source [get]
 
SourceMaterial.Row DefaultMaterial [get]
 
virtual TileRow tileRow [get]
 
virtual RenderRow renderRow [get]
 
string Name [get]
 
virtual TileType tileType [get]
 
virtual bool IsFloorOrBridge [get]
 
int MaxAltitude [get]
 
int RecipeLv [get]
 
bool IsFloor [get]
 
bool IsObj [get]
 
virtual bool IsBlock [get]
 
bool IsWallOrFence [get]
 
bool IsBridge [get]
 
virtual bool IsThing [get]
 
virtual Card Mold [get]
 
virtual int W [get]
 
virtual int H [get]
 
virtual bool RequireIngredients [get]
 
bool MultiSize [get]
 
BaseTileSelector tileSelector [get]
 
virtual int CostMoney [get]
 
virtual bool CanRotate [get]
 
- 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 9 of file Recipe.cs.

Member Enumeration Documentation

◆ State

enum Recipe.State

Definition at line 1012 of file Recipe.cs.

Member Function Documentation

◆ Build() [1/2]

virtual void Recipe.Build ( Chara chara,
Card t,
Point pos,
int mat,
int dir,
int altitude,
int bridgeHeight )
virtual

Definition at line 612 of file Recipe.cs.

◆ Build() [2/2]

virtual void Recipe.Build ( TaskBuild task)
virtual

Definition at line 606 of file Recipe.cs.

◆ BuildIngredientList() [1/2]

virtual void Recipe.BuildIngredientList ( )
virtual

Definition at line 484 of file Recipe.cs.

◆ BuildIngredientList() [2/2]

void Recipe.BuildIngredientList ( Thing t)

Definition at line 494 of file Recipe.cs.

◆ Craft()

virtual Thing Recipe.Craft ( BlessedState blessed,
bool sound = false,
List< Thing > ings = null,
bool model = false )
virtual

Definition at line 525 of file Recipe.cs.

◆ Create() [1/2]

static Recipe Recipe.Create ( RecipeSource _source,
int idMat = -1,
Thing ing = null )
static

Definition at line 28 of file Recipe.cs.

◆ Create() [2/2]

static Recipe Recipe.Create ( Thing t)
static

Definition at line 47 of file Recipe.cs.

◆ DropIngredients()

static void Recipe.DropIngredients ( string id,
string idMatMain,
int num = 1 )
static

Definition at line 70 of file Recipe.cs.

◆ Duplicate()

virtual Recipe Recipe.Duplicate ( )
virtual

Definition at line 906 of file Recipe.cs.

◆ GetBoxType()

BaseTileSelector.BoxType Recipe.GetBoxType ( )

Definition at line 392 of file Recipe.cs.

◆ GetColorMaterial()

virtual SourceMaterial.Row Recipe.GetColorMaterial ( )
virtual

Definition at line 445 of file Recipe.cs.

◆ GetDefaultColor()

int Recipe.GetDefaultColor ( )

Definition at line 412 of file Recipe.cs.

◆ GetDetail()

virtual string Recipe.GetDetail ( )
virtual

Definition at line 794 of file Recipe.cs.

◆ GetIdThing()

virtual string Recipe.GetIdThing ( )
virtual

Definition at line 351 of file Recipe.cs.

◆ GetMainMaterial()

virtual SourceMaterial.Row Recipe.GetMainMaterial ( )
virtual

Definition at line 423 of file Recipe.cs.

◆ GetMaxCount()

int Recipe.GetMaxCount ( )

Definition at line 931 of file Recipe.cs.

◆ GetName()

string Recipe.GetName ( )

Definition at line 771 of file Recipe.cs.

◆ GetOrCreate()

static Recipe Recipe.GetOrCreate ( string id)
static

Definition at line 12 of file Recipe.cs.

◆ GetQualityBonus()

int Recipe.GetQualityBonus ( )

Definition at line 269 of file Recipe.cs.

◆ GetRefVal()

virtual int Recipe.GetRefVal ( )
virtual

Definition at line 333 of file Recipe.cs.

◆ GetRenderer()

virtual IRenderer Recipe.GetRenderer ( )
virtual

Definition at line 836 of file Recipe.cs.

◆ GetSortVal()

int Recipe.GetSortVal ( )

Definition at line 964 of file Recipe.cs.

◆ HasSameTile()

bool Recipe.HasSameTile ( Point point,
int dir,
int altitude,
int bridgeHeight )

Definition at line 564 of file Recipe.cs.

◆ IsCraftable()

bool Recipe.IsCraftable ( )

Definition at line 918 of file Recipe.cs.

◆ IsStaticLV()

bool Recipe.IsStaticLV ( )

Definition at line 262 of file Recipe.cs.

◆ OnChangeAltitude()

virtual void Recipe.OnChangeAltitude ( int a)
virtual

Definition at line 847 of file Recipe.cs.

◆ OnChangeIngredient()

virtual void Recipe.OnChangeIngredient ( )
virtual

Definition at line 510 of file Recipe.cs.

◆ OnRenderMarker()

virtual unsafe void Recipe.OnRenderMarker ( Point point,
bool active,
HitResult result,
bool main,
int dir,
int bridgeHeight )
virtual

Definition at line 697 of file Recipe.cs.

◆ OnSelected()

virtual void Recipe.OnSelected ( )
virtual

Definition at line 842 of file Recipe.cs.

◆ Rotate()

virtual void Recipe.Rotate ( )
virtual

Definition at line 852 of file Recipe.cs.

◆ SetDir()

virtual void Recipe.SetDir ( int d)
virtual

Definition at line 896 of file Recipe.cs.

◆ SetImage()

virtual void Recipe.SetImage ( Image icon)
virtual

Definition at line 912 of file Recipe.cs.

◆ SetTextDifficulty()

void Recipe.SetTextDifficulty ( UIText text)

Definition at line 955 of file Recipe.cs.

◆ ShouldShowHighlight()

virtual bool Recipe.ShouldShowHighlight ( HitResult r)
virtual

Definition at line 386 of file Recipe.cs.

◆ WriteNote()

virtual void Recipe.WriteNote ( UINote n)
virtual

Definition at line 800 of file Recipe.cs.

◆ WriteReqFactory()

void Recipe.WriteReqFactory ( UINote n,
bool hasFactory = true )

Definition at line 807 of file Recipe.cs.

◆ WriteReqSkill()

void Recipe.WriteReqSkill ( UINote n)

Definition at line 817 of file Recipe.cs.

Member Data Documentation

◆ _dir

int Recipe._dir

Definition at line 994 of file Recipe.cs.

◆ _source

RecipeSource Recipe._source

Definition at line 1009 of file Recipe.cs.

◆ id

string Recipe.id

Definition at line 975 of file Recipe.cs.

◆ idMat

int Recipe.idMat = -1

Definition at line 1000 of file Recipe.cs.

◆ idSkin

int Recipe.idSkin

Definition at line 1003 of file Recipe.cs.

◆ IngAsProduct

bool Recipe.IngAsProduct

Definition at line 987 of file Recipe.cs.

◆ ingredients

List<Recipe.Ingredient> Recipe.ingredients = new List<Recipe.Ingredient>()

Definition at line 979 of file Recipe.cs.

◆ recipeCache

Dictionary<string, Recipe> Recipe.recipeCache = new Dictionary<string, Recipe>()
static

Definition at line 971 of file Recipe.cs.

◆ state

Recipe.State Recipe.state

Definition at line 1006 of file Recipe.cs.

◆ sync

int Recipe.sync

Definition at line 997 of file Recipe.cs.

◆ UseStock

bool Recipe.UseStock

Definition at line 983 of file Recipe.cs.

◆ VirtualBlock

bool Recipe.VirtualBlock

Definition at line 991 of file Recipe.cs.

Property Documentation

◆ CanRotate

virtual bool Recipe.CanRotate
get

Definition at line 516 of file Recipe.cs.

◆ CostMoney

virtual int Recipe.CostMoney
get

Definition at line 475 of file Recipe.cs.

◆ DefaultMaterial

SourceMaterial.Row Recipe.DefaultMaterial
get

Definition at line 105 of file Recipe.cs.

◆ H

virtual int Recipe.H
get

Definition at line 310 of file Recipe.cs.

◆ IsBlock

virtual bool Recipe.IsBlock
get

Definition at line 213 of file Recipe.cs.

◆ IsBridge

bool Recipe.IsBridge
get

Definition at line 233 of file Recipe.cs.

◆ IsFloor

bool Recipe.IsFloor
get

Definition at line 193 of file Recipe.cs.

◆ IsFloorOrBridge

virtual bool Recipe.IsFloorOrBridge
get

Definition at line 159 of file Recipe.cs.

◆ IsObj

bool Recipe.IsObj
get

Definition at line 203 of file Recipe.cs.

◆ IsThing

virtual bool Recipe.IsThing
get

Definition at line 243 of file Recipe.cs.

◆ IsWallOrFence

bool Recipe.IsWallOrFence
get

Definition at line 223 of file Recipe.cs.

◆ MaxAltitude

int Recipe.MaxAltitude
get

Definition at line 169 of file Recipe.cs.

◆ Mold

virtual Card Recipe.Mold
get

Definition at line 253 of file Recipe.cs.

◆ MultiSize

bool Recipe.MultiSize
get

Definition at line 377 of file Recipe.cs.

◆ Name

string Recipe.Name
get

Definition at line 135 of file Recipe.cs.

◆ RecipeLv

int Recipe.RecipeLv
get

Definition at line 183 of file Recipe.cs.

◆ renderRow

virtual RenderRow Recipe.renderRow
get

Definition at line 125 of file Recipe.cs.

◆ RequireIngredients

virtual bool Recipe.RequireIngredients
get

Definition at line 324 of file Recipe.cs.

◆ source

RecipeSource Recipe.source
get

Definition at line 90 of file Recipe.cs.

◆ tileRow

virtual TileRow Recipe.tileRow
get

Definition at line 115 of file Recipe.cs.

◆ tileSelector

BaseTileSelector Recipe.tileSelector
get

Definition at line 403 of file Recipe.cs.

◆ tileType

virtual TileType Recipe.tileType
get

Definition at line 145 of file Recipe.cs.

◆ W

virtual int Recipe.W
get

Definition at line 296 of file Recipe.cs.


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