WeAreQuantumHall / InventorySystem

0 stars 0 forks source link

Join up Item and Inventory events #16

Open WeAreQuantumHall opened 1 year ago

WeAreQuantumHall commented 1 year ago

Once #14 and #15 are completed then they can be joined up so that the inventory listens to the items and is responsible for raising the events.

WeAreQuantumHall commented 1 year ago

Based on the comments on #14 this will be done via delegates, with events on items only raised if the item is being listened to directly.

Each item method will now take a boolean to declare if an event should be raised.

The inventory can then raise events for those changes