Prototype/Container: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(addded cicuit wire definitions)
m (→‎Properties: fixed types)
Line 6: Line 6:


=== picture ===
=== picture ===
Type: [[Types/Sprite]]
'''Type''': [[Types/Sprite]]


The picture displayed for this entity.
The picture displayed for this entity.


=== inventory_size ===
=== inventory_size ===
Type: [[Types/unsigned]]
'''Type''': [[Types/uint]]


The number of slots in this container.
The number of slots in this container.


=== circuit_wire_connection_point ===
=== circuit_wire_connection_point ===
Type: [[Types/ConnectionPoint]]
'''Type''': [[Types/ConnectionPoint]]


Defines how wires visually connect to this container.
Defines how wires visually connect to this container.


=== circuit_wire_max_distance ===
=== circuit_wire_max_distance ===
Type: [[Types/double]]
'''Type''': [[Types/uint]]


The maximum circuit wire distance for this container.
The maximum circuit wire distance for this container.


=== circuit_connector_sprites ===
=== circuit_connector_sprites ===
Type: Table of [[Types/Sprite]]
'''Type''': [[Types/table]] of [[Types/Sprite]]


The pictures displayed for circuit connections to this container.
The pictures displayed for circuit connections to this container.

Revision as of 18:26, 26 October 2017

Basics

A generic container, such as a chest. Based on Prototype/EntityWithHealth.

Properties

This prototype inherits all the properties from Prototype/EntityWithHealth.

picture

Type: Types/Sprite

The picture displayed for this entity.

inventory_size

Type: Types/uint

The number of slots in this container.

circuit_wire_connection_point

Type: Types/ConnectionPoint

Defines how wires visually connect to this container.

circuit_wire_max_distance

Type: Types/uint

The maximum circuit wire distance for this container.

circuit_connector_sprites

Type: Types/table of Types/Sprite

The pictures displayed for circuit connections to this container.