ORK Framework  2.34.0
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...
 
override void EditorAutoSetup (string fieldName)
 Called for all fields using the autoSetup option of the ORKFramework.ORKEditorLayoutAttribute. More...
 
string GetItemQuantityText ()
 
string GetName ()
 
string GetShortName ()
 
string GetDescription ()
 
string GetIconTextCode (int treeID, int itemID)
 
Texture GetIcon ()
 
GUIContent GetContent ()
 
IContentSimple GetTypeContent ()
 
IPortrait GetPortrait (int typeID)
 
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, ORKGameEvent eventAsset)
 
- Public Member Functions inherited from ORKFramework.BaseData
virtual DataObject GetData ()
 Gets a ORKFramework.DataObject representing the class. More...
 

Public Attributes

string type = ""
 
bool limitResearchTimes = true
 
int researchTimes = 1
 
ResearchItemDuration duration = ResearchItemDuration.None
 
FloatValue durationValue
 
bool cancelable = false
 
bool cancelRefundCosts = false
 
bool cancelKeepProgress = false
 
bool ownEvents = false
 
ResearchEventSettings eventSettings
 
BaseResearchItem settings = new NoneResearchItem()
 
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

bool? IsResearchTimeLimited [get]
 
int?? ResearchTimes [get]
 
int ID [get]
 
int TypeID [get]
 

Member Function Documentation

◆ EditorAutoSetup()

override void ORKFramework.ResearchItemSetting.EditorAutoSetup ( string  fieldName)
virtual

Called for all fields using the autoSetup option of the ORKFramework.ORKEditorLayoutAttribute.

Parameters
fieldNameThe name of the field the function is called for.

Reimplemented from ORKFramework.BaseData.

◆ 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.