ORK Framework  2.29.3
API Documentation
ORKFramework.ResearchHandler Class Reference
Inheritance diagram for ORKFramework.ResearchHandler:
ORKFramework.ISaveData

Public Member Functions

 ResearchHandler (Combatant owner)
 
void Clear ()
 
void FireChanged ()
 
void MarkDataChanged (bool fireChanged, bool fireStateChanged)
 
void CheckDataChanged ()
 
void Update (Combatant combatant)
 
void Tick (float time)
 
void UpdateDurations ()
 
void ResearchStarted (bool count)
 
void ResearchCanceled (bool count)
 
void ResearchFinished (bool count)
 
void RemoveInResearch (ResearchTree tree)
 
void AddType (int researchTypeID, bool checkParent, bool multiAdd, bool showNotification, bool showConsole)
 
void RemoveType (int researchTypeID, bool checkParent, bool removeAll, bool showNotification, bool showConsole)
 
bool HasNewTypes (bool checkParent, List< int > types)
 
bool IsNewType (bool checkParent, int typeID)
 
List< int > GetTypes (int parentType, bool researchable, bool notResearchableLimit, bool notResearchableCosts, bool notResearchableRequirements, bool inResearch, bool complete)
 
bool HasType (bool checkParent, int researchTypeID, bool researchable, bool notResearchableLimit, bool notResearchableCosts, bool notResearchableRequirements, bool inResearch, bool complete)
 
List< ResearchTreeGetTreesByType (int researchTypeID, bool checkParent)
 
List< ResearchTreeGetTreesByType (int researchTypeID, bool checkParent, bool researchable, bool notResearchableLimit, bool notResearchableCosts, bool notResearchableRequirements, bool inResearch, bool complete)
 
void GetTreesByType (int researchTypeID, bool checkParent, bool researchable, bool notResearchableLimit, bool notResearchableCosts, bool notResearchableRequirements, bool inResearch, bool complete, ref List< ResearchTree > list)
 
void AddTree (int researchTreeID, bool multiAdd, bool showNotification, bool showConsole)
 
void RemoveTree (int researchTreeID, bool removeAll, bool showNotification, bool showConsole)
 
void RemoveTree (ResearchTree researchTree, bool showNotification, bool showConsole)
 
List< ResearchTreeGetTree (int researchTreeID)
 
List< ResearchTreeGetAllTrees ()
 
bool HasTree (int researchTreeID)
 
bool IsTreeComplete (int researchTreeID)
 
bool CheckTreeState (int researchTreeID, ResearchTreeStateCheck check)
 
List< ResearchItemGetItem (int researchTreeID, int researchItem)
 
bool CheckItemState (int researchTreeID, int researchItem, ResearchItemState state)
 
bool CheckItemResearchCount (int researchTreeID, int researchItem, ValueCheck check)
 
List< ResearchItemGetItems (bool researchable, bool notResearchableLimit, bool notResearchableCosts, bool notResearchableRequirements, bool inResearch, bool complete)
 
void GetItems (ref List< ResearchItem > list, bool researchable, bool notResearchableLimit, bool notResearchableCosts, bool notResearchableRequirements, bool inResearch, bool complete)
 
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

Notify StateChanged
 
NotifyCombatant Changed
 
Combatant Owner [get]
 
bool HasResearch [get]
 
int InResearch [get]
 

Member Function Documentation

◆ LoadGame()

void ORKFramework.ResearchHandler.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.ResearchHandler.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.