new Storage(name, idx, prev)
Instantiate a Storage object
Parameters:
| Name | Type | Description |
|---|---|---|
name |
string | Name of storage object. |
idx |
number | Index in list of StorageContainer's storage objects. |
prev |
string | undefined | Name of Storage object preceding this object in list of StorageContainer's storage objects. |
- Source:
Members
-
name
-
- Source:
Properties:
Name Type Description namestring Name of storage object -
idx
-
- Source:
Properties:
Name Type Description idxnumber Index in list of StorageContainer's storage objects. -
capacity
-
- Source:
Properties:
Name Type Description capacitynumber Capacity of storage object -
price
-
- Source:
Properties:
Name Type Description pricenumber Price of storage object -
prev
-
- Source:
Properties:
Name Type Description prevstring | undefined Name of Storage object preceding this object in list of StorageContainer's storage objects. -
name
-
- Source:
Properties:
Name Type Description namestring Name of storage object -
idx
-
- Source:
Properties:
Name Type Description idxnumber Index in list of StorageContainer's storage objects. -
capacity
-
- Source:
Properties:
Name Type Description capacitynumber Capacity of storage object -
price
-
- Source:
Properties:
Name Type Description pricenumber Price of storage object -
prev
-
- Source:
Properties:
Name Type Description prevstring | undefined Name of Storage object preceding this object in list of StorageContainer's storage objects.