TopDown Engine  v3.6
MoreMountains.TopDownEngine.InventoryEngineChest Class Reference

Add this component to an object in your scene to have it act like a chest. You'll need a key operated zone to open it, and item picker(s) on it to fill its contents More...

Inheritance diagram for MoreMountains.TopDownEngine.InventoryEngineChest:
MoreMountains.TopDownEngine.TopDownMonoBehaviour MoreMountains.Tools.MMMonoBehaviour

Public Member Functions

virtual void OpenChest ()
 A public method to open the chest, usually called by the associated key operated zone More...
 

Protected Member Functions

virtual void Start ()
 On start we grab our animator and list of item pickers More...
 
virtual void TriggerOpeningAnimation ()
 Triggers the opening animation. More...
 
virtual void PickChestContents ()
 Puts all the items in the associated pickers into the player's inventories More...
 

Protected Attributes

Animator _animator
 
ItemPicker[] _itemPickerList
 

Detailed Description

Add this component to an object in your scene to have it act like a chest. You'll need a key operated zone to open it, and item picker(s) on it to fill its contents

Member Function Documentation

◆ OpenChest()

virtual void MoreMountains.TopDownEngine.InventoryEngineChest.OpenChest ( )
virtual

A public method to open the chest, usually called by the associated key operated zone

◆ PickChestContents()

virtual void MoreMountains.TopDownEngine.InventoryEngineChest.PickChestContents ( )
protectedvirtual

Puts all the items in the associated pickers into the player's inventories

◆ Start()

virtual void MoreMountains.TopDownEngine.InventoryEngineChest.Start ( )
protectedvirtual

On start we grab our animator and list of item pickers

◆ TriggerOpeningAnimation()

virtual void MoreMountains.TopDownEngine.InventoryEngineChest.TriggerOpeningAnimation ( )
protectedvirtual

Triggers the opening animation.

Member Data Documentation

◆ _animator

Animator MoreMountains.TopDownEngine.InventoryEngineChest._animator
protected

◆ _itemPickerList

ItemPicker [] MoreMountains.TopDownEngine.InventoryEngineChest._itemPickerList
protected

The documentation for this class was generated from the following file: