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 name
string Name of storage object -
idx
-
- Source:
Properties:
Name Type Description idx
number Index in list of StorageContainer's storage objects. -
capacity
-
- Source:
Properties:
Name Type Description capacity
number Capacity of storage object -
price
-
- Source:
Properties:
Name Type Description price
number Price of storage object -
prev
-
- Source:
Properties:
Name Type Description prev
string | undefined Name of Storage object preceding this object in list of StorageContainer's storage objects. -
name
-
- Source:
Properties:
Name Type Description name
string Name of storage object -
idx
-
- Source:
Properties:
Name Type Description idx
number Index in list of StorageContainer's storage objects. -
capacity
-
- Source:
Properties:
Name Type Description capacity
number Capacity of storage object -
price
-
- Source:
Properties:
Name Type Description price
number Price of storage object -
prev
-
- Source:
Properties:
Name Type Description prev
string | undefined Name of Storage object preceding this object in list of StorageContainer's storage objects.