Prototype/LinkedContainer: Difference between revisions
(1.1.51: Prototype/EntityWithOwner added) |
(1.1.62: inventory_type added) |
||
Line 13: | Line 13: | ||
{{Prototype property|picture|[[Types/Sprite|Sprite]]|optional=true}} | {{Prototype property|picture|[[Types/Sprite|Sprite]]|optional=true}} | ||
{{Prototype property|inventory_type|[[Types/string|string]]|"with_bar"|optional=true}} | |||
One of "with_bar" and "with_filters_and_bar". Whether the inventory of this container can be filtered (like cargo wagons) or not. | |||
{{Prototype property|gui_mode|[[Types/string|string]]|all|optional=true}} | {{Prototype property|gui_mode|[[Types/string|string]]|all|optional=true}} |
Revision as of 10:28, 12 August 2022
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/LinkedContainer
A container that shares its inventory with containers with the same link_id, which can be set via the GUI. The link IDs are per prototype and force, so only containers with the same ID, same prototype name and same force will share inventories.
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithOwner.
inventory_size
Type: ItemStackIndex
Must be > 0.
Optional properties
picture
Type: Sprite
inventory_type
Type: string
Default: "with_bar"
One of "with_bar" and "with_filters_and_bar". Whether the inventory of this container can be filtered (like cargo wagons) or not.
gui_mode
Type: string
Default: all
Players that can access the GUI to change the link ID. Possible options: "all", "none", "admins".
scale_info_icons
Type: bool
Default: false