PrototypeBase: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Converted to SMW format)
(Added SMW generated TOC)
Line 1: Line 1:
{{Prototype parent}}
{{Prototype parent}}
The abstract base for all prototypes. All prototypes inherit from this prototype.
The abstract base for all prototypes. All prototypes inherit from this prototype.
{{Prototype TOC|<abstract>}}


== Mandatory properties ==
== Mandatory properties ==

Revision as of 13:45, 26 July 2019

Prototype definitions ยป PrototypeBase


The abstract base for all prototypes. All prototypes inherit from this prototype.


PrototypeBase โ€” <abstract>
name::string
type::string
localised_description::LocalisedString (optional)
localised_name::LocalisedString (optional)
order::Order (optional)

Mandatory properties

type

Type: string
Specification of the type of the prototype.

For a list of all available types and their properties, see prototype definitions. For a list of all types used in vanilla, see data.raw.

name

Type: string
Unique textual identification of the prototype.

For a list of all names used in vanilla, see data.raw.

May not contain ., may not exceed a length of 200 characters.

Optional properties

order

Type: Order
Used to order items in inventory, recipes and GUI's.

May not exceed a length of 200 characters.

localised_name

Type: LocalisedString

localised_description

Type: LocalisedString