Backpack

From LoTROInterface Wiki

(Difference between revisions)
Jump to: navigation, search
Line 8: Line 8:
==Methods==
==Methods==
{| {{API_Header}}
{| {{API_Header}}
-
{{API_Row|[[GetItem]]|Gets an item from the player's backpack.}}
+
{{API_Row|[[GetItem_(Backpack)|GetItem]]|Gets an item from the player's backpack.}}
-
{{API_Row|[[GetSize]]|Gets the size of the player's backpack.}}
+
{{API_Row|[[GetSize_(Backpack)|GetSize]]|Gets the size of the player's backpack.}}
{{API_Row|[[PerformItemDrop]]|Function to handle moving or swapping an item in our inventory. This DOES NOT handle dragging items from any of the character banks or housing hooks. For that functionality please use [[PerformShortcutDrop]].}}
{{API_Row|[[PerformItemDrop]]|Function to handle moving or swapping an item in our inventory. This DOES NOT handle dragging items from any of the character banks or housing hooks. For that functionality please use [[PerformShortcutDrop]].}}
{{API_Row|[[PerformShortcutDrop]]|Function to handle dropping any kind of item into the backpack. If the item is already in the backpack or is coming from a housing hook, it will perform a swap with anything at the destination index.}}
{{API_Row|[[PerformShortcutDrop]]|Function to handle dropping any kind of item into the backpack. If the item is already in the backpack or is coming from a housing hook, it will perform a swap with anything at the destination index.}}

Revision as of 10:13, 24 September 2010


Provides access to a player's backpack.


Methods

Name Description
GetItem Gets an item from the player's backpack.
GetSize Gets the size of the player's backpack.
PerformItemDrop Function to handle moving or swapping an item in our inventory. This DOES NOT handle dragging items from any of the character banks or housing hooks. For that functionality please use PerformShortcutDrop.
PerformShortcutDrop Function to handle dropping any kind of item into the backpack. If the item is already in the backpack or is coming from a housing hook, it will perform a swap with anything at the destination index.


Events

Name Description
ItemAdded Event fired when an item is added to the backpack.
ItemMoved Event fired when an item is moved in the backpack.
ItemRemoved Event fired when an item is removed from the backpack.
SizeChanged Event fired when the size of the backpack has changed.


Remarks

The backpack holds all the items that a player is carrying. This class can be used to get the size of the backpack and to access any specific item contained within.


Inheritance Hierarchy

Turbine.Object

Turbine.Gameplay.Backpack
Personal tools