Prototype/Rail: 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}}
The base of both rail prototypes.


== Basics ==
{{Prototype TOC|''abstract''}}
This type is abstract and cannot be created directly.
 
The base of both rail prototypes. Extends [[Prototype/EntityWithHealth]].


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


=== pictures ===
{{Prototype property|pictures|[[Types/table|table]]}}
'''Type''': [[Types/table]]
 
Table with the following mandatory members:
Table with the following mandatory members:


* straight_rail_horizontal - [[Types/RailPieceLayers]]
* straight_rail_horizontal - [[Types/RailPieceLayers|RailPieceLayers]]
* straight_rail_vertical - [[Types/RailPieceLayers]]
* straight_rail_vertical - [[Types/RailPieceLayers|RailPieceLayers]]
* straight_rail_diagonal_left_top - [[Types/RailPieceLayers]]
* straight_rail_diagonal_left_top - [[Types/RailPieceLayers|RailPieceLayers]]
* straight_rail_diagonal_right_top - [[Types/RailPieceLayers]]
* straight_rail_diagonal_right_top - [[Types/RailPieceLayers|RailPieceLayers]]
* straight_rail_diagonal_right_bottom - [[Types/RailPieceLayers]]
* straight_rail_diagonal_right_bottom - [[Types/RailPieceLayers|RailPieceLayers]]
* straight_rail_diagonal_left_bottom - [[Types/RailPieceLayers]]
* straight_rail_diagonal_left_bottom - [[Types/RailPieceLayers|RailPieceLayers]]
* curved_rail_vertical_left_top - [[Types/RailPieceLayers]]
* curved_rail_vertical_left_top - [[Types/RailPieceLayers|RailPieceLayers]]
* curved_rail_vertical_right_top - [[Types/RailPieceLayers]]
* curved_rail_vertical_right_top - [[Types/RailPieceLayers|RailPieceLayers]]
* curved_rail_vertical_right_bottom - [[Types/RailPieceLayers]]
* curved_rail_vertical_right_bottom - [[Types/RailPieceLayers|RailPieceLayers]]
* curved_rail_vertical_left_bottom - [[Types/RailPieceLayers]]
* curved_rail_vertical_left_bottom - [[Types/RailPieceLayers|RailPieceLayers]]
* curved_rail_horizontal_left_top - [[Types/RailPieceLayers]]
* curved_rail_horizontal_left_top - [[Types/RailPieceLayers|RailPieceLayers]]
* curved_rail_horizontal_right_top - [[Types/RailPieceLayers]]
* curved_rail_horizontal_right_top - [[Types/RailPieceLayers|RailPieceLayers]]
* curved_rail_horizontal_right_bottom - [[Types/RailPieceLayers]]
* curved_rail_horizontal_right_bottom - [[Types/RailPieceLayers|RailPieceLayers]]
* curved_rail_horizontal_left_bottom - [[Types/RailPieceLayers]]
* curved_rail_horizontal_left_bottom - [[Types/RailPieceLayers|RailPieceLayers]]
* rail_endings - [[Types/Sprite8Way]]
* rail_endings - [[Types/Sprite8Way|Sprite8Way]]


== Mandatory values ==
== Mandatory values ==

Revision as of 16:58, 5 August 2019

Template:Prototype parent The base of both rail prototypes.

Template:Prototype TOC

Extensions

Mandatory properties

This prototype inherits all the properties from Prototype/EntityWithHealth.

Template:Prototype property Table with the following mandatory members:

Mandatory values

All rail collision_boxes are hardcoded and cannot be modified. The hardcoded values are:

  • straight_rail_primary_bounding_box = {-0.7, -0.99, 0.7, 0.99}
  • diagonal_straight_rail_primary_bounding_box = {-0.65, -0.7, 0.65, 0.7}
  • curved_rail_primary_bounding_box = {-0.75, -0.55, 0.75, 1.6}
  • secondary_bounding_box = {-0.68, -2.7, 0.68, 2.7}