ORK Framework  2.31.0
API Documentation
ORKFramework.CustomLootShortcut Class Reference
Inheritance diagram for ORKFramework.CustomLootShortcut:
ORKFramework.IShortcut ORKFramework.IContent ORKFramework.ISaveData ORKFramework.CoreIShortcut ORKFramework.IPreviewable ORKFramework.IPortraitContent ORKFramework.IContentSimple ORKFramework.IContent ORKFramework.IContentSimple

Public Member Functions

 CustomLootShortcut (CustomLootSettings settings, int quantity)
 
string FormatQuantity (int quantity)
 
int BuyPrice (Combatant user)
 
int SellPrice (Combatant user)
 
bool CanTarget (Combatant user, Combatant target)
 
bool CanUse (Combatant combatant, bool checkTime, bool checkUseCosts)
 
GUIContent GetContent ()
 
IShortcut GetCopy (int quantity)
 
string GetDescription ()
 
ShortcutHUDWrapper GetDrag (Combatant user)
 
Texture GetIcon ()
 
string GetIconTextCode ()
 
string GetInfo (Combatant c)
 
string GetName ()
 
IPortrait GetPortrait (int typeID)
 
List< CombatantGetPossibleTargets (Combatant user, List< Combatant > available)
 
StatusPreview GetPreview (Combatant combatant, PreviewSelection selectedPreview)
 
string GetShortName ()
 
IContentSimple GetTypeContent ()
 
bool IsDropable ()
 
bool IsEqual (IShortcut shortcut)
 
bool IsUseable (UseableIn useIn)
 
void LoadGame (DataObject data)
 Used to load the data - you need to get the data from the ORKFramework.DataObject. More...
 
DataObject SaveGame ()
 Used to save the data - you need to add the data to a ORKFramework.DataObject. More...
 
bool Use (Combatant user, List< Combatant > targets, bool useAction)
 

Properties

int Quantity [get, set]
 
string QuantityFormatted [get]
 
int TypeID [get]
 
int ID [get]
 
- Properties inherited from ORKFramework.IShortcut
int Quantity [get, set]
 
string QuantityFormatted [get]
 
- Properties inherited from ORKFramework.IContent
int TypeID [get]
 
- Properties inherited from ORKFramework.IContentSimple
int ID [get]
 

Member Function Documentation

◆ LoadGame()

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

◆ SaveGame()

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