ESCInventoryManager

Extends: Object

Description

A manager for inventory objects

Method Descriptions

inventory_has

func inventory_has(item: String) -> bool

Check if the player has an inventory item

Parameters

  • item: Inventory item id Returns Whether the player has the inventory

items_in_inventory

func items_in_inventory() -> Array

Get all inventory items Returns The items in the inventory

remove_item

func remove_item(item: String)

Remove an item from the inventory

Parameters

  • item: Inventory item id

add_item

func add_item(item: String)

Add an item to the inventory

Parameters

  • item: Inventory item id