Skip to content
This repository has been archived by the owner on Aug 14, 2019. It is now read-only.

PlayerInventory.cs

Erik edited this page Apr 23, 2019 · 2 revisions
Dependencies:
PublicMethods:
  • AddItemToInventory(ItemInstance item) - Adds the item to the player's inventory.
  • TODO: Update the individual Item Equipment methods to be instance type specific.
Public Events:
  • OnItemEquipped - Triggers when an item is equipped or unequipped
Public Fields:
  • items - Player's current inventory of unequipped items
  • weapon - Currently equipped weapon
General Overview:

Tracks the player's current inventory and what is currently equipped. Works with any implementation of the Item abstract.

Clone this wiki locally