Types/Trigger: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Created page with "An array of types/tables. The tables are each loaded as one of the Types/TriggerItem extensions, depending on the value of the <code>type</code> key in the table. ==...")
 
(PtreeItemOrArrayIterator)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
An array of [[types/table]]s. The tables are each loaded as one of the [[Types/TriggerItem]] extensions, depending on the value of the <code>type</code> key in the table.
A [[types/table]] or an array of [[types/table]]s. The tables are each loaded as one of the [[Types/TriggerItem]] extensions, depending on the value of the <code>type</code> key in the table.


== type ==
== type ==
Line 6: Line 6:
Mandatory member of each table in the array. Either "direct", "area", "line", or "cluster".
Mandatory member of each table in the array. Either "direct", "area", "line", or "cluster".
* If this is <code>"direct"</code>, that definition is loaded as a [[Types/DirectTriggerItem]],
* If this is <code>"direct"</code>, that definition is loaded as a [[Types/DirectTriggerItem]],
* if this is <code>"area"</code>, that definition is loaded as a [[Types/AreaTriggerItem]],
* if this is <code>"area"</code>, that definition is loaded as a [[Types/AreaTriggerItem]],
* if this is <code>"line"</code>, that definition is loaded as a [[Types/LineTriggerItem]],
* if this is <code>"line"</code>, that definition is loaded as a [[Types/LineTriggerItem]],
* if this is <code>"cluster"</code>, that definition is loaded as a [[Types/ClusterTriggerItem]].
* if this is <code>"cluster"</code>, that definition is loaded as a [[Types/ClusterTriggerItem]].
 
{{Prototype property type usage|Trigger]}}

Latest revision as of 15:53, 17 June 2022