ORK Framework  2.22.0
API Documentation
ORKFramework.CraftingRecipe Class Reference
Inheritance diagram for ORKFramework.CraftingRecipe:
ORKFramework.BaseLanguageData ORKFramework.IContent ORKFramework.BaseIndexData ORKFramework.IContentSimple ORKFramework.BaseData ORKFramework.IBaseData

Public Member Functions

 CraftingRecipe (string name)
 
override void SetData (DataObject data)
 Sets the variables of the class using a ORKFramework.DataObject. More...
 
GameObject GetPrefabInstance ()
 
List< ItemGainGetSummedUpIngredients ()
 
List< ItemGainGetSummedUpIngredients (ItemGain[] items)
 
bool CanCreate (Combatant combatant)
 
bool CanCreate (Combatant combatant, List< IShortcut > items, CraftingListCreationType creationType)
 
bool CreateItem (Combatant combatant)
 
bool CreateItem (Combatant combatant, ref List< IShortcut > list, CraftingListCreationType creationType)
 
string GetName ()
 
string GetDescription ()
 
string GetIconTextCode ()
 
Texture GetIcon ()
 
GUIContent GetContent ()
 
IContentSimple GetTypeContent ()
 
string GetInfo (Combatant combatant)
 
IPortrait GetPortrait (int typeID)
 
- Public Member Functions inherited from ORKFramework.BaseLanguageData
 BaseLanguageData (string name)
 
- Public Member Functions inherited from ORKFramework.BaseData
virtual DataObject GetData ()
 Gets a ORKFramework.DataObject representing the class. More...
 
virtual void EditorAutoSetup (string fieldName)
 Called for all fields using the autoSetup option of the ORKFramework.ORKEditorLayoutAttribute. More...
 

Public Attributes

int typeID = 0
 
bool consume = false
 
GameObject prefab
 
Vector3 spawnOffset = Vector3.zero
 
float sympathyChange = 0
 
bool useChance = false
 
FloatValue chance
 
bool useCriticalChance = false
 
FloatValue criticalChance
 
AudioClip successClip
 
float successVolume = 1
 
AudioClip failClip
 
float failVolume = 1
 
AudioClip criticalClip
 
float criticalVolume = 1
 
PriceSettings price = new PriceSettings()
 
bool useRequirements = false
 
SimpleCombatantRequirement requirement
 
bool ingredientShowNotification = true
 
bool ingredientShowConsole = true
 
ItemGain[] ingredient = new ItemGain[] {new ItemGain()}
 
bool outcomeShowNotification = true
 
bool outcomeShowConsole = true
 
ItemGain[] outcome = new ItemGain[] {new ItemGain()}
 
bool critOutcomeShowNotification = true
 
bool critOutcomeShowConsole = true
 
ItemGain[] critOutcome = new ItemGain[] {new ItemGain()}
 
bool ownLayout = false
 
CraftingRecipeLayout layout
 
bool ownNotifications = false
 
CraftingNotification learnedNotification
 
CraftingNotification forgottenNotification
 
CraftingNotification finishedNotification
 
CraftingNotification failedNotification
 
bool ownConsoleLearning = false
 
ConsoleTextCrafting consoleLearning
 
bool ownConsoleForgetting = false
 
ConsoleTextCrafting consoleForgetting
 
TypePrefabViewPortrait[] portrait = new TypePrefabViewPortrait[0]
 
- Public Attributes inherited from ORKFramework.BaseLanguageData
LanguageInfo[] languageInfo
 

Properties

int ID [get]
 
int TypeID [get]
 
int ItemTypeID [get]
 
- Properties inherited from ORKFramework.BaseIndexData
virtual int RealID [get, set]
 
- Properties inherited from ORKFramework.IContent
int TypeID [get]
 
- Properties inherited from ORKFramework.IContentSimple
int ID [get]
 

Additional Inherited Members

- Protected Attributes inherited from ORKFramework.BaseIndexData
int realID = 0
 

Member Function Documentation

override void ORKFramework.CraftingRecipe.SetData ( DataObject  data)
virtual

Sets the variables of the class using a ORKFramework.DataObject.

Parameters
dataORKFramework.DataObject containing the data.

Reimplemented from ORKFramework.BaseData.