Prototype definitions: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(0.17 update complete)
(Linked to overview page)
Line 1: Line 1:
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. '''The entire prototype documentation is updated to 0.17.'''
Prototypes are used to specify what items, entities, technologies (etc) exist in the game and what their properties are. Prototypes are created and modified in the [http://lua-api.factorio.com/latest/Data-Lifecycle.html data phase].
 
: '''See [[prototype overview]] for a full overview of all prototypes and their properties.'''
 
== Prototype hierachy ==
This is a list of all available prototype types and their inheritance structure.<br>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.


General info for prototype creation:
* Prototype objects are specified in the data phase: [http://lua-api.factorio.com/latest/Data-Lifecycle.html]
* 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 ==
* [[Prototype/AmbientSound]] '''ambient-sound'''
* [[Prototype/AmbientSound]] '''ambient-sound'''
* [[Prototype/Animation]] '''animation'''
* [[Prototype/Animation]] '''animation'''

Revision as of 19:07, 8 August 2019

Prototypes are used to specify what items, entities, technologies (etc) exist in the game and what their properties are. Prototypes are created and modified in the data phase.

See prototype overview for a full overview of all prototypes and their properties.

Prototype hierachy

This is a list of all available prototype types and their inheritance structure.
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.