ORK Framework  2.28.0
API Documentation
ORKFramework.Shop.ShopBaseItem Class Reference
Inheritance diagram for ORKFramework.Shop.ShopBaseItem:
ORKFramework.BaseData ORKFramework.IBaseData ORKFramework.Shop.ShopAbility ORKFramework.Shop.ShopAIBehaviour ORKFramework.Shop.ShopAIRuleset ORKFramework.Shop.ShopArmor ORKFramework.Shop.ShopCombatant ORKFramework.Shop.ShopCraftingRecipe ORKFramework.Shop.ShopItem ORKFramework.Shop.ShopWeapon

Public Member Functions

override void SetData (DataObject data)
 Sets the variables of the class using a ORKFramework.DataObject. More...
 
bool CanSell ()
 
virtual void AddShortcut (ref List< ShopWrapperShortcut > list)
 
- 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

float chance = 100
 
bool limitQuantity = false
 
FloatValue quantityValue = new FloatValue(1)
 
bool overridePrice = false
 
FloatValue priceValue = new FloatValue(0)
 
bool useVariableConditions = false
 
VariableCondition variableCondition
 

Member Function Documentation

◆ SetData()

override void ORKFramework.Shop.ShopBaseItem.SetData ( DataObject  data)
virtual

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

Parameters
dataORKFramework.DataObject containing the data.

Reimplemented from ORKFramework.BaseData.