Constructor


TreasureChest(x: any, y: any, properties: any)

Arguments:

x: any
y: any
properties: any




Methods




TreasureChest:onAdd(parent: any)

Arguments:

parent: any


TreasureChest:onInteract(player: any, dir: any)

Arguments:

player: any
dir: any

Returns:

1: boolean



Fields



Undocumented













TreasureChest.sprite: Sprite

A simple object that renders a texture.
This texture must be placed inside assets/sprites/.