Corgi Engine  v9.1
MoreMountains.CorgiEngine.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.CorgiEngine.InventoryEngineChest:
MoreMountains.CorgiEngine.CorgiMonoBehaviour

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.CorgiEngine.InventoryEngineChest.OpenChest ( )
virtual

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

◆ PickChestContents()

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

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

◆ Start()

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

On start we grab our animator and list of item pickers

◆ TriggerOpeningAnimation()

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

Triggers the opening animation.

Member Data Documentation

◆ _animator

Animator MoreMountains.CorgiEngine.InventoryEngineChest._animator
protected

◆ _itemPickerList

ItemPicker [] MoreMountains.CorgiEngine.InventoryEngineChest._itemPickerList
protected

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