new ShopItem(id, name, price, image)
Creates an instance of ShopItem.
Parameters:
| Name | Type | Description |
|---|---|---|
id |
number | Unique item identifier. |
name |
string | The name of the item. |
price |
number | The price of the item. |
image |
string | Path to the item's image. |
- Source: