Prototype/Container: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(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.


== Basics ==
{{Prototype TOC|container}}
Prototype type: '''container'''
 
A generic container, such as a chest. Based on [[Prototype/EntityWithHealth]]. Can not be rotated.


== Extensions ==
== Extensions ==
Line 13: Line 11:
This prototype inherits all the properties from [[Prototype/EntityWithHealth]].
This prototype inherits all the properties from [[Prototype/EntityWithHealth]].


=== inventory_size ===
{{Prototype property|inventory_size|[[Types/uint16|uint16]]}}
'''Type''': [[Types/uint16]]
 
The number of slots in this container.
The number of slots in this container.


=== picture ===
{{Prototype property|picture|[[Types/Sprite|Sprite]]}}
'''Type''': [[Types/Sprite]]
 
The picture displayed for this entity.
The picture displayed for this entity.


== Optional properties ==
== Optional properties ==


=== enable_inventory_bar ===
{{Prototype property|enable_inventory_bar|[[Types/bool|bool]]|true|optional=true}}
'''Type''': [[Types/bool]]
 
'''Default''': true
 
If the red inventory limiter bar is enabled.
If the red inventory limiter bar is enabled.


=== scale_info_icons ===
{{Prototype property|scale_info_icons|[[Types/bool|bool]]|false|optional=true}}
'''Type''': [[Types/bool]]
 
'''Default''': false
 
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.


=== circuit_wire_connection_point ===
{{Prototype property|circuit_wire_connection_point|[[Types/WireConnectionPoint|WireConnectionPoint]]|optional=true}}
'''Type''': [[Types/WireConnectionPoint]]
 
Defines how wires visually connect to this container.
Defines how wires visually connect to this container.


=== circuit_wire_max_distance ===
{{Prototype property|circuit_wire_max_distance|[[Types/double|double]]|0|optional=true}}
'''Type''': [[Types/double]]
 
'''Default''': 0
 
The maximum circuit wire distance for this container.
The maximum circuit wire distance for this container.


=== draw_copper_wires ===
{{Prototype property|draw_copper_wires|[[Types/bool|bool]]|true|optional=true}}
'''Type''': [[Types/bool]]
 
'''Default''': true
 
=== draw_circuit_wires ===
'''Type''': [[Types/bool]]
 
'''Default''': true


=== circuit_connector_sprites ===
{{Prototype property|draw_circuit_wires|[[Types/bool|bool]]|true|optional=true}}
'''Type''': [[Types/CircuitConnectorSprites]]


{{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

Template:Prototype parent A generic container, such as a chest. Can not be rotated.

Template:Prototype TOC

Extensions

Mandatory properties

This prototype inherits all the properties from Prototype/EntityWithHealth.

Template:Prototype property The number of slots in this container.

Template:Prototype property The picture displayed for this entity.

Optional properties

Template:Prototype property If the red inventory limiter bar is enabled.

Template:Prototype property If the icons of items shown in alt-mode should be scaled to the containers size.

Template:Prototype property Defines how wires visually connect to this container.

Template:Prototype property The maximum circuit wire distance for this container.

Template:Prototype property

Template:Prototype property

Template:Prototype property The pictures displayed for circuit connections to this container.