ORK Framework  2.22.0
API Documentation
ORKFramework.GameStatistic Class Reference
Inheritance diagram for ORKFramework.GameStatistic:
ORKFramework.BaseData ORKFramework.ISaveData ORKFramework.IBaseData

Public Member Functions

void Clear ()
 
void Clear (StatisticType type, int index)
 
int Get (StatisticType type, int index)
 
void GetStatisticText (ref string text)
 
void EnemyKilled (int id)
 
int GetKilledEnemies ()
 
int GetKilledEnemy (int id)
 
void ItemUsed (int id)
 
int GetUsedItems ()
 
int GetUsedItem (int id)
 
void ItemCreated (int id, int quantity, ItemDropType type)
 
int GetCreatedItems ()
 
int GetCreatedItem (int id)
 
int GetCreatedWeapon (int id)
 
int GetCreatedArmor (int id)
 
int GetCreatedAIBehaviour (int id)
 
int GetCreatedAIRuleset (int id)
 
int GetCreatedCraftingRecipes (int id)
 
void BattleStarted ()
 
void BattleWon ()
 
void BattleLost ()
 
void BattleEscaped ()
 
int GetBattles ()
 
int GetWonBattles ()
 
int GetLostBattles ()
 
int GetEscapedBattles ()
 
void CustomChanged (int index, int add)
 
int GetCustom (int index)
 
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...
 
- Public Member Functions inherited from ORKFramework.BaseData
virtual DataObject GetData ()
 Gets a ORKFramework.DataObject representing the class. More...
 
virtual void SetData (DataObject data)
 Sets the variables of the class using a ORKFramework.DataObject. More...
 
virtual void EditorAutoSetup (string fieldName)
 Called for all fields using the autoSetup option of the ORKFramework.ORKEditorLayoutAttribute. More...
 

Public Attributes

bool logKilledEnemies = false
 
bool logSingleEnemies = false
 
bool logUsedItems = false
 
bool logSingleItems = false
 
bool logCreatedItems = false
 
bool logSingleCreated = false
 
bool logBattles = false
 
bool logWonBattles = false
 
bool logLostBattles = false
 
bool logEscapedBattles = false
 
bool logCustom = false
 

Member Function Documentation

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

DataObject ORKFramework.GameStatistic.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.