In other languages:

Prototype definitions: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Adding missing prototypes that dont inherit from prototype)
(updated introduction)
Line 1: Line 1:
{{Languages}}__NOTOC__
{{Languages}}
== Warning ==
This is a list of all available prototype types in the game. Each point lists the link to the prototype page which is named after the class in the code, and the string that is used as the type name. Prototypes that have the type name <code><abstract></code> cannot be directly created, they simple exist as classes that multiple prototypes can inherit properties from. '''This list and all existing prototype pages are up to date as of version 0.16. Pages with the Types/ prefix are not guaranteed to be up to date.'''
This is work in progress of description of the prototype specification possibilities. The list is currently updated to version 0.16, however the individual pages are not guaranteed to be up to date.
 
== Basics ==
General info for prototype creation:
* Prototype objects are specified in lua script called data.lua in the root of every mod (base game works as mod as well)
* Prototype objects are specified in the data phase: [http://lua-api.factorio.com/latest/Data-Lifecycle.html]
* Individual objects are usually sorted into different groups in the prototypes folder.
* Only the properties listed on the page of a prototype, and the properties the prototype inherits, are recognized by the game. Any additional code will be discarded at the end of the data phase.
== Prototypes ==
== Prototypes ==
* [[Prototype/Font]] '''font'''
* [[Prototype/Font]] '''font'''

Revision as of 08:30, 29 May 2018

This is a list of all available prototype types in the game. Each point lists the link to the prototype page which is named after the class in the code, and the string that is used as the type name. Prototypes that have the type name <abstract> cannot be directly created, they simple exist as classes that multiple prototypes can inherit properties from. This list and all existing prototype pages are up to date as of version 0.16. Pages with the Types/ prefix are not guaranteed to be up to date.

General info for prototype creation:

  • Prototype objects are specified in the data phase: [1]
  • Only the properties listed on the page of a prototype, and the properties the prototype inherits, are recognized by the game. Any additional code will be discarded at the end of the data phase.

Prototypes