ORK Framework  2.29.0
API Documentation
ORKFramework.Events.EventItemGain Class Reference
Inheritance diagram for ORKFramework.Events.EventItemGain:
ORKFramework.BaseData ORKFramework.IBaseData

Public Member Functions

override void SetData (DataObject data)
 Sets the variables of the class using a ORKFramework.DataObject. More...
 
string GetName ()
 
string GetShortName ()
 
bool IsItem ()
 
bool IsWeapon ()
 
bool IsArmor ()
 
bool IsCurrency ()
 
bool IsAIBehaviour ()
 
bool IsAIRuleset ()
 
bool IsCraftingRecipe ()
 
bool CheckChance (BaseEvent baseEvent)
 
IShortcut CreateShortcut (BaseEvent baseEvent)
 
void Drop (BaseEvent baseEvent, bool useChance, Vector3 position, Vector3 rotation, float despawnTime)
 
bool Add (BaseEvent baseEvent, Inventory inventory, bool useChance, bool showNotification, bool showConsole)
 
bool Remove (BaseEvent baseEvent, Inventory inventory, bool useChance, bool showNotification, bool showConsole)
 
bool Drop (BaseEvent baseEvent, Inventory inventory, bool useChance, bool showNotification, bool showConsole)
 
bool Has (BaseEvent baseEvent, Inventory inventory)
 
void GetFromInventory (BaseEvent baseEvent, Inventory inventory, bool useChance, ref List< IShortcut > list)
 
string GetInfoText ()
 
void GetInfoText (StringBuilder builder)
 
- 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

ItemDropType type = ItemDropType.Item
 
int id = 0
 
int level = 1
 
EventInteger quantityValue = new EventInteger(1)
 
EventFloat chanceValue = new EventFloat(100)
 
int next = -1
 

Member Function Documentation

◆ SetData()

override void ORKFramework.Events.EventItemGain.SetData ( DataObject  data)
virtual

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

Parameters
dataORKFramework.DataObject containing the data.

Reimplemented from ORKFramework.BaseData.