ORK Framework  2.27.1
API Documentation
ORKFramework.PriceSettings Class Reference
Inheritance diagram for ORKFramework.PriceSettings:
ORKFramework.BaseData ORKFramework.IBaseData

Public Member Functions

override void SetData (DataObject data)
 Sets the variables of the class using a ORKFramework.DataObject. More...
 
int GetBuyPrice (Combatant user, VariableHandler localVariables, SelectedDataHandler selectedData)
 
int GetSellPrice (Combatant user, VariableHandler localVariables, SelectedDataHandler selectedData)
 
- Public Member Functions inherited from ORKFramework.BaseData
virtual DataObject GetData ()
 Gets a ORKFramework.DataObject representing the class. More...
 
virtual void EditorAutoSetup (string fieldName)
 Called for all fields using the autoSetup option of the ORKFramework.ORKEditorLayoutAttribute. More...
 

Public Attributes

FloatValue buyPriceValue = new FloatValue(50)
 
bool sellable = false
 
FloatValue sellPriceValue = new FloatValue(50)
 
ValueSetter sellSetter = ValueSetter.Percent
 
Rounding rounding = Rounding.Round
 

Member Function Documentation

◆ SetData()

override void ORKFramework.PriceSettings.SetData ( DataObject  data)
virtual

Sets the variables of the class using a ORKFramework.DataObject.

Parameters
dataORKFramework.DataObject containing the data.

Reimplemented from ORKFramework.BaseData.