Module shop

A shop

Functions

new (name) Creates a new shop.
add_frame (id, frame) Adds a frame to a shops animation.
add_item (id, item_kind, item_id, cost_kind, cost) Adds an item to a shop.
clear_items (id) Clears the items in a shop.


Functions

Methods
new (name)
Creates a new shop.

Parameters:

  • name string The name of the new shop

Returns:

    integer The id of the new shop
add_frame (id, frame)
Adds a frame to a shops animation.

Parameters:

  • id integer The id of the shop to add to
  • frame integer The id of the sprite to add
add_item (id, item_kind, item_id, cost_kind, cost)
Adds an item to a shop.

Parameters:

  • id integer The id of the shop to add to
  • item_kind integer The kind of item to add
  • item_id integer The id of the item to add
  • cost_kind integer The currency of the cost
  • cost integer The cost of the item to add

See also:

clear_items (id)
Clears the items in a shop.

Parameters:

  • id integer The id of the shop to clear
generated by LDoc 1.5.0 Last updated 2024-05-23 11:40:37