ORK Framework  2.24.0
API Documentation
ORKFramework.AttributeValues Class Referenceabstract
Inheritance diagram for ORKFramework.AttributeValues:
ORKFramework.ISaveData ORKFramework.AttackAttribute ORKFramework.DefenceAttribute

Public Member Functions

void CheckLength (int length)
 
float GetMinValue ()
 
float GetMaxValue ()
 
float GetValue (int index)
 
float[] GetValues ()
 
float GetBaseValue (int index)
 
float[] GetBaseValues ()
 
abstract float GetPreviewValue (int index)
 
abstract float[] GetPreviewValues ()
 
abstract float GetStartValue (int index)
 
float GetTypeValue (int index, AttributeGetValue getType)
 
void SetValue (int index, float val)
 
void AddValue (int index, float add)
 
void ResetValues (float[] bonus)
 
void SetBaseValue (int index, float val)
 
void AddBaseValue (int index, float add)
 
virtual DataObject SaveGame ()
 Used to save the data - you need to add the data to a ORKFramework.DataObject. More...
 
virtual void LoadGame (DataObject data)
 Used to load the data - you need to get the data from the ORKFramework.DataObject. More...
 

Protected Attributes

Combatant owner
 
int realID = -1
 
float[] baseValue = new float[0]
 
float[] currentValue = new float[0]
 
float[] lastCurrentValue = new float[0]
 
float minValue = -500
 
float maxValue = 500
 

Properties

AttributeChanged Changed
 
int Count [get]
 

Member Function Documentation

virtual void ORKFramework.AttributeValues.LoadGame ( DataObject  data)
virtual

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.

Reimplemented in ORKFramework.AttackAttribute, and ORKFramework.DefenceAttribute.

virtual DataObject ORKFramework.AttributeValues.SaveGame ( )
virtual

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.