ORK Framework  2.25.2
API Documentation
ORKFramework.ItemGain Class Reference
Inheritance diagram for ORKFramework.ItemGain:
ORKFramework.BaseData ORKFramework.IBaseData

Public Member Functions

ItemGain GetCopy ()
 
string GetName ()
 
string GetDescription ()
 
string GetIconTextCode ()
 
IShortcut CreateShortcut ()
 
bool IsItem ()
 
bool IsWeapon ()
 
bool IsArmor ()
 
bool IsCurrency ()
 
bool IsAIBehaviour ()
 
bool IsAIRuleset ()
 
bool IsCraftingRecipe ()
 
bool CheckChance ()
 
bool IsEqual (ItemGain item)
 
bool CheckDropInteract (IShortcut shortcut)
 
void Drop (bool useChance, Vector3 position, Vector3 rotation)
 
bool Add (Inventory inventory, bool useChance, bool showNotification, bool showConsole)
 
bool Remove (Inventory inventory, bool useChance, bool showNotification, bool showConsole)
 
bool Has (Inventory inventory)
 
void GetFromInventory (Inventory inventory, bool useChance, ref List< IShortcut > list)
 
- Public Member Functions inherited from ORKFramework.BaseData
virtual DataObject GetData ()
 Gets a ORKFramework.DataObject representing the class. More...
 
virtual void SetData (DataObject data)
 Sets the variables of the class using a ORKFramework.DataObject. More...
 
virtual void EditorAutoSetup (string fieldName)
 Called for all fields using the autoSetup option of the ORKFramework.ORKEditorLayoutAttribute. More...
 

Public Attributes

ItemDropType type = ItemDropType.Item
 
int id = 0
 
int level = 1
 
int quantity = 1
 
float chance = 100