Prototype/Container: Difference between revisions
(Set prototype parent) |
(Converted to SMW format) |
||
Line 1: | Line 1: | ||
{{Prototype parent|Prototype/EntityWithHealth}} | {{Prototype parent|Prototype/EntityWithHealth}} | ||
A generic container, such as a chest. Can not be rotated. | |||
{{Prototype TOC|container}} | |||
Prototype | |||
== Extensions == | == Extensions == | ||
Line 13: | Line 11: | ||
This prototype inherits all the properties from [[Prototype/EntityWithHealth]]. | This prototype inherits all the properties from [[Prototype/EntityWithHealth]]. | ||
{{Prototype property|inventory_size|[[Types/uint16|uint16]]}} | |||
The number of slots in this container. | The number of slots in this container. | ||
{{Prototype property|picture|[[Types/Sprite|Sprite]]}} | |||
The picture displayed for this entity. | The picture displayed for this entity. | ||
== Optional properties == | == Optional properties == | ||
{{Prototype property|enable_inventory_bar|[[Types/bool|bool]]|true|optional=true}} | |||
If the red inventory limiter bar is enabled. | If the red inventory limiter bar is enabled. | ||
{{Prototype property|scale_info_icons|[[Types/bool|bool]]|false|optional=true}} | |||
If the icons of items shown in alt-mode should be scaled to the containers size. | If the icons of items shown in alt-mode should be scaled to the containers size. | ||
{{Prototype property|circuit_wire_connection_point|[[Types/WireConnectionPoint|WireConnectionPoint]]|optional=true}} | |||
Defines how wires visually connect to this container. | Defines how wires visually connect to this container. | ||
{{Prototype property|circuit_wire_max_distance|[[Types/double|double]]|0|optional=true}} | |||
The maximum circuit wire distance for this container. | The maximum circuit wire distance for this container. | ||
{{Prototype property|draw_copper_wires|[[Types/bool|bool]]|true|optional=true}} | |||
= | |||
{{Prototype property|draw_circuit_wires|[[Types/bool|bool]]|true|optional=true}} | |||
{{Prototype property|circuit_connector_sprites|[[Types/CircuitConnectorSprites|CircuitConnectorSprites]]|optional=true}} | |||
The pictures displayed for circuit connections to this container. | The pictures displayed for circuit connections to this container. |
Revision as of 19:44, 29 July 2019
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/Container
A generic container, such as a chest. Can not be rotated.
Extensions
- Prototype/LogisticContainer logistic-container
- Prototype/InfinityContainer infinity-container
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithHealth.
inventory_size
Type: uint16
The number of slots in this container.
picture
Type: Sprite
The picture displayed for this entity.
Optional properties
enable_inventory_bar
Type: bool
Default: true
If the red inventory limiter bar is enabled.
scale_info_icons
Type: bool
Default: false
If the icons of items shown in alt-mode should be scaled to the containers size.
circuit_wire_connection_point
Type: WireConnectionPoint
Defines how wires visually connect to this container.
circuit_wire_max_distance
Type: double
Default: 0
The maximum circuit wire distance for this container.
draw_copper_wires
Type: bool
Default: true
draw_circuit_wires
Type: bool
Default: true
circuit_connector_sprites
Type: CircuitConnectorSprites
The pictures displayed for circuit connections to this container.