ORK Framework  2.22.0
API Documentation
ORKFramework.Item Class Reference
Inheritance diagram for ORKFramework.Item:
ORKFramework.BaseLanguageData ORKFramework.IContent ORKFramework.BaseIndexData ORKFramework.IContentSimple ORKFramework.BaseData ORKFramework.IBaseData

Public Member Functions

 Item (string name)
 
override void SetData (DataObject data)
 Sets the variables of the class using a ORKFramework.DataObject. More...
 
bool IsUseable (UseableIn useIn)
 
bool InRange (Combatant user, Combatant target)
 
bool InRange (Combatant user, BattleGridCellComponent target)
 
GameObject GetPrefabInstance ()
 
void SetReuseAfter (Combatant user, SelectedDataHandler selectedData)
 
void Use (ItemShortcut item, Combatant user, List< Combatant > target, bool animate, bool doConsume, VariableHandler localVariables, SelectedDataHandler selectedData)
 
void Use (ItemShortcut item, Combatant user, List< Combatant > target, bool animate, bool doConsume, BaseAction action, float damageFactor, float damageMultiplier, VariableHandler localVariables, SelectedDataHandler selectedData)
 
void Consume (Combatant user, ItemShortcut item)
 
IContentSimple GetTypeContent ()
 
string GetName ()
 
string GetDescription ()
 
string GetIconTextCode ()
 
Texture GetIcon ()
 
GUIContent GetContent ()
 
string GetInfo (Combatant c)
 
IPortrait GetPortrait (int typeID)
 
- Public Member Functions inherited from ORKFramework.BaseLanguageData
 BaseLanguageData (string name)
 
- 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

int itemType = 0
 
bool ownDamageType = false
 
int damageTypeID = 0
 
bool hidden = false
 
GameObject prefab
 
Vector3 spawnOffset = Vector3.zero
 
bool dropable = false
 
bool stealable = false
 
float sympathyChange = 0
 
float inventorySpace = 1
 
bool inventorySpacePerStack = false
 
bool ownLimitQuantity = false
 
bool limitQuantity = false
 
int quantityLimit = 99
 
bool ownStackLimitQuantity = false
 
bool limitStackQuantity = false
 
int stackQuantityLimit = 99
 
bool overrideInventoryAddType = false
 
InventoryAddType inventoryAddType = InventoryAddType.Add
 
PriceSettings price = new PriceSettings()
 
UseableIn useableIn = UseableIn.Both
 
bool consume = true
 
bool allowDeadUser = false
 
bool consumeShowNotification = true
 
bool consumeShowConsole = true
 
bool revive = false
 
bool scanTarget = false
 
bool scanIgnoreNotScanable = false
 
bool scanIgnoreNoEntry = false
 
bool ownSelection = false
 
bool useScreenCombatant = false
 
int selectionID = 0
 
ItemAbilityType itemAbility = ItemAbilityType.None
 
int learnAbilityID = 0
 
bool isGroupAbility = false
 
int useAbilityID = 0
 
AbilityActionType actionType = AbilityActionType.Ability
 
int abilityLevel = 1
 
bool abilityShowNotification = true
 
bool abilityShowConsole = true
 
VariableSetter variables = new VariableSetter()
 
bool addItems = false
 
bool addRandomItem = false
 
bool itemsShowNotification = true
 
bool itemsShowConsole = true
 
ItemGain[] items = new ItemGain[0]
 
bool learnRecipe = false
 
int recipeID = 0
 
int recipeQuantity = 1
 
bool recipeShowNotification = true
 
bool recipeShowConsole = true
 
bool learnLog = false
 
bool completeLog = false
 
int logTextID = 0
 
int logID = 0
 
bool logShowConsole = true
 
bool ownTurnActionCost = false
 
ActionCost turnActionCostSetting
 
bool ownPhaseActionCost = false
 
ActionCost phaseActionCostSetting
 
bool ownCastTime = false
 
CastTimeSettings castTime
 
EndAfter reuseType = EndAfter.None
 
UseBlockScope reuseScope = UseBlockScope.Single
 
FloatValue reuseAfter
 
bool ownDelay = false
 
bool useDelay = false
 
FloatValue delayTime
 
bool callGlobalEvent = false
 
int globalEventID = 0
 
bool changeClass = false
 
ClassChange classChange = new ClassChange()
 
bool setRandomBattleFactor = false
 
float randomBattleFactor = 0
 
float randomBattleFactorTime = 60
 
bool removeTurnOrder = false
 
int orderChange = 0
 
bool changeTimebar = false
 
FormulaOperator timebarChangeOperator = FormulaOperator.Add
 
FloatValue timebarChange
 
Rounding timebarChangeRounding = Rounding.None
 
bool changeActionsPerTurn = false
 
bool changeUsedActionsPerTurn = false
 
FormulaOperator actionsPerTurnChangeOperator = FormulaOperator.Add
 
FloatValue actionsPerTurnChange
 
Rounding actionsPerTurnChangeRounding = Rounding.None
 
EquipmentPartChange[] equipmentPartChange = new EquipmentPartChange[0]
 
BattleAnimationSetting battleAnimation = new BattleAnimationSetting()
 
string[] activationTags = new string[0]
 
DamageDealerActivation ddActivation = new DamageDealerActivation()
 
bool useRequirements = false
 
SimpleCombatantRequirement requirement
 
TargetSettings targetSettings = new TargetSettings()
 
StatusChange userChange = new StatusChange()
 
StatusChange targetChange = new StatusChange()
 
bool variableSave = true
 
bool variableUseWhenLoading = true
 
bool useVariableDescription = false
 
VariableSetter variableChanges = new VariableSetter()
 
bool ownBattleInfoText = false
 
BattleInfo battleInfoText
 
bool ownNotifications = false
 
InventoryNotification addedNotification
 
InventoryNotification removedNotification
 
bool ownConsoleAddAction = false
 
ConsoleTextActionPreview consoleAddAction
 
bool ownConsoleAction = false
 
ConsoleTextActionPreview consoleAction
 
bool ownConsoleCast = false
 
ConsoleTextActionPreview consoleCast
 
bool ownConsoleCastCancel = false
 
ConsoleTextActionPreview consoleCastCancel
 
bool ownConsoleAdd = false
 
ConsoleTextInventory consoleAdd
 
bool ownConsoleRemove = false
 
ConsoleTextInventory consoleRemove
 
TypePrefabViewPortrait[] portrait = new TypePrefabViewPortrait[0]
 
- Public Attributes inherited from ORKFramework.BaseLanguageData
LanguageInfo[] languageInfo
 

Properties

int QuantityLimit [get]
 
int StackLimit [get]
 
int ID [get]
 
int TypeID [get]
 
- Properties inherited from ORKFramework.BaseIndexData
virtual int RealID [get, set]
 
- Properties inherited from ORKFramework.IContent
int TypeID [get]
 
- Properties inherited from ORKFramework.IContentSimple
int ID [get]
 

Additional Inherited Members

- Protected Attributes inherited from ORKFramework.BaseIndexData
int realID = 0
 

Member Function Documentation

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

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

Parameters
dataORKFramework.DataObject containing the data.

Reimplemented from ORKFramework.BaseData.