Prototype definitions: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(updated to 0.17)
(Linked to overview page)
(10 intermediate revisions by 2 users not shown)
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. '''This list is updated to 0.17. All existing prototype pages are either for 0.17 or 0.16, please check the individual page history for information on when they were last updated. Pages with the Types/ prefix are not guaranteed to be up to date.'''
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'''
Line 10: Line 11:
* [[Prototype/Font]] '''font'''
* [[Prototype/Font]] '''font'''
* [[Prototype/GodController]] '''god-controller'''
* [[Prototype/GodController]] '''god-controller'''
* [[Prototype/GuiStyle]] '''gui-style'''
* [[Prototype/MapGenPresets]] '''map-gen-presets'''
* [[Prototype/MapGenPresets]] '''map-gen-presets'''
* [[Prototype/MapSettings]] '''map-settings'''
* [[Prototype/MapSettings]] '''map-settings'''
Line 17: Line 17:
* [[Prototype/SpectatorController]] '''spectator-controller'''
* [[Prototype/SpectatorController]] '''spectator-controller'''
* [[Prototype/Sprite]] '''sprite'''
* [[Prototype/Sprite]] '''sprite'''
* [[Prototype/Tutorial]] '''tutorial'''
* [[Prototype/TriggerTargetType]] '''trigger-target-type'''
* [[Prototype/UtilityConstants]] '''utility-constants'''
* [[Prototype/UtilityConstants]] '''utility-constants'''
* [[Prototype/UtilitySounds]] '''utility-sounds'''
* [[Prototype/UtilitySounds]] '''utility-sounds'''
* [[Prototype/UtilitySprites]] '''utility-sprites'''
* [[Prototype/WindSound]] '''wind-sound'''
* [[Prototype/WindSound]] '''wind-sound'''
* [[Prototype]] <abstract>
* [[PrototypeBase]] <abstract>
<div class="factorio-list">
<div class="factorio-list">
:* [[Prototype/Achievement]] '''achievement'''
:* [[Prototype/Achievement]] '''achievement'''
Line 60: Line 59:
:*** [[Prototype/Beacon]] '''beacon'''
:*** [[Prototype/Beacon]] '''beacon'''
:*** [[Prototype/Boiler]] '''boiler'''
:*** [[Prototype/Boiler]] '''boiler'''
:*** [[Prototype/Character]] '''player'''
:*** [[Prototype/Character]] '''character'''
:*** [[Prototype/Combinator]] <abstract>
:*** [[Prototype/Combinator]] <abstract>
:**** [[Prototype/ArithmeticCombinator]] '''arithmetic-combinator'''
:**** [[Prototype/ArithmeticCombinator]] '''arithmetic-combinator'''
Line 138: Line 137:
:** [[Prototype/FluidStream]] '''stream'''
:** [[Prototype/FluidStream]] '''stream'''
:** [[Prototype/FlyingText]] '''flying-text'''
:** [[Prototype/FlyingText]] '''flying-text'''
:** [[Prototype/HighlightBox]] '''highlight-box'''
:** [[Prototype/HighlightBoxEntity]] '''highlight-box'''
:** [[Prototype/ItemEntity]] '''item-entity'''
:** [[Prototype/ItemEntity]] '''item-entity'''
:** [[Prototype/ItemRequestProxy]] '''item-request-proxy'''
:** [[Prototype/ItemRequestProxy]] '''item-request-proxy'''
:** [[Prototype/LegacyDecorative]] '''decorative''' probably exists for migration
:** [[Prototype/LegacyDecorative]] '''decorative''' (for migration, cannot be used)
:** [[Prototype/Particle]] '''particle'''
:** [[Prototype/Particle]] '''particle'''
:*** [[Prototype/ArtilleryFlare]] '''artillery-flare'''
:*** [[Prototype/ArtilleryFlare]] '''artillery-flare'''
Line 151: Line 150:
:** [[Prototype/RocketSiloRocketShadow]] '''rocket-silo-rocket-shadow'''
:** [[Prototype/RocketSiloRocketShadow]] '''rocket-silo-rocket-shadow'''
:** [[Prototype/Smoke]] <abstract>
:** [[Prototype/Smoke]] <abstract>
:*** [[Prototype/SimpleSmoke]] '''smoke'''
:*** [[Prototype/SimpleSmoke]] '''smoke''' (for migration, cannot be used)
:*** [[Prototype/SmokeWithTrigger]] '''smoke-with-trigger'''
:*** [[Prototype/SmokeWithTrigger]] '''smoke-with-trigger'''
:** [[Prototype/SpeechBubble]] '''speech-bubble'''
:** [[Prototype/SpeechBubble]] '''speech-bubble'''
Line 170: Line 169:
:* [[Prototype/Fluid]] '''fluid'''
:* [[Prototype/Fluid]] '''fluid'''
:* [[Prototype/FuelCategory]] '''fuel-category'''
:* [[Prototype/FuelCategory]] '''fuel-category'''
:* [[Prototype/GuiStyle]] '''gui-style'''
:* [[Prototype/Item]] '''item'''
:* [[Prototype/Item]] '''item'''
:** [[Prototype/AmmoItem]] '''ammo'''
:** [[Prototype/AmmoItem]] '''ammo'''
Line 188: Line 188:
:** [[Prototype/Tool]] '''tool'''
:** [[Prototype/Tool]] '''tool'''
:*** [[Prototype/Armor]] '''armor'''
:*** [[Prototype/Armor]] '''armor'''
:*** [[Prototype/MiningTool]] '''mining-tool'''
:*** [[Prototype/MiningTool]] '''mining-tool''' (for migration, cannot be used)
:*** [[Prototype/RepairTool]] '''repair-tool'''
:*** [[Prototype/RepairTool]] '''repair-tool'''
:* [[Prototype/ItemGroup]] '''item-group'''
:* [[Prototype/ItemGroup]] '''item-group'''
Line 196: Line 196:
:* [[Prototype/NoiseLayer]] '''noise-layer'''
:* [[Prototype/NoiseLayer]] '''noise-layer'''
:* [[Prototype/Decorative]] '''optimized-decorative'''
:* [[Prototype/Decorative]] '''optimized-decorative'''
:* [[Prototype/RailCategory]] '''rail-category'''
:* [[Prototype/Recipe]] '''recipe'''
:* [[Prototype/Recipe]] '''recipe'''
:* [[Prototype/RecipeCategory]] '''recipe-category'''
:* [[Prototype/RecipeCategory]] '''recipe-category'''
Line 204: Line 203:
:* [[Prototype/Tile]] '''tile'''
:* [[Prototype/Tile]] '''tile'''
:* [[Prototype/TrivialSmoke]] '''trivial-smoke'''
:* [[Prototype/TrivialSmoke]] '''trivial-smoke'''
:* [[Prototype/Tutorial]] '''tutorial'''
:* [[Prototype/UtilitySprites]] '''utility-sprites'''
:* [[Prototype/VirtualSignal]] '''virtual-signal'''
:* [[Prototype/VirtualSignal]] '''virtual-signal'''
</div>
</div>

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.