PrototypeBase: 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 parent}}
== Basics ==
This type is abstract and cannot be created directly.
The abstract base for all prototypes. All prototypes inherit from this prototype.
The abstract base for all prototypes. All prototypes inherit from this prototype.


== Mandatory properties ==
== Mandatory properties ==
=== type ===
'''Type''': [[Types/string]]


{{Prototype_property|type|[[Types/string|string]]}}
Specification of the type of the prototype.
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]].
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 ===
{{Prototype_property|name|[[Types/string|string]]}}
'''Type''': [[Types/string]]
 
Unique textual identification of the prototype.
Unique textual identification of the prototype.


Line 24: Line 17:


== Optional properties ==
== Optional properties ==
=== order ===
'''Type''': [[Types/Order]]


{{Prototype_property|order|[[Types/Order|Order]]|optional=true}}
Used to order items in inventory, recipes and GUI's.
Used to order items in inventory, recipes and GUI's.


May not exceed a length of 200 characters.
May not exceed a length of 200 characters.


=== localised_name ===
{{Prototype_property|localised_name|[[Types/LocalisedString|LocalisedString]]|optional=true}}
'''Type''': [[Types/LocalisedString]]


=== localised_description ===
{{Prototype_property|localised_description|[[Types/LocalisedString|LocalisedString]]|optional=true}}
'''Type''': [[Types/LocalisedString]]

Revision as of 13:36, 26 July 2019

Template:Prototype parent The abstract base for all prototypes. All prototypes inherit from this prototype.

Mandatory properties

Template:Prototype property 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.

Template:Prototype property 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

Template:Prototype property Used to order items in inventory, recipes and GUI's.

May not exceed a length of 200 characters.

Template:Prototype property

Template:Prototype property