ORK Framework  2.29.3
API Documentation
ORKFramework.ResearchTree Class Reference
Inheritance diagram for ORKFramework.ResearchTree:
ORKFramework.ISaveData ORKFramework.IContent ORKFramework.IMarkNewContent ORKFramework.IContentSimple

Public Member Functions

 ResearchTree (ResearchHandler handler, int researchTreeID)
 
 ResearchTree (ResearchHandler handler, DataObject data)
 
void Init (int researchTreeID)
 
ResearchItem GetItem (int index)
 
List< ResearchItemGetItems ()
 
void GetItems (ref List< ResearchItem > list, bool researchable, bool notResearchableLimit, bool notResearchableCosts, bool notResearchableRequirements, bool inResearch, bool complete)
 
string GetName ()
 
string GetShortName ()
 
string GetDescription ()
 
string GetIconTextCode ()
 
Texture GetIcon ()
 
GUIContent GetContent ()
 
IContentSimple GetTypeContent ()
 
string GetInfo (Combatant c)
 
bool CanResearch ()
 
bool ContainsItemState (bool researchable, bool notResearchableLimit, bool notResearchableCosts, bool notResearchableRequirements, bool inResearch, bool complete)
 
void ResearchStarted (bool count)
 
void ResearchCanceled (bool count)
 
void ResearchFinished (bool count)
 
void CheckComplete ()
 
void UpdateDuration ()
 
void ManualProgress (float add)
 
void TimeProgress (float add)
 
void Progress (float add)
 
void ResetProgress ()
 
void ResetManualProgress ()
 
void ResetTimeProgress ()
 
void UnmarkID (int id)
 
void MarkAllItemsNew ()
 
DataObject SaveGame ()
 Used to save the data - you need to add the data to a ORKFramework.DataObject. More...
 
void LoadGame (DataObject data)
 Used to load the data - you need to get the data from the ORKFramework.DataObject. More...
 

Properties

ResearchTreeSetting Setting [get]
 
ResearchHandler Handler [get]
 
bool IsComplete [get]
 
int InResearch [get]
 
int ItemCount [get]
 
int ID [get]
 
int TypeID [get]
 
bool IsNewContent [get, set]
 
- Properties inherited from ORKFramework.IContent
int TypeID [get]
 
- Properties inherited from ORKFramework.IContentSimple
int ID [get]
 
- Properties inherited from ORKFramework.IMarkNewContent
bool IsNewContent [get, set]
 

Member Function Documentation

◆ LoadGame()

void ORKFramework.ResearchTree.LoadGame ( DataObject  data)

Used to load the data - you need to get the data from the ORKFramework.DataObject.

Parameters
dataA ORKFramework.DataObject containing the data.

Implements ORKFramework.ISaveData.

◆ SaveGame()

DataObject ORKFramework.ResearchTree.SaveGame ( )

Used to save the data - you need to add the data to a ORKFramework.DataObject.

Returns
A ORKFramework.DataObject containing the data.

Implements ORKFramework.ISaveData.