ORK Framework  2.27.1
API Documentation
ORKFramework.ResearchItemSetting Class Reference
Inheritance diagram for ORKFramework.ResearchItemSetting:
ORKFramework.BaseData ORKFramework.IPortraitContent ORKFramework.IBaseData

Public Member Functions

override void SetData (DataObject data)
 Sets the variables of the class using a ORKFramework.DataObject. More...
 
IPortrait GetPortrait (int typeID)
 
string GetName ()
 
string GetShortName ()
 
string GetDescription ()
 
string GetIconTextCode (int treeID, int itemID)
 
Texture GetIcon ()
 
GUIContent GetContent ()
 
IContentSimple GetTypeContent ()
 
bool CanResearch (Combatant combatant)
 
bool CheckCosts (Combatant combatant)
 
bool CheckRequirements (Combatant combatant)
 
void ConsumeCosts (Combatant combatant, out bool[] consumed)
 
void RefundCosts (Combatant combatant, bool[] consumed)
 
string GetCostString (Combatant combatant)
 
virtual void GetCostPreview (Combatant combatant, StatusPreview preview)
 
virtual bool HasPreviewableCosts ()
 
bool StartResearch (Combatant combatant, out bool[] consumed)
 
void ResearchFinished (Combatant combatant)
 
- 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

ResearchItemType type = ResearchItemType.None
 
bool limitResearchTimes = true
 
int researchTimes = 1
 
ResearchItemDuration duration = ResearchItemDuration.None
 
FloatValue durationValue
 
bool cancelable = false
 
bool cancelRefundCosts = false
 
bool cancelKeepProgress = false
 
AbilityResearchItem ability
 
StatusValueResearchItem statusValue
 
ItemResearchItem item
 
NoneResearchItem none
 
OverrideLanguageContent overrideContent
 
TypeImagePortrait [] portrait = new TypeImagePortrait[0]
 
UserVariableOrigin finishVariableOrigin = UserVariableOrigin.Global
 
VariableSetter finishVariables = new VariableSetter()
 
Needed costsNeeded = Needed.All
 
LearnCost [] learnCost = new LearnCost[0]
 
SimpleCombatantRequirement learnRequirements = new SimpleCombatantRequirement()
 

Properties

int ID [get]
 
int TypeID [get]
 

Member Function Documentation

◆ SetData()

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

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

Parameters
dataORKFramework.DataObject containing the data.

Reimplemented from ORKFramework.BaseData.