typed-factorio 0.4.1 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +12 -12
- package/generated/builtin-types.d.ts +18 -18
- package/generated/classes.d.ts +5412 -5401
- package/generated/concepts.d.ts +1661 -1509
- package/generated/defines.d.ts +280 -276
- package/generated/events.d.ts +1208 -1169
- package/generated/global-objects.d.ts +14 -14
- package/package.json +5 -5
package/generated/events.d.ts
CHANGED
@@ -3,60 +3,60 @@
|
|
3
3
|
/**
|
4
4
|
* Called when a {@link https://wiki.factorio.com/Prototype/CustomInput CustomInput} is activated.
|
5
5
|
*
|
6
|
-
* {@link https://lua-api.factorio.com/
|
6
|
+
* {@link https://lua-api.factorio.com/next/Events.html#CustomInputEvent View documentation}
|
7
7
|
*/
|
8
8
|
interface CustomInputEvent {
|
9
9
|
/** The player that activated the custom input. */
|
10
|
-
readonly player_index: uint
|
10
|
+
readonly player_index: uint
|
11
11
|
/** The prototype name of the custom input that was activated. */
|
12
|
-
readonly input_name: string
|
12
|
+
readonly input_name: string
|
13
13
|
/** The mouse cursor position when the custom input was activated. */
|
14
|
-
readonly cursor_position: Position
|
14
|
+
readonly cursor_position: Position
|
15
15
|
/** Information about the prototype that is selected when the custom input is used. `nil` if none is selected. */
|
16
|
-
readonly selected_prototype?: SelectedPrototypeData
|
16
|
+
readonly selected_prototype?: SelectedPrototypeData
|
17
17
|
/** Identifier of the event */
|
18
|
-
readonly name: defines.events
|
18
|
+
readonly name: defines.events
|
19
19
|
/** Tick the event was generated. */
|
20
|
-
readonly tick: uint
|
20
|
+
readonly tick: uint
|
21
21
|
}
|
22
22
|
|
23
23
|
/**
|
24
24
|
* Called when a unit/group completes a command.
|
25
25
|
*
|
26
|
-
* {@link https://lua-api.factorio.com/
|
26
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_ai_command_completed View documentation}
|
27
27
|
*/
|
28
28
|
interface OnAiCommandCompletedEvent {
|
29
29
|
/** Unit_number/group_number of the unit/group which just completed a command. */
|
30
|
-
readonly unit_number: uint
|
31
|
-
readonly result: defines.behavior_result
|
30
|
+
readonly unit_number: uint
|
31
|
+
readonly result: defines.behavior_result
|
32
32
|
/** Was this command generated by a distraction. */
|
33
|
-
readonly was_distracted: boolean
|
33
|
+
readonly was_distracted: boolean
|
34
34
|
/** Identifier of the event */
|
35
|
-
readonly name: typeof defines.events.on_ai_command_completed
|
35
|
+
readonly name: typeof defines.events.on_ai_command_completed
|
36
36
|
/** Tick the event was generated. */
|
37
|
-
readonly tick: uint
|
37
|
+
readonly tick: uint
|
38
38
|
}
|
39
39
|
|
40
40
|
/**
|
41
41
|
* Called when an area of the map is cloned.
|
42
42
|
*
|
43
|
-
* {@link https://lua-api.factorio.com/
|
43
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_area_cloned View documentation}
|
44
44
|
*/
|
45
45
|
interface OnAreaClonedEvent {
|
46
|
-
readonly source_surface: LuaSurface
|
47
|
-
readonly source_area: BoundingBox
|
48
|
-
readonly destination_surface: LuaSurface
|
49
|
-
readonly destination_area: BoundingBox
|
50
|
-
readonly destination_force?: LuaForce
|
51
|
-
readonly clone_tiles: boolean
|
52
|
-
readonly clone_entities: boolean
|
53
|
-
readonly clone_decoratives: boolean
|
54
|
-
readonly clear_destination_entities: boolean
|
55
|
-
readonly clear_destination_decoratives: boolean
|
46
|
+
readonly source_surface: LuaSurface
|
47
|
+
readonly source_area: BoundingBox
|
48
|
+
readonly destination_surface: LuaSurface
|
49
|
+
readonly destination_area: BoundingBox
|
50
|
+
readonly destination_force?: LuaForce
|
51
|
+
readonly clone_tiles: boolean
|
52
|
+
readonly clone_entities: boolean
|
53
|
+
readonly clone_decoratives: boolean
|
54
|
+
readonly clear_destination_entities: boolean
|
55
|
+
readonly clear_destination_decoratives: boolean
|
56
56
|
/** Identifier of the event */
|
57
|
-
readonly name: typeof defines.events.on_area_cloned
|
57
|
+
readonly name: typeof defines.events.on_area_cloned
|
58
58
|
/** Tick the event was generated. */
|
59
|
-
readonly tick: uint
|
59
|
+
readonly tick: uint
|
60
60
|
}
|
61
61
|
|
62
62
|
/**
|
@@ -65,102 +65,102 @@ interface OnAreaClonedEvent {
|
|
65
65
|
* **Note**: This will be called multiple times for each migration, once for every biter that is sacrificed to build
|
66
66
|
* part of the new base.
|
67
67
|
*
|
68
|
-
* {@link https://lua-api.factorio.com/
|
68
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_biter_base_built View documentation}
|
69
69
|
*/
|
70
70
|
interface OnBiterBaseBuiltEvent {
|
71
71
|
/** The entity that was built. */
|
72
|
-
readonly entity: LuaEntity
|
72
|
+
readonly entity: LuaEntity
|
73
73
|
/** Identifier of the event */
|
74
|
-
readonly name: typeof defines.events.on_biter_base_built
|
74
|
+
readonly name: typeof defines.events.on_biter_base_built
|
75
75
|
/** Tick the event was generated. */
|
76
|
-
readonly tick: uint
|
76
|
+
readonly tick: uint
|
77
77
|
}
|
78
78
|
|
79
79
|
/**
|
80
80
|
* Called when a set of positions on the map is cloned.
|
81
81
|
*
|
82
|
-
* {@link https://lua-api.factorio.com/
|
82
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_brush_cloned View documentation}
|
83
83
|
*/
|
84
84
|
interface OnBrushClonedEvent {
|
85
|
-
readonly source_offset: TilePosition
|
86
|
-
readonly destination_offset: TilePosition
|
87
|
-
readonly source_surface: LuaSurface
|
88
|
-
readonly source_positions: TilePosition[]
|
89
|
-
readonly destination_surface: LuaSurface
|
90
|
-
readonly destination_force?: LuaForce
|
91
|
-
readonly clone_tiles: boolean
|
92
|
-
readonly clone_entities: boolean
|
93
|
-
readonly clone_decoratives: boolean
|
94
|
-
readonly clear_destination_entities: boolean
|
95
|
-
readonly clear_destination_decoratives: boolean
|
85
|
+
readonly source_offset: TilePosition
|
86
|
+
readonly destination_offset: TilePosition
|
87
|
+
readonly source_surface: LuaSurface
|
88
|
+
readonly source_positions: TilePosition[]
|
89
|
+
readonly destination_surface: LuaSurface
|
90
|
+
readonly destination_force?: LuaForce
|
91
|
+
readonly clone_tiles: boolean
|
92
|
+
readonly clone_entities: boolean
|
93
|
+
readonly clone_decoratives: boolean
|
94
|
+
readonly clear_destination_entities: boolean
|
95
|
+
readonly clear_destination_decoratives: boolean
|
96
96
|
/** Identifier of the event */
|
97
|
-
readonly name: typeof defines.events.on_brush_cloned
|
97
|
+
readonly name: typeof defines.events.on_brush_cloned
|
98
98
|
/** Tick the event was generated. */
|
99
|
-
readonly tick: uint
|
99
|
+
readonly tick: uint
|
100
100
|
}
|
101
101
|
|
102
102
|
/**
|
103
103
|
* Called when a {@link defines.command.build_base} command reaches its destination, and before building starts.
|
104
104
|
*
|
105
|
-
* {@link https://lua-api.factorio.com/
|
105
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_build_base_arrived View documentation}
|
106
106
|
*/
|
107
107
|
interface OnBuildBaseArrivedEvent {
|
108
108
|
/** The unit the command was assigned to. */
|
109
|
-
readonly unit?: LuaEntity
|
109
|
+
readonly unit?: LuaEntity
|
110
110
|
/** The unit group the command was assigned to. */
|
111
|
-
readonly group?: LuaUnitGroup
|
111
|
+
readonly group?: LuaUnitGroup
|
112
112
|
/** Identifier of the event */
|
113
|
-
readonly name: typeof defines.events.on_build_base_arrived
|
113
|
+
readonly name: typeof defines.events.on_build_base_arrived
|
114
114
|
/** Tick the event was generated. */
|
115
|
-
readonly tick: uint
|
115
|
+
readonly tick: uint
|
116
116
|
}
|
117
117
|
|
118
118
|
/**
|
119
119
|
* Called when player builds something. Can be filtered using {@link LuaPlayerBuiltEntityEventFilter}.
|
120
120
|
*
|
121
|
-
* {@link https://lua-api.factorio.com/
|
121
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_built_entity View documentation}
|
122
122
|
*/
|
123
123
|
interface OnBuiltEntityEvent {
|
124
|
-
readonly created_entity: LuaEntity
|
125
|
-
readonly player_index: uint
|
126
|
-
readonly stack: LuaItemStack
|
124
|
+
readonly created_entity: LuaEntity
|
125
|
+
readonly player_index: uint
|
126
|
+
readonly stack: LuaItemStack
|
127
127
|
/** The item prototype used to build the entity. Note this won't exist in some situations (built from blueprint, undo, etc). */
|
128
|
-
readonly item?: LuaItemPrototype
|
128
|
+
readonly item?: LuaItemPrototype
|
129
129
|
/** The tags associated with this entity if any. */
|
130
|
-
readonly tags?: Tags
|
130
|
+
readonly tags?: Tags
|
131
131
|
/** Identifier of the event */
|
132
|
-
readonly name: typeof defines.events.on_built_entity
|
132
|
+
readonly name: typeof defines.events.on_built_entity
|
133
133
|
/** Tick the event was generated. */
|
134
|
-
readonly tick: uint
|
134
|
+
readonly tick: uint
|
135
135
|
}
|
136
136
|
|
137
137
|
/**
|
138
138
|
* Called when the deconstruction of an entity is canceled. Can be filtered using
|
139
139
|
* {@link LuaEntityDeconstructionCancelledEventFilter}.
|
140
140
|
*
|
141
|
-
* {@link https://lua-api.factorio.com/
|
141
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_cancelled_deconstruction View documentation}
|
142
142
|
*/
|
143
143
|
interface OnCancelledDeconstructionEvent {
|
144
|
-
readonly entity: LuaEntity
|
145
|
-
readonly player_index?: uint
|
144
|
+
readonly entity: LuaEntity
|
145
|
+
readonly player_index?: uint
|
146
146
|
/** Identifier of the event */
|
147
|
-
readonly name: typeof defines.events.on_cancelled_deconstruction
|
147
|
+
readonly name: typeof defines.events.on_cancelled_deconstruction
|
148
148
|
/** Tick the event was generated. */
|
149
|
-
readonly tick: uint
|
149
|
+
readonly tick: uint
|
150
150
|
}
|
151
151
|
|
152
152
|
/**
|
153
153
|
* Called when the upgrade of an entity is canceled. Can be filtered using {@link LuaUpgradeCancelledEventFilter}.
|
154
154
|
*
|
155
|
-
* {@link https://lua-api.factorio.com/
|
155
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_cancelled_upgrade View documentation}
|
156
156
|
*/
|
157
157
|
interface OnCancelledUpgradeEvent {
|
158
|
-
readonly entity: LuaEntity
|
159
|
-
readonly player_index?: uint
|
158
|
+
readonly entity: LuaEntity
|
159
|
+
readonly player_index?: uint
|
160
160
|
/** Identifier of the event */
|
161
|
-
readonly name: typeof defines.events.on_cancelled_upgrade
|
161
|
+
readonly name: typeof defines.events.on_cancelled_upgrade
|
162
162
|
/** Tick the event was generated. */
|
163
|
-
readonly tick: uint
|
163
|
+
readonly tick: uint
|
164
164
|
}
|
165
165
|
|
166
166
|
/**
|
@@ -168,128 +168,128 @@ interface OnCancelledUpgradeEvent {
|
|
168
168
|
*
|
169
169
|
* **Note**: this is not called if the corpse is mined. See {@link defines.events.on_pre_player_mined_item} to detect that.
|
170
170
|
*
|
171
|
-
* {@link https://lua-api.factorio.com/
|
171
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_character_corpse_expired View documentation}
|
172
172
|
*/
|
173
173
|
interface OnCharacterCorpseExpiredEvent {
|
174
174
|
/** The corpse. */
|
175
|
-
readonly corpse: LuaEntity
|
175
|
+
readonly corpse: LuaEntity
|
176
176
|
/** Identifier of the event */
|
177
|
-
readonly name: typeof defines.events.on_character_corpse_expired
|
177
|
+
readonly name: typeof defines.events.on_character_corpse_expired
|
178
178
|
/** Tick the event was generated. */
|
179
|
-
readonly tick: uint
|
179
|
+
readonly tick: uint
|
180
180
|
}
|
181
181
|
|
182
182
|
/**
|
183
183
|
* Called when a chart tag is created.
|
184
184
|
*
|
185
|
-
* {@link https://lua-api.factorio.com/
|
185
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_chart_tag_added View documentation}
|
186
186
|
*/
|
187
187
|
interface OnChartTagAddedEvent {
|
188
|
-
readonly tag: LuaCustomChartTag
|
189
|
-
readonly force: LuaForce
|
190
|
-
readonly player_index?: uint
|
188
|
+
readonly tag: LuaCustomChartTag
|
189
|
+
readonly force: LuaForce
|
190
|
+
readonly player_index?: uint
|
191
191
|
/** Identifier of the event */
|
192
|
-
readonly name: typeof defines.events.on_chart_tag_added
|
192
|
+
readonly name: typeof defines.events.on_chart_tag_added
|
193
193
|
/** Tick the event was generated. */
|
194
|
-
readonly tick: uint
|
194
|
+
readonly tick: uint
|
195
195
|
}
|
196
196
|
|
197
197
|
/**
|
198
198
|
* Called when a chart tag is modified by a player.
|
199
199
|
*
|
200
|
-
* {@link https://lua-api.factorio.com/
|
200
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_chart_tag_modified View documentation}
|
201
201
|
*/
|
202
202
|
interface OnChartTagModifiedEvent {
|
203
|
-
readonly tag: LuaCustomChartTag
|
204
|
-
readonly player_index?: uint
|
205
|
-
readonly force: LuaForce
|
206
|
-
readonly old_text: string
|
207
|
-
readonly old_icon?: SignalID
|
208
|
-
readonly old_player?: uint
|
203
|
+
readonly tag: LuaCustomChartTag
|
204
|
+
readonly player_index?: uint
|
205
|
+
readonly force: LuaForce
|
206
|
+
readonly old_text: string
|
207
|
+
readonly old_icon?: SignalID
|
208
|
+
readonly old_player?: uint
|
209
209
|
/** Identifier of the event */
|
210
|
-
readonly name: typeof defines.events.on_chart_tag_modified
|
210
|
+
readonly name: typeof defines.events.on_chart_tag_modified
|
211
211
|
/** Tick the event was generated. */
|
212
|
-
readonly tick: uint
|
212
|
+
readonly tick: uint
|
213
213
|
}
|
214
214
|
|
215
215
|
/**
|
216
216
|
* Called just before a chart tag is deleted.
|
217
217
|
*
|
218
|
-
* {@link https://lua-api.factorio.com/
|
218
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_chart_tag_removed View documentation}
|
219
219
|
*/
|
220
220
|
interface OnChartTagRemovedEvent {
|
221
|
-
readonly tag: LuaCustomChartTag
|
222
|
-
readonly force: LuaForce
|
223
|
-
readonly player_index?: uint
|
221
|
+
readonly tag: LuaCustomChartTag
|
222
|
+
readonly force: LuaForce
|
223
|
+
readonly player_index?: uint
|
224
224
|
/** Identifier of the event */
|
225
|
-
readonly name: typeof defines.events.on_chart_tag_removed
|
225
|
+
readonly name: typeof defines.events.on_chart_tag_removed
|
226
226
|
/** Tick the event was generated. */
|
227
|
-
readonly tick: uint
|
227
|
+
readonly tick: uint
|
228
228
|
}
|
229
229
|
|
230
230
|
/**
|
231
231
|
* Called when a chunk is charted or re-charted.
|
232
232
|
*
|
233
|
-
* {@link https://lua-api.factorio.com/
|
233
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_chunk_charted View documentation}
|
234
234
|
*/
|
235
235
|
interface OnChunkChartedEvent {
|
236
|
-
readonly surface_index: uint
|
237
|
-
readonly position: ChunkPosition
|
236
|
+
readonly surface_index: uint
|
237
|
+
readonly position: ChunkPosition
|
238
238
|
/** Area of the chunk. */
|
239
|
-
readonly area: BoundingBox
|
240
|
-
readonly force: LuaForce
|
239
|
+
readonly area: BoundingBox
|
240
|
+
readonly force: LuaForce
|
241
241
|
/** Identifier of the event */
|
242
|
-
readonly name: typeof defines.events.on_chunk_charted
|
242
|
+
readonly name: typeof defines.events.on_chunk_charted
|
243
243
|
/** Tick the event was generated. */
|
244
|
-
readonly tick: uint
|
244
|
+
readonly tick: uint
|
245
245
|
}
|
246
246
|
|
247
247
|
/**
|
248
248
|
* Called when one or more chunks are deleted using {@link LuaSurface.delete_chunk LuaSurface::delete_chunk}.
|
249
249
|
*
|
250
|
-
* {@link https://lua-api.factorio.com/
|
250
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_chunk_deleted View documentation}
|
251
251
|
*/
|
252
252
|
interface OnChunkDeletedEvent {
|
253
|
-
readonly surface_index: uint
|
253
|
+
readonly surface_index: uint
|
254
254
|
/** The chunks deleted. */
|
255
|
-
readonly positions: ChunkPosition[]
|
255
|
+
readonly positions: ChunkPosition[]
|
256
256
|
/** Identifier of the event */
|
257
|
-
readonly name: typeof defines.events.on_chunk_deleted
|
257
|
+
readonly name: typeof defines.events.on_chunk_deleted
|
258
258
|
/** Tick the event was generated. */
|
259
|
-
readonly tick: uint
|
259
|
+
readonly tick: uint
|
260
260
|
}
|
261
261
|
|
262
262
|
/**
|
263
263
|
* Called when a chunk is generated.
|
264
264
|
*
|
265
|
-
* {@link https://lua-api.factorio.com/
|
265
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_chunk_generated View documentation}
|
266
266
|
*/
|
267
267
|
interface OnChunkGeneratedEvent {
|
268
268
|
/** Area of the chunk. */
|
269
|
-
readonly area: BoundingBox
|
269
|
+
readonly area: BoundingBox
|
270
270
|
/** Position of the chunk. */
|
271
|
-
readonly position: ChunkPosition
|
271
|
+
readonly position: ChunkPosition
|
272
272
|
/** The surface the chunk is on. */
|
273
|
-
readonly surface: LuaSurface
|
273
|
+
readonly surface: LuaSurface
|
274
274
|
/** Identifier of the event */
|
275
|
-
readonly name: typeof defines.events.on_chunk_generated
|
275
|
+
readonly name: typeof defines.events.on_chunk_generated
|
276
276
|
/** Tick the event was generated. */
|
277
|
-
readonly tick: uint
|
277
|
+
readonly tick: uint
|
278
278
|
}
|
279
279
|
|
280
280
|
/**
|
281
281
|
* Called when a combat robot expires through a lack of energy, or timeout.
|
282
282
|
*
|
283
|
-
* {@link https://lua-api.factorio.com/
|
283
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_combat_robot_expired View documentation}
|
284
284
|
*/
|
285
285
|
interface OnCombatRobotExpiredEvent {
|
286
|
-
readonly robot: LuaEntity
|
286
|
+
readonly robot: LuaEntity
|
287
287
|
/** The entity that owns the robot if any. */
|
288
|
-
readonly owner?: LuaEntity
|
288
|
+
readonly owner?: LuaEntity
|
289
289
|
/** Identifier of the event */
|
290
|
-
readonly name: typeof defines.events.on_combat_robot_expired
|
290
|
+
readonly name: typeof defines.events.on_combat_robot_expired
|
291
291
|
/** Tick the event was generated. */
|
292
|
-
readonly tick: uint
|
292
|
+
readonly tick: uint
|
293
293
|
}
|
294
294
|
|
295
295
|
/**
|
@@ -297,49 +297,49 @@ interface OnCombatRobotExpiredEvent {
|
|
297
297
|
*
|
298
298
|
* **Note**: This event only fires for plain messages, not for any commands (including `/shout` or `/whisper`).
|
299
299
|
*
|
300
|
-
* {@link https://lua-api.factorio.com/
|
300
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_console_chat View documentation}
|
301
301
|
*/
|
302
302
|
interface OnConsoleChatEvent {
|
303
303
|
/** The player doing the chatting, if any. */
|
304
|
-
readonly player_index?: uint
|
304
|
+
readonly player_index?: uint
|
305
305
|
/** The chat message that was sent. */
|
306
|
-
readonly message: string
|
306
|
+
readonly message: string
|
307
307
|
/** Identifier of the event */
|
308
|
-
readonly name: typeof defines.events.on_console_chat
|
308
|
+
readonly name: typeof defines.events.on_console_chat
|
309
309
|
/** Tick the event was generated. */
|
310
|
-
readonly tick: uint
|
310
|
+
readonly tick: uint
|
311
311
|
}
|
312
312
|
|
313
313
|
/**
|
314
314
|
* Called when someone enters a command-like message regardless of it being a valid command.
|
315
315
|
*
|
316
|
-
* {@link https://lua-api.factorio.com/
|
316
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_console_command View documentation}
|
317
317
|
*/
|
318
318
|
interface OnConsoleCommandEvent {
|
319
319
|
/** The player if any. */
|
320
|
-
readonly player_index?: uint
|
320
|
+
readonly player_index?: uint
|
321
321
|
/** The command as typed without the preceding forward slash ('/'). */
|
322
|
-
readonly command: string
|
322
|
+
readonly command: string
|
323
323
|
/** The parameters provided if any. */
|
324
|
-
readonly parameters: string
|
324
|
+
readonly parameters: string
|
325
325
|
/** Identifier of the event */
|
326
|
-
readonly name: typeof defines.events.on_console_command
|
326
|
+
readonly name: typeof defines.events.on_console_command
|
327
327
|
/** Tick the event was generated. */
|
328
|
-
readonly tick: uint
|
328
|
+
readonly tick: uint
|
329
329
|
}
|
330
330
|
|
331
331
|
/**
|
332
332
|
* Called when a cutscene is cancelled by the player or by script.
|
333
333
|
*
|
334
|
-
* {@link https://lua-api.factorio.com/
|
334
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_cutscene_cancelled View documentation}
|
335
335
|
*/
|
336
336
|
interface OnCutsceneCancelledEvent {
|
337
337
|
/** The player the cutscene was shown to. */
|
338
|
-
readonly player_index: uint
|
338
|
+
readonly player_index: uint
|
339
339
|
/** Identifier of the event */
|
340
|
-
readonly name: typeof defines.events.on_cutscene_cancelled
|
340
|
+
readonly name: typeof defines.events.on_cutscene_cancelled
|
341
341
|
/** Tick the event was generated. */
|
342
|
-
readonly tick: uint
|
342
|
+
readonly tick: uint
|
343
343
|
}
|
344
344
|
|
345
345
|
/**
|
@@ -347,17 +347,19 @@ interface OnCutsceneCancelledEvent {
|
|
347
347
|
*
|
348
348
|
* This refers to an index in the table previously passed to set_controller which started the cutscene.
|
349
349
|
*
|
350
|
-
*
|
350
|
+
* **Note**: Due to implementation omission, waypoint_index is 0-based.
|
351
|
+
*
|
352
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_cutscene_waypoint_reached View documentation}
|
351
353
|
*/
|
352
354
|
interface OnCutsceneWaypointReachedEvent {
|
353
355
|
/** The player index of the player viewing the cutscene. */
|
354
|
-
readonly player_index: uint
|
356
|
+
readonly player_index: uint
|
355
357
|
/** The index of the waypoint we just completed. */
|
356
|
-
readonly waypoint_index: uint
|
358
|
+
readonly waypoint_index: uint
|
357
359
|
/** Identifier of the event */
|
358
|
-
readonly name: typeof defines.events.on_cutscene_waypoint_reached
|
360
|
+
readonly name: typeof defines.events.on_cutscene_waypoint_reached
|
359
361
|
/** Tick the event was generated. */
|
360
|
-
readonly tick: uint
|
362
|
+
readonly tick: uint
|
361
363
|
}
|
362
364
|
|
363
365
|
/**
|
@@ -365,29 +367,29 @@ interface OnCutsceneWaypointReachedEvent {
|
|
365
367
|
*
|
366
368
|
* **Note**: It's not guaranteed that both settings are changed - just that at least one has been changed.
|
367
369
|
*
|
368
|
-
* {@link https://lua-api.factorio.com/
|
370
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_difficulty_settings_changed View documentation}
|
369
371
|
*/
|
370
372
|
interface OnDifficultySettingsChangedEvent {
|
371
|
-
readonly old_recipe_difficulty: uint
|
372
|
-
readonly old_technology_difficulty: uint
|
373
|
+
readonly old_recipe_difficulty: uint
|
374
|
+
readonly old_technology_difficulty: uint
|
373
375
|
/** Identifier of the event */
|
374
|
-
readonly name: typeof defines.events.on_difficulty_settings_changed
|
376
|
+
readonly name: typeof defines.events.on_difficulty_settings_changed
|
375
377
|
/** Tick the event was generated. */
|
376
|
-
readonly tick: uint
|
378
|
+
readonly tick: uint
|
377
379
|
}
|
378
380
|
|
379
381
|
/**
|
380
382
|
* Called when an entity is cloned. Can be filtered for the source entity using {@link LuaEntityClonedEventFilter}.
|
381
383
|
*
|
382
|
-
* {@link https://lua-api.factorio.com/
|
384
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_entity_cloned View documentation}
|
383
385
|
*/
|
384
386
|
interface OnEntityClonedEvent {
|
385
|
-
readonly source: LuaEntity
|
386
|
-
readonly destination: LuaEntity
|
387
|
+
readonly source: LuaEntity
|
388
|
+
readonly destination: LuaEntity
|
387
389
|
/** Identifier of the event */
|
388
|
-
readonly name: typeof defines.events.on_entity_cloned
|
390
|
+
readonly name: typeof defines.events.on_entity_cloned
|
389
391
|
/** Tick the event was generated. */
|
390
|
-
readonly tick: uint
|
392
|
+
readonly tick: uint
|
391
393
|
}
|
392
394
|
|
393
395
|
/**
|
@@ -395,25 +397,25 @@ interface OnEntityClonedEvent {
|
|
395
397
|
*
|
396
398
|
* **Note**: This is not called when an entities health is set directly by another mod.
|
397
399
|
*
|
398
|
-
* {@link https://lua-api.factorio.com/
|
400
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_entity_damaged View documentation}
|
399
401
|
*/
|
400
402
|
interface OnEntityDamagedEvent {
|
401
|
-
readonly entity: LuaEntity
|
402
|
-
readonly damage_type: LuaDamagePrototype
|
403
|
+
readonly entity: LuaEntity
|
404
|
+
readonly damage_type: LuaDamagePrototype
|
403
405
|
/** The damage amount before resistances. */
|
404
|
-
readonly original_damage_amount: float
|
406
|
+
readonly original_damage_amount: float
|
405
407
|
/** The damage amount after resistances. */
|
406
|
-
readonly final_damage_amount: float
|
408
|
+
readonly final_damage_amount: float
|
407
409
|
/** The health of the entity after the damage was applied. */
|
408
|
-
readonly final_health: float
|
410
|
+
readonly final_health: float
|
409
411
|
/** The entity that did the attacking if available. */
|
410
|
-
readonly cause?: LuaEntity
|
412
|
+
readonly cause?: LuaEntity
|
411
413
|
/** The force that did the attacking if any. */
|
412
|
-
readonly force?: LuaForce
|
414
|
+
readonly force?: LuaForce
|
413
415
|
/** Identifier of the event */
|
414
|
-
readonly name: typeof defines.events.on_entity_damaged
|
416
|
+
readonly name: typeof defines.events.on_entity_damaged
|
415
417
|
/** Tick the event was generated. */
|
416
|
-
readonly tick: uint
|
418
|
+
readonly tick: uint
|
417
419
|
}
|
418
420
|
|
419
421
|
/**
|
@@ -423,37 +425,37 @@ interface OnEntityDamagedEvent {
|
|
423
425
|
* **Note**: Depending on when a given entity is destroyed this will be fired at the end of the current tick or end of
|
424
426
|
* the next tick.
|
425
427
|
*
|
426
|
-
* {@link https://lua-api.factorio.com/
|
428
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_entity_destroyed View documentation}
|
427
429
|
*/
|
428
430
|
interface OnEntityDestroyedEvent {
|
429
|
-
readonly registration_number: uint64
|
430
|
-
readonly unit_number?: uint
|
431
|
+
readonly registration_number: uint64
|
432
|
+
readonly unit_number?: uint
|
431
433
|
/** Identifier of the event */
|
432
|
-
readonly name: typeof defines.events.on_entity_destroyed
|
434
|
+
readonly name: typeof defines.events.on_entity_destroyed
|
433
435
|
/** Tick the event was generated. */
|
434
|
-
readonly tick: uint
|
436
|
+
readonly tick: uint
|
435
437
|
}
|
436
438
|
|
437
439
|
/**
|
438
440
|
* Called when an entity dies. Can be filtered using {@link LuaEntityDiedEventFilter}.
|
439
441
|
*
|
440
|
-
* {@link https://lua-api.factorio.com/
|
442
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_entity_died View documentation}
|
441
443
|
*/
|
442
444
|
interface OnEntityDiedEvent {
|
443
445
|
/** The entity that died. */
|
444
|
-
readonly entity: LuaEntity
|
446
|
+
readonly entity: LuaEntity
|
445
447
|
/** The entity that did the killing if available. */
|
446
|
-
readonly cause?: LuaEntity
|
448
|
+
readonly cause?: LuaEntity
|
447
449
|
/** The loot generated by this entity if any. */
|
448
|
-
readonly loot: LuaInventory
|
450
|
+
readonly loot: LuaInventory
|
449
451
|
/** The force that did the killing if any. */
|
450
|
-
readonly force?: LuaForce
|
452
|
+
readonly force?: LuaForce
|
451
453
|
/** The damage type if any. */
|
452
|
-
readonly damage_type?: LuaDamagePrototype
|
454
|
+
readonly damage_type?: LuaDamagePrototype
|
453
455
|
/** Identifier of the event */
|
454
|
-
readonly name: typeof defines.events.on_entity_died
|
456
|
+
readonly name: typeof defines.events.on_entity_died
|
455
457
|
/** Tick the event was generated. */
|
456
|
-
readonly tick: uint
|
458
|
+
readonly tick: uint
|
457
459
|
}
|
458
460
|
|
459
461
|
/**
|
@@ -462,85 +464,119 @@ interface OnEntityDiedEvent {
|
|
462
464
|
* **Note**: "Personal logistic slot" refers to a character or vehicle's personal request / auto-trash slots, not the
|
463
465
|
* request slots on logistic chests.
|
464
466
|
*
|
465
|
-
* {@link https://lua-api.factorio.com/
|
467
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_entity_logistic_slot_changed View documentation}
|
466
468
|
*/
|
467
469
|
interface OnEntityLogisticSlotChangedEvent {
|
468
470
|
/** The player who changed the slot, or `nil` if changed by script. */
|
469
|
-
readonly player_index?: uint
|
471
|
+
readonly player_index?: uint
|
470
472
|
/** The entity for whom a logistic slot was changed. */
|
471
|
-
readonly entity: LuaEntity
|
473
|
+
readonly entity: LuaEntity
|
472
474
|
/** The slot index that was changed. */
|
473
|
-
readonly slot_index: uint
|
475
|
+
readonly slot_index: uint
|
474
476
|
/** Identifier of the event */
|
475
|
-
readonly name: typeof defines.events.on_entity_logistic_slot_changed
|
477
|
+
readonly name: typeof defines.events.on_entity_logistic_slot_changed
|
476
478
|
/** Tick the event was generated. */
|
477
|
-
readonly tick: uint
|
479
|
+
readonly tick: uint
|
478
480
|
}
|
479
481
|
|
480
482
|
/**
|
481
483
|
* Called after an entity has been renamed either by the player or through script.
|
482
484
|
*
|
483
|
-
* {@link https://lua-api.factorio.com/
|
485
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_entity_renamed View documentation}
|
484
486
|
*/
|
485
487
|
interface OnEntityRenamedEvent {
|
486
488
|
/** If by_script is true this will not be included. */
|
487
|
-
readonly player_index?: uint
|
488
|
-
readonly by_script: boolean
|
489
|
-
readonly entity: LuaEntity
|
490
|
-
readonly old_name: string
|
489
|
+
readonly player_index?: uint
|
490
|
+
readonly by_script: boolean
|
491
|
+
readonly entity: LuaEntity
|
492
|
+
readonly old_name: string
|
491
493
|
/** Identifier of the event */
|
492
|
-
readonly name: typeof defines.events.on_entity_renamed
|
494
|
+
readonly name: typeof defines.events.on_entity_renamed
|
493
495
|
/** Tick the event was generated. */
|
494
|
-
readonly tick: uint
|
496
|
+
readonly tick: uint
|
495
497
|
}
|
496
498
|
|
497
499
|
/**
|
498
500
|
* Called after entity copy-paste is done.
|
499
501
|
*
|
500
|
-
* {@link https://lua-api.factorio.com/
|
502
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_entity_settings_pasted View documentation}
|
501
503
|
*/
|
502
504
|
interface OnEntitySettingsPastedEvent {
|
503
|
-
readonly player_index: uint
|
505
|
+
readonly player_index: uint
|
504
506
|
/** The source entity settings were copied from. */
|
505
|
-
readonly source: LuaEntity
|
507
|
+
readonly source: LuaEntity
|
506
508
|
/** The destination entity settings were copied to. */
|
507
|
-
readonly destination: LuaEntity
|
509
|
+
readonly destination: LuaEntity
|
508
510
|
/** Identifier of the event */
|
509
|
-
readonly name: typeof defines.events.on_entity_settings_pasted
|
511
|
+
readonly name: typeof defines.events.on_entity_settings_pasted
|
510
512
|
/** Tick the event was generated. */
|
511
|
-
readonly tick: uint
|
513
|
+
readonly tick: uint
|
512
514
|
}
|
513
515
|
|
514
516
|
/**
|
515
517
|
* Called when an entity is spawned by a EnemySpawner
|
516
518
|
*
|
517
|
-
* {@link https://lua-api.factorio.com/
|
519
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_entity_spawned View documentation}
|
518
520
|
*/
|
519
521
|
interface OnEntitySpawnedEvent {
|
520
|
-
readonly spawner: LuaEntity
|
521
|
-
readonly entity: LuaEntity
|
522
|
+
readonly spawner: LuaEntity
|
523
|
+
readonly entity: LuaEntity
|
524
|
+
/** Identifier of the event */
|
525
|
+
readonly name: typeof defines.events.on_entity_spawned
|
526
|
+
/** Tick the event was generated. */
|
527
|
+
readonly tick: uint
|
528
|
+
}
|
529
|
+
|
530
|
+
/**
|
531
|
+
* Called after equipment is inserted into an equipment grid.
|
532
|
+
*
|
533
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_equipment_inserted View documentation}
|
534
|
+
*/
|
535
|
+
interface OnEquipmentInsertedEvent {
|
536
|
+
/** The equipment grid inserted into. */
|
537
|
+
readonly grid: LuaEquipmentGrid
|
538
|
+
/** The equipment inserted. */
|
539
|
+
readonly equipment: LuaEquipment
|
540
|
+
/** Identifier of the event */
|
541
|
+
readonly name: typeof defines.events.on_equipment_inserted
|
542
|
+
/** Tick the event was generated. */
|
543
|
+
readonly tick: uint
|
544
|
+
}
|
545
|
+
|
546
|
+
/**
|
547
|
+
* Called after equipment is removed from an equipment grid.
|
548
|
+
*
|
549
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_equipment_removed View documentation}
|
550
|
+
*/
|
551
|
+
interface OnEquipmentRemovedEvent {
|
552
|
+
/** The equipment grid removed from. */
|
553
|
+
readonly grid: LuaEquipmentGrid
|
554
|
+
/** The equipment removed. */
|
555
|
+
readonly equipment: string
|
556
|
+
/** The count of equipment removed. */
|
557
|
+
readonly count: uint
|
522
558
|
/** Identifier of the event */
|
523
|
-
readonly name: typeof defines.events.
|
559
|
+
readonly name: typeof defines.events.on_equipment_removed
|
524
560
|
/** Tick the event was generated. */
|
525
|
-
readonly tick: uint
|
561
|
+
readonly tick: uint
|
526
562
|
}
|
527
563
|
|
528
564
|
/**
|
529
565
|
* Called when the a forces cease fire values change.
|
530
566
|
*
|
531
|
-
* {@link https://lua-api.factorio.com/
|
567
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_force_cease_fire_changed View documentation}
|
532
568
|
*/
|
533
569
|
interface OnForceCeaseFireChangedEvent {
|
534
570
|
/** The force who's cease fire changed. */
|
535
|
-
readonly force: LuaForce
|
571
|
+
readonly force: LuaForce
|
536
572
|
/** Which force was added or removed. */
|
537
|
-
readonly other_force: LuaForce
|
573
|
+
readonly other_force: LuaForce
|
538
574
|
/** If the other force was added or removed. */
|
539
|
-
readonly added: boolean
|
575
|
+
readonly added: boolean
|
540
576
|
/** Identifier of the event */
|
541
|
-
readonly name: typeof defines.events.on_force_cease_fire_changed
|
577
|
+
readonly name: typeof defines.events.on_force_cease_fire_changed
|
542
578
|
/** Tick the event was generated. */
|
543
|
-
readonly tick: uint
|
579
|
+
readonly tick: uint
|
544
580
|
}
|
545
581
|
|
546
582
|
/**
|
@@ -549,46 +585,46 @@ interface OnForceCeaseFireChangedEvent {
|
|
549
585
|
* **Note**: This is not called when the default forces (`'player'`, `'enemy'`, `'neutral'`) are created as they will
|
550
586
|
* always exist.
|
551
587
|
*
|
552
|
-
* {@link https://lua-api.factorio.com/
|
588
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_force_created View documentation}
|
553
589
|
*/
|
554
590
|
interface OnForceCreatedEvent {
|
555
591
|
/** The newly created force. */
|
556
|
-
readonly force: LuaForce
|
592
|
+
readonly force: LuaForce
|
557
593
|
/** Identifier of the event */
|
558
|
-
readonly name: typeof defines.events.on_force_created
|
594
|
+
readonly name: typeof defines.events.on_force_created
|
559
595
|
/** Tick the event was generated. */
|
560
|
-
readonly tick: uint
|
596
|
+
readonly tick: uint
|
561
597
|
}
|
562
598
|
|
563
599
|
/**
|
564
600
|
* Called when the a forces friends change.
|
565
601
|
*
|
566
|
-
* {@link https://lua-api.factorio.com/
|
602
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_force_friends_changed View documentation}
|
567
603
|
*/
|
568
604
|
interface OnForceFriendsChangedEvent {
|
569
605
|
/** The force who's friends changed. */
|
570
|
-
readonly force: LuaForce
|
606
|
+
readonly force: LuaForce
|
571
607
|
/** Which force was added or removed. */
|
572
|
-
readonly other_force: LuaForce
|
608
|
+
readonly other_force: LuaForce
|
573
609
|
/** If the other force was added or removed. */
|
574
|
-
readonly added: boolean
|
610
|
+
readonly added: boolean
|
575
611
|
/** Identifier of the event */
|
576
|
-
readonly name: typeof defines.events.on_force_friends_changed
|
612
|
+
readonly name: typeof defines.events.on_force_friends_changed
|
577
613
|
/** Tick the event was generated. */
|
578
|
-
readonly tick: uint
|
614
|
+
readonly tick: uint
|
579
615
|
}
|
580
616
|
|
581
617
|
/**
|
582
618
|
* Called when {@link LuaForce.reset LuaForce::reset} is finished.
|
583
619
|
*
|
584
|
-
* {@link https://lua-api.factorio.com/
|
620
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_force_reset View documentation}
|
585
621
|
*/
|
586
622
|
interface OnForceResetEvent {
|
587
|
-
readonly force: LuaForce
|
623
|
+
readonly force: LuaForce
|
588
624
|
/** Identifier of the event */
|
589
|
-
readonly name: typeof defines.events.on_force_reset
|
625
|
+
readonly name: typeof defines.events.on_force_reset
|
590
626
|
/** Tick the event was generated. */
|
591
|
-
readonly tick: uint
|
627
|
+
readonly tick: uint
|
592
628
|
}
|
593
629
|
|
594
630
|
/**
|
@@ -596,87 +632,88 @@ interface OnForceResetEvent {
|
|
596
632
|
*
|
597
633
|
* **Note**: The source force is invalidated before this event is called and the name can be re-used in this event if desired.
|
598
634
|
*
|
599
|
-
* {@link https://lua-api.factorio.com/
|
635
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_forces_merged View documentation}
|
600
636
|
*/
|
601
637
|
interface OnForcesMergedEvent {
|
602
638
|
/** The force destroyed. */
|
603
|
-
readonly source_name: string
|
639
|
+
readonly source_name: string
|
604
640
|
/** The index of the destroyed force. */
|
605
|
-
readonly source_index: uint
|
641
|
+
readonly source_index: uint
|
606
642
|
/** The force entities where reassigned to. */
|
607
|
-
readonly destination: LuaForce
|
643
|
+
readonly destination: LuaForce
|
608
644
|
/** Identifier of the event */
|
609
|
-
readonly name: typeof defines.events.on_forces_merged
|
645
|
+
readonly name: typeof defines.events.on_forces_merged
|
610
646
|
/** Tick the event was generated. */
|
611
|
-
readonly tick: uint
|
647
|
+
readonly tick: uint
|
612
648
|
}
|
613
649
|
|
614
650
|
/**
|
615
651
|
* Called when two forces are about to be merged using `game.merge_forces()`.
|
616
652
|
*
|
617
|
-
* {@link https://lua-api.factorio.com/
|
653
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_forces_merging View documentation}
|
618
654
|
*/
|
619
655
|
interface OnForcesMergingEvent {
|
620
656
|
/** The force to be destroyed */
|
621
|
-
readonly source: LuaForce
|
657
|
+
readonly source: LuaForce
|
622
658
|
/** The force to reassign entities to. */
|
623
|
-
readonly destination: LuaForce
|
659
|
+
readonly destination: LuaForce
|
624
660
|
/** Identifier of the event */
|
625
|
-
readonly name: typeof defines.events.on_forces_merging
|
661
|
+
readonly name: typeof defines.events.on_forces_merging
|
626
662
|
/** Tick the event was generated. */
|
627
|
-
readonly tick: uint
|
663
|
+
readonly tick: uint
|
628
664
|
}
|
629
665
|
|
630
666
|
/**
|
631
|
-
* Called when a game is created from a scenario.
|
667
|
+
* Called when a game is created from a scenario. This is fired for every mod, even when the scenario's save data
|
668
|
+
* already includes it. In those cases however, {@link LuaBootstrap.on_init LuaBootstrap::on_init} is not fired.
|
632
669
|
*
|
633
|
-
* {@link https://lua-api.factorio.com/
|
670
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_game_created_from_scenario View documentation}
|
634
671
|
*/
|
635
672
|
interface OnGameCreatedFromScenarioEvent {
|
636
673
|
/** Identifier of the event */
|
637
|
-
readonly name: typeof defines.events.on_game_created_from_scenario
|
674
|
+
readonly name: typeof defines.events.on_game_created_from_scenario
|
638
675
|
/** Tick the event was generated. */
|
639
|
-
readonly tick: uint
|
676
|
+
readonly tick: uint
|
640
677
|
}
|
641
678
|
|
642
679
|
/**
|
643
680
|
* Called when {@link LuaGuiElement} checked state is changed (related to checkboxes and radio buttons).
|
644
681
|
*
|
645
|
-
* {@link https://lua-api.factorio.com/
|
682
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_gui_checked_state_changed View documentation}
|
646
683
|
*/
|
647
684
|
interface OnGuiCheckedStateChangedEvent {
|
648
685
|
/** The element whose checked state changed. */
|
649
|
-
readonly element: LuaGuiElement
|
686
|
+
readonly element: LuaGuiElement
|
650
687
|
/** The player who did the change. */
|
651
|
-
readonly player_index: uint
|
688
|
+
readonly player_index: uint
|
652
689
|
/** Identifier of the event */
|
653
|
-
readonly name: typeof defines.events.on_gui_checked_state_changed
|
690
|
+
readonly name: typeof defines.events.on_gui_checked_state_changed
|
654
691
|
/** Tick the event was generated. */
|
655
|
-
readonly tick: uint
|
692
|
+
readonly tick: uint
|
656
693
|
}
|
657
694
|
|
658
695
|
/**
|
659
696
|
* Called when {@link LuaGuiElement} is clicked.
|
660
697
|
*
|
661
|
-
* {@link https://lua-api.factorio.com/
|
698
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_gui_click View documentation}
|
662
699
|
*/
|
663
700
|
interface OnGuiClickEvent {
|
664
701
|
/** The clicked element. */
|
665
|
-
readonly element: LuaGuiElement
|
702
|
+
readonly element: LuaGuiElement
|
666
703
|
/** The player who did the clicking. */
|
667
|
-
readonly player_index: uint
|
704
|
+
readonly player_index: uint
|
668
705
|
/** The mouse button used if any. */
|
669
|
-
readonly button: defines.mouse_button_type
|
706
|
+
readonly button: defines.mouse_button_type
|
670
707
|
/** If alt was pressed. */
|
671
|
-
readonly alt: boolean
|
708
|
+
readonly alt: boolean
|
672
709
|
/** If control was pressed. */
|
673
|
-
readonly control: boolean
|
710
|
+
readonly control: boolean
|
674
711
|
/** If shift was pressed. */
|
675
|
-
readonly shift: boolean
|
712
|
+
readonly shift: boolean
|
676
713
|
/** Identifier of the event */
|
677
|
-
readonly name: typeof defines.events.on_gui_click
|
714
|
+
readonly name: typeof defines.events.on_gui_click
|
678
715
|
/** Tick the event was generated. */
|
679
|
-
readonly tick: uint
|
716
|
+
readonly tick: uint
|
680
717
|
}
|
681
718
|
|
682
719
|
/**
|
@@ -687,336 +724,336 @@ interface OnGuiClickEvent {
|
|
687
724
|
* **Note**: It's not advised to open any other GUI during this event because if this is run as a request to open a
|
688
725
|
* different GUI the game will force close the new opened GUI without notice to ensure the original requested GUI is opened.
|
689
726
|
*
|
690
|
-
* {@link https://lua-api.factorio.com/
|
727
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_gui_closed View documentation}
|
691
728
|
*/
|
692
729
|
interface OnGuiClosedEvent {
|
693
730
|
/** The player. */
|
694
|
-
readonly player_index: uint
|
731
|
+
readonly player_index: uint
|
695
732
|
/** The GUI type that was open. */
|
696
|
-
readonly gui_type: defines.gui_type
|
733
|
+
readonly gui_type: defines.gui_type
|
697
734
|
/** The entity that was open */
|
698
|
-
readonly entity?: LuaEntity
|
735
|
+
readonly entity?: LuaEntity
|
699
736
|
/** The item that was open */
|
700
|
-
readonly item?: LuaItemStack
|
737
|
+
readonly item?: LuaItemStack
|
701
738
|
/** The equipment that was open */
|
702
|
-
readonly equipment?: LuaEquipment
|
739
|
+
readonly equipment?: LuaEquipment
|
703
740
|
/** The other player that was open */
|
704
|
-
readonly other_player?: LuaPlayer
|
741
|
+
readonly other_player?: LuaPlayer
|
705
742
|
/** The custom GUI element that was open */
|
706
|
-
readonly element?: LuaGuiElement
|
743
|
+
readonly element?: LuaGuiElement
|
707
744
|
/** The technology that was automatically selected when opening the research GUI */
|
708
|
-
readonly technology?: LuaTechnology
|
745
|
+
readonly technology?: LuaTechnology
|
709
746
|
/** The tile position that was open */
|
710
|
-
readonly tile_position?: TilePosition
|
747
|
+
readonly tile_position?: TilePosition
|
711
748
|
/** Identifier of the event */
|
712
|
-
readonly name: typeof defines.events.on_gui_closed
|
749
|
+
readonly name: typeof defines.events.on_gui_closed
|
713
750
|
/** Tick the event was generated. */
|
714
|
-
readonly tick: uint
|
751
|
+
readonly tick: uint
|
715
752
|
}
|
716
753
|
|
717
754
|
/**
|
718
755
|
* Called when a {@link LuaGuiElement} is confirmed, for example by pressing Enter in a textfield.
|
719
756
|
*
|
720
|
-
* {@link https://lua-api.factorio.com/
|
757
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_gui_confirmed View documentation}
|
721
758
|
*/
|
722
759
|
interface OnGuiConfirmedEvent {
|
723
760
|
/** The confirmed element. */
|
724
|
-
readonly element: LuaGuiElement
|
761
|
+
readonly element: LuaGuiElement
|
725
762
|
/** The player who did the confirming. */
|
726
|
-
readonly player_index: uint
|
763
|
+
readonly player_index: uint
|
727
764
|
/** If alt was pressed. */
|
728
|
-
readonly alt: boolean
|
765
|
+
readonly alt: boolean
|
729
766
|
/** If control was pressed. */
|
730
|
-
readonly control: boolean
|
767
|
+
readonly control: boolean
|
731
768
|
/** If shift was pressed. */
|
732
|
-
readonly shift: boolean
|
769
|
+
readonly shift: boolean
|
733
770
|
/** Identifier of the event */
|
734
|
-
readonly name: typeof defines.events.on_gui_confirmed
|
771
|
+
readonly name: typeof defines.events.on_gui_confirmed
|
735
772
|
/** Tick the event was generated. */
|
736
|
-
readonly tick: uint
|
773
|
+
readonly tick: uint
|
737
774
|
}
|
738
775
|
|
739
776
|
/**
|
740
777
|
* Called when {@link LuaGuiElement} element value is changed (related to choose element buttons).
|
741
778
|
*
|
742
|
-
* {@link https://lua-api.factorio.com/
|
779
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_gui_elem_changed View documentation}
|
743
780
|
*/
|
744
781
|
interface OnGuiElemChangedEvent {
|
745
782
|
/** The element whose element value changed. */
|
746
|
-
readonly element: LuaGuiElement
|
783
|
+
readonly element: LuaGuiElement
|
747
784
|
/** The player who did the change. */
|
748
|
-
readonly player_index: uint
|
785
|
+
readonly player_index: uint
|
749
786
|
/** Identifier of the event */
|
750
|
-
readonly name: typeof defines.events.on_gui_elem_changed
|
787
|
+
readonly name: typeof defines.events.on_gui_elem_changed
|
751
788
|
/** Tick the event was generated. */
|
752
|
-
readonly tick: uint
|
789
|
+
readonly tick: uint
|
753
790
|
}
|
754
791
|
|
755
792
|
/**
|
756
793
|
* Called when {@link LuaGuiElement} element location is changed (related to frames in `player.gui.screen`).
|
757
794
|
*
|
758
|
-
* {@link https://lua-api.factorio.com/
|
795
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_gui_location_changed View documentation}
|
759
796
|
*/
|
760
797
|
interface OnGuiLocationChangedEvent {
|
761
798
|
/** The element whose location changed. */
|
762
|
-
readonly element: LuaGuiElement
|
799
|
+
readonly element: LuaGuiElement
|
763
800
|
/** The player who did the change. */
|
764
|
-
readonly player_index: uint
|
801
|
+
readonly player_index: uint
|
765
802
|
/** Identifier of the event */
|
766
|
-
readonly name: typeof defines.events.on_gui_location_changed
|
803
|
+
readonly name: typeof defines.events.on_gui_location_changed
|
767
804
|
/** Tick the event was generated. */
|
768
|
-
readonly tick: uint
|
805
|
+
readonly tick: uint
|
769
806
|
}
|
770
807
|
|
771
808
|
/**
|
772
809
|
* Called when the player opens a GUI.
|
773
810
|
*
|
774
|
-
* {@link https://lua-api.factorio.com/
|
811
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_gui_opened View documentation}
|
775
812
|
*/
|
776
813
|
interface OnGuiOpenedEvent {
|
777
814
|
/** The player. */
|
778
|
-
readonly player_index: uint
|
815
|
+
readonly player_index: uint
|
779
816
|
/** The GUI type that was opened. */
|
780
|
-
readonly gui_type: defines.gui_type
|
817
|
+
readonly gui_type: defines.gui_type
|
781
818
|
/** The entity that was opened */
|
782
|
-
readonly entity?: LuaEntity
|
819
|
+
readonly entity?: LuaEntity
|
783
820
|
/** The item that was opened */
|
784
|
-
readonly item?: LuaItemStack
|
821
|
+
readonly item?: LuaItemStack
|
785
822
|
/** The equipment that was opened */
|
786
|
-
readonly equipment?: LuaEquipment
|
823
|
+
readonly equipment?: LuaEquipment
|
787
824
|
/** The other player that was opened */
|
788
|
-
readonly other_player?: LuaPlayer
|
825
|
+
readonly other_player?: LuaPlayer
|
789
826
|
/** The custom GUI element that was opened */
|
790
|
-
readonly element?: LuaGuiElement
|
827
|
+
readonly element?: LuaGuiElement
|
791
828
|
/** Identifier of the event */
|
792
|
-
readonly name: typeof defines.events.on_gui_opened
|
829
|
+
readonly name: typeof defines.events.on_gui_opened
|
793
830
|
/** Tick the event was generated. */
|
794
|
-
readonly tick: uint
|
831
|
+
readonly tick: uint
|
795
832
|
}
|
796
833
|
|
797
834
|
/**
|
798
835
|
* Called when {@link LuaGuiElement} selected tab is changed (related to tabbed-panes).
|
799
836
|
*
|
800
|
-
* {@link https://lua-api.factorio.com/
|
837
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_gui_selected_tab_changed View documentation}
|
801
838
|
*/
|
802
839
|
interface OnGuiSelectedTabChangedEvent {
|
803
840
|
/** The tabbed pane whose selected tab changed. */
|
804
|
-
readonly element: LuaGuiElement
|
841
|
+
readonly element: LuaGuiElement
|
805
842
|
/** The player who did the change. */
|
806
|
-
readonly player_index: uint
|
843
|
+
readonly player_index: uint
|
807
844
|
/** Identifier of the event */
|
808
|
-
readonly name: typeof defines.events.on_gui_selected_tab_changed
|
845
|
+
readonly name: typeof defines.events.on_gui_selected_tab_changed
|
809
846
|
/** Tick the event was generated. */
|
810
|
-
readonly tick: uint
|
847
|
+
readonly tick: uint
|
811
848
|
}
|
812
849
|
|
813
850
|
/**
|
814
851
|
* Called when {@link LuaGuiElement} selection state is changed (related to drop-downs and listboxes).
|
815
852
|
*
|
816
|
-
* {@link https://lua-api.factorio.com/
|
853
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_gui_selection_state_changed View documentation}
|
817
854
|
*/
|
818
855
|
interface OnGuiSelectionStateChangedEvent {
|
819
856
|
/** The element whose selection state changed. */
|
820
|
-
readonly element: LuaGuiElement
|
857
|
+
readonly element: LuaGuiElement
|
821
858
|
/** The player who did the change. */
|
822
|
-
readonly player_index: uint
|
859
|
+
readonly player_index: uint
|
823
860
|
/** Identifier of the event */
|
824
|
-
readonly name: typeof defines.events.on_gui_selection_state_changed
|
861
|
+
readonly name: typeof defines.events.on_gui_selection_state_changed
|
825
862
|
/** Tick the event was generated. */
|
826
|
-
readonly tick: uint
|
863
|
+
readonly tick: uint
|
827
864
|
}
|
828
865
|
|
829
866
|
/**
|
830
867
|
* Called when {@link LuaGuiElement} switch state is changed (related to switches).
|
831
868
|
*
|
832
|
-
* {@link https://lua-api.factorio.com/
|
869
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_gui_switch_state_changed View documentation}
|
833
870
|
*/
|
834
871
|
interface OnGuiSwitchStateChangedEvent {
|
835
872
|
/** The switch whose switch state changed. */
|
836
|
-
readonly element: LuaGuiElement
|
873
|
+
readonly element: LuaGuiElement
|
837
874
|
/** The player who did the change. */
|
838
|
-
readonly player_index: uint
|
875
|
+
readonly player_index: uint
|
839
876
|
/** Identifier of the event */
|
840
|
-
readonly name: typeof defines.events.on_gui_switch_state_changed
|
877
|
+
readonly name: typeof defines.events.on_gui_switch_state_changed
|
841
878
|
/** Tick the event was generated. */
|
842
|
-
readonly tick: uint
|
879
|
+
readonly tick: uint
|
843
880
|
}
|
844
881
|
|
845
882
|
/**
|
846
883
|
* Called when {@link LuaGuiElement} text is changed by the player.
|
847
884
|
*
|
848
|
-
* {@link https://lua-api.factorio.com/
|
885
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_gui_text_changed View documentation}
|
849
886
|
*/
|
850
887
|
interface OnGuiTextChangedEvent {
|
851
888
|
/** The edited element. */
|
852
|
-
readonly element: LuaGuiElement
|
889
|
+
readonly element: LuaGuiElement
|
853
890
|
/** The player who did the edit. */
|
854
|
-
readonly player_index: uint
|
891
|
+
readonly player_index: uint
|
855
892
|
/** The new text in the element. */
|
856
|
-
readonly text: string
|
893
|
+
readonly text: string
|
857
894
|
/** Identifier of the event */
|
858
|
-
readonly name: typeof defines.events.on_gui_text_changed
|
895
|
+
readonly name: typeof defines.events.on_gui_text_changed
|
859
896
|
/** Tick the event was generated. */
|
860
|
-
readonly tick: uint
|
897
|
+
readonly tick: uint
|
861
898
|
}
|
862
899
|
|
863
900
|
/**
|
864
901
|
* Called when {@link LuaGuiElement} slider value is changed (related to the slider element).
|
865
902
|
*
|
866
|
-
* {@link https://lua-api.factorio.com/
|
903
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_gui_value_changed View documentation}
|
867
904
|
*/
|
868
905
|
interface OnGuiValueChangedEvent {
|
869
906
|
/** The element whose value changed. */
|
870
|
-
readonly element: LuaGuiElement
|
907
|
+
readonly element: LuaGuiElement
|
871
908
|
/** The player who did the change. */
|
872
|
-
readonly player_index: uint
|
909
|
+
readonly player_index: uint
|
873
910
|
/** Identifier of the event */
|
874
|
-
readonly name: typeof defines.events.on_gui_value_changed
|
911
|
+
readonly name: typeof defines.events.on_gui_value_changed
|
875
912
|
/** Tick the event was generated. */
|
876
|
-
readonly tick: uint
|
913
|
+
readonly tick: uint
|
877
914
|
}
|
878
915
|
|
879
916
|
/**
|
880
917
|
* Called when a land mine is armed.
|
881
918
|
*
|
882
|
-
* {@link https://lua-api.factorio.com/
|
919
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_land_mine_armed View documentation}
|
883
920
|
*/
|
884
921
|
interface OnLandMineArmedEvent {
|
885
|
-
readonly mine: LuaEntity
|
922
|
+
readonly mine: LuaEntity
|
886
923
|
/** Identifier of the event */
|
887
|
-
readonly name: typeof defines.events.on_land_mine_armed
|
924
|
+
readonly name: typeof defines.events.on_land_mine_armed
|
888
925
|
/** Tick the event was generated. */
|
889
|
-
readonly tick: uint
|
926
|
+
readonly tick: uint
|
890
927
|
}
|
891
928
|
|
892
929
|
/**
|
893
930
|
* Called when a custom Lua shortcut is pressed.
|
894
931
|
*
|
895
|
-
* {@link https://lua-api.factorio.com/
|
932
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_lua_shortcut View documentation}
|
896
933
|
*/
|
897
934
|
interface OnLuaShortcutEvent {
|
898
|
-
readonly player_index: uint
|
935
|
+
readonly player_index: uint
|
899
936
|
/** Shortcut prototype name of the shortcut that was clicked. */
|
900
|
-
readonly prototype_name: string
|
937
|
+
readonly prototype_name: string
|
901
938
|
/** Identifier of the event */
|
902
|
-
readonly name: typeof defines.events.on_lua_shortcut
|
939
|
+
readonly name: typeof defines.events.on_lua_shortcut
|
903
940
|
/** Tick the event was generated. */
|
904
|
-
readonly tick: uint
|
941
|
+
readonly tick: uint
|
905
942
|
}
|
906
943
|
|
907
944
|
/**
|
908
945
|
* Called when an entity is marked for deconstruction with the Deconstruction planner or via script. Can be filtered
|
909
946
|
* using {@link LuaEntityMarkedForDeconstructionEventFilter}.
|
910
947
|
*
|
911
|
-
* {@link https://lua-api.factorio.com/
|
948
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_marked_for_deconstruction View documentation}
|
912
949
|
*/
|
913
950
|
interface OnMarkedForDeconstructionEvent {
|
914
|
-
readonly entity: LuaEntity
|
915
|
-
readonly player_index?: uint
|
951
|
+
readonly entity: LuaEntity
|
952
|
+
readonly player_index?: uint
|
916
953
|
/** Identifier of the event */
|
917
|
-
readonly name: typeof defines.events.on_marked_for_deconstruction
|
954
|
+
readonly name: typeof defines.events.on_marked_for_deconstruction
|
918
955
|
/** Tick the event was generated. */
|
919
|
-
readonly tick: uint
|
956
|
+
readonly tick: uint
|
920
957
|
}
|
921
958
|
|
922
959
|
/**
|
923
960
|
* Called when an entity is marked for upgrade with the Upgrade planner or via script. Can be filtered using
|
924
961
|
* {@link LuaEntityMarkedForUpgradeEventFilter}.
|
925
962
|
*
|
926
|
-
* {@link https://lua-api.factorio.com/
|
963
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_marked_for_upgrade View documentation}
|
927
964
|
*/
|
928
965
|
interface OnMarkedForUpgradeEvent {
|
929
|
-
readonly entity: LuaEntity
|
930
|
-
readonly target: LuaEntityPrototype
|
931
|
-
readonly player_index?: uint
|
966
|
+
readonly entity: LuaEntity
|
967
|
+
readonly target: LuaEntityPrototype
|
968
|
+
readonly player_index?: uint
|
932
969
|
/** The new direction (if any) */
|
933
|
-
readonly direction?: defines.direction
|
970
|
+
readonly direction?: defines.direction
|
934
971
|
/** Identifier of the event */
|
935
|
-
readonly name: typeof defines.events.on_marked_for_upgrade
|
972
|
+
readonly name: typeof defines.events.on_marked_for_upgrade
|
936
973
|
/** Tick the event was generated. */
|
937
|
-
readonly tick: uint
|
974
|
+
readonly tick: uint
|
938
975
|
}
|
939
976
|
|
940
977
|
/**
|
941
978
|
* Called after a player purchases some offer from a `market` entity.
|
942
979
|
*
|
943
|
-
* {@link https://lua-api.factorio.com/
|
980
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_market_item_purchased View documentation}
|
944
981
|
*/
|
945
982
|
interface OnMarketItemPurchasedEvent {
|
946
983
|
/** The player who did the purchasing. */
|
947
|
-
readonly player_index: uint
|
984
|
+
readonly player_index: uint
|
948
985
|
/** The market entity. */
|
949
|
-
readonly market: LuaEntity
|
986
|
+
readonly market: LuaEntity
|
950
987
|
/** The index of the offer purchased. */
|
951
|
-
readonly offer_index: uint
|
988
|
+
readonly offer_index: uint
|
952
989
|
/** The amount of offers purchased. */
|
953
|
-
readonly count: uint
|
990
|
+
readonly count: uint
|
954
991
|
/** Identifier of the event */
|
955
|
-
readonly name: typeof defines.events.on_market_item_purchased
|
992
|
+
readonly name: typeof defines.events.on_market_item_purchased
|
956
993
|
/** Tick the event was generated. */
|
957
|
-
readonly tick: uint
|
994
|
+
readonly tick: uint
|
958
995
|
}
|
959
996
|
|
960
997
|
/**
|
961
998
|
* Called when the player uses the 'Open item GUI' control on an item defined with the 'mod-openable' flag
|
962
999
|
*
|
963
|
-
* {@link https://lua-api.factorio.com/
|
1000
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_mod_item_opened View documentation}
|
964
1001
|
*/
|
965
1002
|
interface OnModItemOpenedEvent {
|
966
1003
|
/** The player. */
|
967
|
-
readonly player_index: uint
|
1004
|
+
readonly player_index: uint
|
968
1005
|
/** The item clicked on. */
|
969
|
-
readonly item: LuaItemPrototype
|
1006
|
+
readonly item: LuaItemPrototype
|
970
1007
|
/** Identifier of the event */
|
971
|
-
readonly name: typeof defines.events.on_mod_item_opened
|
1008
|
+
readonly name: typeof defines.events.on_mod_item_opened
|
972
1009
|
/** Tick the event was generated. */
|
973
|
-
readonly tick: uint
|
1010
|
+
readonly tick: uint
|
974
1011
|
}
|
975
1012
|
|
976
1013
|
/**
|
977
1014
|
* Called directly after a permission group is added.
|
978
1015
|
*
|
979
|
-
* {@link https://lua-api.factorio.com/
|
1016
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_permission_group_added View documentation}
|
980
1017
|
*/
|
981
1018
|
interface OnPermissionGroupAddedEvent {
|
982
1019
|
/** The player that added the group. */
|
983
|
-
readonly player_index: uint
|
1020
|
+
readonly player_index: uint
|
984
1021
|
/** The group added. */
|
985
|
-
readonly group: LuaPermissionGroup
|
1022
|
+
readonly group: LuaPermissionGroup
|
986
1023
|
/** Identifier of the event */
|
987
|
-
readonly name: typeof defines.events.on_permission_group_added
|
1024
|
+
readonly name: typeof defines.events.on_permission_group_added
|
988
1025
|
/** Tick the event was generated. */
|
989
|
-
readonly tick: uint
|
1026
|
+
readonly tick: uint
|
990
1027
|
}
|
991
1028
|
|
992
1029
|
/**
|
993
1030
|
* Called directly after a permission group is deleted.
|
994
1031
|
*
|
995
|
-
* {@link https://lua-api.factorio.com/
|
1032
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_permission_group_deleted View documentation}
|
996
1033
|
*/
|
997
1034
|
interface OnPermissionGroupDeletedEvent {
|
998
1035
|
/** The player doing the deletion. */
|
999
|
-
readonly player_index: uint
|
1036
|
+
readonly player_index: uint
|
1000
1037
|
/** The group that was deleted. */
|
1001
|
-
readonly group_name: string
|
1038
|
+
readonly group_name: string
|
1002
1039
|
/** The group id that was deleted. */
|
1003
|
-
readonly id: uint
|
1040
|
+
readonly id: uint
|
1004
1041
|
/** Identifier of the event */
|
1005
|
-
readonly name: typeof defines.events.on_permission_group_deleted
|
1042
|
+
readonly name: typeof defines.events.on_permission_group_deleted
|
1006
1043
|
/** Tick the event was generated. */
|
1007
|
-
readonly tick: uint
|
1044
|
+
readonly tick: uint
|
1008
1045
|
}
|
1009
1046
|
|
1010
1047
|
/**
|
1011
1048
|
* Called directly after a permission group is edited in some way.
|
1012
1049
|
*
|
1013
|
-
* {@link https://lua-api.factorio.com/
|
1050
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_permission_group_edited View documentation}
|
1014
1051
|
*/
|
1015
1052
|
interface OnPermissionGroupEditedEvent {
|
1016
1053
|
/** The player that did the editing. */
|
1017
|
-
readonly player_index: uint
|
1054
|
+
readonly player_index: uint
|
1018
1055
|
/** The group being edited. */
|
1019
|
-
readonly group: LuaPermissionGroup
|
1056
|
+
readonly group: LuaPermissionGroup
|
1020
1057
|
/** The edit type: "add-permission", "remove-permission", "enable-all", "disable-all", "add-player", "remove-player", "rename". */
|
1021
1058
|
readonly type:
|
1022
1059
|
| "add-permission"
|
@@ -1025,190 +1062,190 @@ interface OnPermissionGroupEditedEvent {
|
|
1025
1062
|
| "disable-all"
|
1026
1063
|
| "add-player"
|
1027
1064
|
| "remove-player"
|
1028
|
-
| "rename"
|
1065
|
+
| "rename"
|
1029
1066
|
/** The action when the `type` is "add-permission" or "remove-permission". */
|
1030
|
-
readonly action: defines.input_action
|
1067
|
+
readonly action: defines.input_action
|
1031
1068
|
/** The other player when the `type` is "add-player" or "remove-player". */
|
1032
|
-
readonly other_player_index: uint
|
1069
|
+
readonly other_player_index: uint
|
1033
1070
|
/** The old group name when the `type` is "rename". */
|
1034
|
-
readonly old_name: string
|
1071
|
+
readonly old_name: string
|
1035
1072
|
/** The new group name when the `type` is "rename". */
|
1036
|
-
readonly new_name: string
|
1073
|
+
readonly new_name: string
|
1037
1074
|
/** Identifier of the event */
|
1038
|
-
readonly name: typeof defines.events.on_permission_group_edited
|
1075
|
+
readonly name: typeof defines.events.on_permission_group_edited
|
1039
1076
|
/** Tick the event was generated. */
|
1040
|
-
readonly tick: uint
|
1077
|
+
readonly tick: uint
|
1041
1078
|
}
|
1042
1079
|
|
1043
1080
|
/**
|
1044
1081
|
* Called directly after a permission string is imported.
|
1045
1082
|
*
|
1046
|
-
* {@link https://lua-api.factorio.com/
|
1083
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_permission_string_imported View documentation}
|
1047
1084
|
*/
|
1048
1085
|
interface OnPermissionStringImportedEvent {
|
1049
1086
|
/** The player that imported the string. */
|
1050
|
-
readonly player_index: uint
|
1087
|
+
readonly player_index: uint
|
1051
1088
|
/** Identifier of the event */
|
1052
|
-
readonly name: typeof defines.events.on_permission_string_imported
|
1089
|
+
readonly name: typeof defines.events.on_permission_string_imported
|
1053
1090
|
/** Tick the event was generated. */
|
1054
|
-
readonly tick: uint
|
1091
|
+
readonly tick: uint
|
1055
1092
|
}
|
1056
1093
|
|
1057
1094
|
/**
|
1058
1095
|
* Called when a player picks up an item.
|
1059
1096
|
*
|
1060
|
-
* {@link https://lua-api.factorio.com/
|
1097
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_picked_up_item View documentation}
|
1061
1098
|
*/
|
1062
1099
|
interface OnPickedUpItemEvent {
|
1063
|
-
readonly item_stack: SimpleItemStack
|
1064
|
-
readonly player_index: uint
|
1100
|
+
readonly item_stack: SimpleItemStack
|
1101
|
+
readonly player_index: uint
|
1065
1102
|
/** Identifier of the event */
|
1066
|
-
readonly name: typeof defines.events.on_picked_up_item
|
1103
|
+
readonly name: typeof defines.events.on_picked_up_item
|
1067
1104
|
/** Tick the event was generated. */
|
1068
|
-
readonly tick: uint
|
1105
|
+
readonly tick: uint
|
1069
1106
|
}
|
1070
1107
|
|
1071
1108
|
/**
|
1072
1109
|
* Called after a player alt-selects an area with a selection-tool item.
|
1073
1110
|
*
|
1074
|
-
* {@link https://lua-api.factorio.com/
|
1111
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_alt_selected_area View documentation}
|
1075
1112
|
*/
|
1076
1113
|
interface OnPlayerAltSelectedAreaEvent {
|
1077
1114
|
/** The player doing the selection. */
|
1078
|
-
readonly player_index: uint
|
1115
|
+
readonly player_index: uint
|
1079
1116
|
/** The surface selected. */
|
1080
|
-
readonly surface: LuaSurface
|
1117
|
+
readonly surface: LuaSurface
|
1081
1118
|
/** The area selected. */
|
1082
|
-
readonly area: BoundingBox
|
1119
|
+
readonly area: BoundingBox
|
1083
1120
|
/** The item used to select the area. */
|
1084
|
-
readonly item: string
|
1121
|
+
readonly item: string
|
1085
1122
|
/** The entities selected. */
|
1086
|
-
readonly entities: LuaEntity[]
|
1123
|
+
readonly entities: LuaEntity[]
|
1087
1124
|
/** The tiles selected. */
|
1088
|
-
readonly tiles: LuaTile[]
|
1125
|
+
readonly tiles: LuaTile[]
|
1089
1126
|
/** Identifier of the event */
|
1090
|
-
readonly name: typeof defines.events.on_player_alt_selected_area
|
1127
|
+
readonly name: typeof defines.events.on_player_alt_selected_area
|
1091
1128
|
/** Tick the event was generated. */
|
1092
|
-
readonly tick: uint
|
1129
|
+
readonly tick: uint
|
1093
1130
|
}
|
1094
1131
|
|
1095
1132
|
/**
|
1096
1133
|
* Called after a players ammo inventory changed in some way.
|
1097
1134
|
*
|
1098
|
-
* {@link https://lua-api.factorio.com/
|
1135
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_ammo_inventory_changed View documentation}
|
1099
1136
|
*/
|
1100
1137
|
interface OnPlayerAmmoInventoryChangedEvent {
|
1101
|
-
readonly player_index: uint
|
1138
|
+
readonly player_index: uint
|
1102
1139
|
/** Identifier of the event */
|
1103
|
-
readonly name: typeof defines.events.on_player_ammo_inventory_changed
|
1140
|
+
readonly name: typeof defines.events.on_player_ammo_inventory_changed
|
1104
1141
|
/** Tick the event was generated. */
|
1105
|
-
readonly tick: uint
|
1142
|
+
readonly tick: uint
|
1106
1143
|
}
|
1107
1144
|
|
1108
1145
|
/**
|
1109
1146
|
* Called after a players armor inventory changed in some way.
|
1110
1147
|
*
|
1111
|
-
* {@link https://lua-api.factorio.com/
|
1148
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_armor_inventory_changed View documentation}
|
1112
1149
|
*/
|
1113
1150
|
interface OnPlayerArmorInventoryChangedEvent {
|
1114
|
-
readonly player_index: uint
|
1151
|
+
readonly player_index: uint
|
1115
1152
|
/** Identifier of the event */
|
1116
|
-
readonly name: typeof defines.events.on_player_armor_inventory_changed
|
1153
|
+
readonly name: typeof defines.events.on_player_armor_inventory_changed
|
1117
1154
|
/** Tick the event was generated. */
|
1118
|
-
readonly tick: uint
|
1155
|
+
readonly tick: uint
|
1119
1156
|
}
|
1120
1157
|
|
1121
1158
|
/**
|
1122
1159
|
* Called when a player is banned.
|
1123
1160
|
*
|
1124
|
-
* {@link https://lua-api.factorio.com/
|
1161
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_banned View documentation}
|
1125
1162
|
*/
|
1126
1163
|
interface OnPlayerBannedEvent {
|
1127
1164
|
/** The player banned. */
|
1128
|
-
readonly player_index?: uint
|
1165
|
+
readonly player_index?: uint
|
1129
1166
|
/** The banned player name. */
|
1130
|
-
readonly player_name: string
|
1167
|
+
readonly player_name: string
|
1131
1168
|
/** The player that did the banning if any. */
|
1132
|
-
readonly by_player?: uint
|
1169
|
+
readonly by_player?: uint
|
1133
1170
|
/** The reason given if any. */
|
1134
|
-
readonly reason?: string
|
1171
|
+
readonly reason?: string
|
1135
1172
|
/** Identifier of the event */
|
1136
|
-
readonly name: typeof defines.events.on_player_banned
|
1173
|
+
readonly name: typeof defines.events.on_player_banned
|
1137
1174
|
/** Tick the event was generated. */
|
1138
|
-
readonly tick: uint
|
1175
|
+
readonly tick: uint
|
1139
1176
|
}
|
1140
1177
|
|
1141
1178
|
/**
|
1142
1179
|
* Called after a player builds tiles.
|
1143
1180
|
*
|
1144
|
-
* {@link https://lua-api.factorio.com/
|
1181
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_built_tile View documentation}
|
1145
1182
|
*/
|
1146
1183
|
interface OnPlayerBuiltTileEvent {
|
1147
|
-
readonly player_index: uint
|
1184
|
+
readonly player_index: uint
|
1148
1185
|
/** The surface the tile(s) were built on. */
|
1149
|
-
readonly surface_index: uint
|
1186
|
+
readonly surface_index: uint
|
1150
1187
|
/** The position data. */
|
1151
|
-
readonly tiles: OldTileAndPosition[]
|
1188
|
+
readonly tiles: OldTileAndPosition[]
|
1152
1189
|
/** The tile prototype that was placed. */
|
1153
|
-
readonly tile: LuaTilePrototype
|
1190
|
+
readonly tile: LuaTilePrototype
|
1154
1191
|
/** The item type used to build the tiles */
|
1155
|
-
readonly item?: LuaItemPrototype
|
1192
|
+
readonly item?: LuaItemPrototype
|
1156
1193
|
/** The stack used to build the tiles (may be empty if all of the items where used to build the tiles). */
|
1157
|
-
readonly stack?: LuaItemStack
|
1194
|
+
readonly stack?: LuaItemStack
|
1158
1195
|
/** Identifier of the event */
|
1159
|
-
readonly name: typeof defines.events.on_player_built_tile
|
1196
|
+
readonly name: typeof defines.events.on_player_built_tile
|
1160
1197
|
/** Tick the event was generated. */
|
1161
|
-
readonly tick: uint
|
1198
|
+
readonly tick: uint
|
1162
1199
|
}
|
1163
1200
|
|
1164
1201
|
/**
|
1165
1202
|
* Called when a player cancels crafting.
|
1166
1203
|
*
|
1167
|
-
* {@link https://lua-api.factorio.com/
|
1204
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_cancelled_crafting View documentation}
|
1168
1205
|
*/
|
1169
1206
|
interface OnPlayerCancelledCraftingEvent {
|
1170
1207
|
/** The player that did the crafting. */
|
1171
|
-
readonly player_index: uint
|
1208
|
+
readonly player_index: uint
|
1172
1209
|
/** The crafting items returned to the player's inventory. */
|
1173
|
-
readonly items: LuaInventory
|
1210
|
+
readonly items: LuaInventory
|
1174
1211
|
/** The recipe that has been cancelled. */
|
1175
|
-
readonly recipe: LuaRecipe
|
1212
|
+
readonly recipe: LuaRecipe
|
1176
1213
|
/** The number of crafts that have been cancelled. */
|
1177
|
-
readonly cancel_count: uint
|
1214
|
+
readonly cancel_count: uint
|
1178
1215
|
/** Identifier of the event */
|
1179
|
-
readonly name: typeof defines.events.on_player_cancelled_crafting
|
1216
|
+
readonly name: typeof defines.events.on_player_cancelled_crafting
|
1180
1217
|
/** Tick the event was generated. */
|
1181
|
-
readonly tick: uint
|
1218
|
+
readonly tick: uint
|
1182
1219
|
}
|
1183
1220
|
|
1184
1221
|
/**
|
1185
1222
|
* Called after a player changes forces.
|
1186
1223
|
*
|
1187
|
-
* {@link https://lua-api.factorio.com/
|
1224
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_changed_force View documentation}
|
1188
1225
|
*/
|
1189
1226
|
interface OnPlayerChangedForceEvent {
|
1190
1227
|
/** The player who changed forces. */
|
1191
|
-
readonly player_index: uint
|
1228
|
+
readonly player_index: uint
|
1192
1229
|
/** The old force. */
|
1193
|
-
readonly force: LuaForce
|
1230
|
+
readonly force: LuaForce
|
1194
1231
|
/** Identifier of the event */
|
1195
|
-
readonly name: typeof defines.events.on_player_changed_force
|
1232
|
+
readonly name: typeof defines.events.on_player_changed_force
|
1196
1233
|
/** Tick the event was generated. */
|
1197
|
-
readonly tick: uint
|
1234
|
+
readonly tick: uint
|
1198
1235
|
}
|
1199
1236
|
|
1200
1237
|
/**
|
1201
1238
|
* Called when the tile position a player is located at changes.
|
1202
1239
|
*
|
1203
|
-
* {@link https://lua-api.factorio.com/
|
1240
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_changed_position View documentation}
|
1204
1241
|
*/
|
1205
1242
|
interface OnPlayerChangedPositionEvent {
|
1206
1243
|
/** The player. */
|
1207
|
-
readonly player_index: uint
|
1244
|
+
readonly player_index: uint
|
1208
1245
|
/** Identifier of the event */
|
1209
|
-
readonly name: typeof defines.events.on_player_changed_position
|
1246
|
+
readonly name: typeof defines.events.on_player_changed_position
|
1210
1247
|
/** Tick the event was generated. */
|
1211
|
-
readonly tick: uint
|
1248
|
+
readonly tick: uint
|
1212
1249
|
}
|
1213
1250
|
|
1214
1251
|
/**
|
@@ -1216,361 +1253,361 @@ interface OnPlayerChangedPositionEvent {
|
|
1216
1253
|
*
|
1217
1254
|
* **Note**: In the instance a player is moved off a surface due to it being deleted this is not called.
|
1218
1255
|
*
|
1219
|
-
* {@link https://lua-api.factorio.com/
|
1256
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_changed_surface View documentation}
|
1220
1257
|
*/
|
1221
1258
|
interface OnPlayerChangedSurfaceEvent {
|
1222
1259
|
/** The player who changed surfaces. */
|
1223
|
-
readonly player_index: uint
|
1260
|
+
readonly player_index: uint
|
1224
1261
|
/** The surface index the player was on. */
|
1225
|
-
readonly surface_index: uint
|
1262
|
+
readonly surface_index: uint
|
1226
1263
|
/** Identifier of the event */
|
1227
|
-
readonly name: typeof defines.events.on_player_changed_surface
|
1264
|
+
readonly name: typeof defines.events.on_player_changed_surface
|
1228
1265
|
/** Tick the event was generated. */
|
1229
|
-
readonly tick: uint
|
1266
|
+
readonly tick: uint
|
1230
1267
|
}
|
1231
1268
|
|
1232
1269
|
/**
|
1233
1270
|
* Called when cheat mode is disabled on a player.
|
1234
1271
|
*
|
1235
|
-
* {@link https://lua-api.factorio.com/
|
1272
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_cheat_mode_disabled View documentation}
|
1236
1273
|
*/
|
1237
1274
|
interface OnPlayerCheatModeDisabledEvent {
|
1238
1275
|
/** The player. */
|
1239
|
-
readonly player_index: uint
|
1276
|
+
readonly player_index: uint
|
1240
1277
|
/** Identifier of the event */
|
1241
|
-
readonly name: typeof defines.events.on_player_cheat_mode_disabled
|
1278
|
+
readonly name: typeof defines.events.on_player_cheat_mode_disabled
|
1242
1279
|
/** Tick the event was generated. */
|
1243
|
-
readonly tick: uint
|
1280
|
+
readonly tick: uint
|
1244
1281
|
}
|
1245
1282
|
|
1246
1283
|
/**
|
1247
1284
|
* Called when cheat mode is enabled on a player.
|
1248
1285
|
*
|
1249
|
-
* {@link https://lua-api.factorio.com/
|
1286
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_cheat_mode_enabled View documentation}
|
1250
1287
|
*/
|
1251
1288
|
interface OnPlayerCheatModeEnabledEvent {
|
1252
1289
|
/** The player. */
|
1253
|
-
readonly player_index: uint
|
1290
|
+
readonly player_index: uint
|
1254
1291
|
/** Identifier of the event */
|
1255
|
-
readonly name: typeof defines.events.on_player_cheat_mode_enabled
|
1292
|
+
readonly name: typeof defines.events.on_player_cheat_mode_enabled
|
1256
1293
|
/** Tick the event was generated. */
|
1257
|
-
readonly tick: uint
|
1294
|
+
readonly tick: uint
|
1258
1295
|
}
|
1259
1296
|
|
1260
1297
|
/**
|
1261
1298
|
* Called when a player clicks a gps tag
|
1262
1299
|
*
|
1263
|
-
* {@link https://lua-api.factorio.com/
|
1300
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_clicked_gps_tag View documentation}
|
1264
1301
|
*/
|
1265
1302
|
interface OnPlayerClickedGpsTagEvent {
|
1266
1303
|
/** Index of the player */
|
1267
|
-
readonly player_index: uint
|
1304
|
+
readonly player_index: uint
|
1268
1305
|
/** Map position contained in gps tag */
|
1269
|
-
readonly position: Position
|
1306
|
+
readonly position: Position
|
1270
1307
|
/** Surface name contained in gps tag, even when such surface does not exists */
|
1271
|
-
readonly surface: string
|
1308
|
+
readonly surface: string
|
1272
1309
|
/** Identifier of the event */
|
1273
|
-
readonly name: typeof defines.events.on_player_clicked_gps_tag
|
1310
|
+
readonly name: typeof defines.events.on_player_clicked_gps_tag
|
1274
1311
|
/** Tick the event was generated. */
|
1275
|
-
readonly tick: uint
|
1312
|
+
readonly tick: uint
|
1276
1313
|
}
|
1277
1314
|
|
1278
1315
|
/**
|
1279
1316
|
* Called when a player clicks the "confirm" button in the configure Blueprint GUI.
|
1280
1317
|
*
|
1281
|
-
* {@link https://lua-api.factorio.com/
|
1318
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_configured_blueprint View documentation}
|
1282
1319
|
*/
|
1283
1320
|
interface OnPlayerConfiguredBlueprintEvent {
|
1284
1321
|
/** The player. */
|
1285
|
-
readonly player_index: uint
|
1322
|
+
readonly player_index: uint
|
1286
1323
|
/** Identifier of the event */
|
1287
|
-
readonly name: typeof defines.events.on_player_configured_blueprint
|
1324
|
+
readonly name: typeof defines.events.on_player_configured_blueprint
|
1288
1325
|
/** Tick the event was generated. */
|
1289
|
-
readonly tick: uint
|
1326
|
+
readonly tick: uint
|
1290
1327
|
}
|
1291
1328
|
|
1292
1329
|
/**
|
1293
1330
|
* Called when a player configures spidertron remote to be connected with a given spidertron
|
1294
1331
|
*
|
1295
|
-
* {@link https://lua-api.factorio.com/
|
1332
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_configured_spider_remote View documentation}
|
1296
1333
|
*/
|
1297
1334
|
interface OnPlayerConfiguredSpiderRemoteEvent {
|
1298
1335
|
/** The player that configured the remote. */
|
1299
|
-
readonly player_index: uint
|
1336
|
+
readonly player_index: uint
|
1300
1337
|
/** Spider vehicle to which remote was connected to. */
|
1301
|
-
readonly vehicle: LuaEntity
|
1338
|
+
readonly vehicle: LuaEntity
|
1302
1339
|
/** Identifier of the event */
|
1303
|
-
readonly name: typeof defines.events.on_player_configured_spider_remote
|
1340
|
+
readonly name: typeof defines.events.on_player_configured_spider_remote
|
1304
1341
|
/** Tick the event was generated. */
|
1305
|
-
readonly tick: uint
|
1342
|
+
readonly tick: uint
|
1306
1343
|
}
|
1307
1344
|
|
1308
1345
|
/**
|
1309
1346
|
* Called when the player finishes crafting an item. This event fires just before the results are inserted into the
|
1310
1347
|
* player's inventory, not when the crafting is queued (see {@link OnPrePlayerCraftedItemEvent on_pre_player_crafted_item}).
|
1311
1348
|
*
|
1312
|
-
* {@link https://lua-api.factorio.com/
|
1349
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_crafted_item View documentation}
|
1313
1350
|
*/
|
1314
1351
|
interface OnPlayerCraftedItemEvent {
|
1315
1352
|
/** The item that has been crafted. */
|
1316
|
-
readonly item_stack: LuaItemStack
|
1353
|
+
readonly item_stack: LuaItemStack
|
1317
1354
|
/** The player doing the crafting. */
|
1318
|
-
readonly player_index: uint
|
1355
|
+
readonly player_index: uint
|
1319
1356
|
/** The recipe used to craft this item. */
|
1320
|
-
readonly recipe: LuaRecipe
|
1357
|
+
readonly recipe: LuaRecipe
|
1321
1358
|
/** Identifier of the event */
|
1322
|
-
readonly name: typeof defines.events.on_player_crafted_item
|
1359
|
+
readonly name: typeof defines.events.on_player_crafted_item
|
1323
1360
|
/** Tick the event was generated. */
|
1324
|
-
readonly tick: uint
|
1361
|
+
readonly tick: uint
|
1325
1362
|
}
|
1326
1363
|
|
1327
1364
|
/**
|
1328
1365
|
* Called after the player was created.
|
1329
1366
|
*
|
1330
|
-
* {@link https://lua-api.factorio.com/
|
1367
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_created View documentation}
|
1331
1368
|
*/
|
1332
1369
|
interface OnPlayerCreatedEvent {
|
1333
|
-
readonly player_index: uint
|
1370
|
+
readonly player_index: uint
|
1334
1371
|
/** Identifier of the event */
|
1335
|
-
readonly name: typeof defines.events.on_player_created
|
1372
|
+
readonly name: typeof defines.events.on_player_created
|
1336
1373
|
/** Tick the event was generated. */
|
1337
|
-
readonly tick: uint
|
1374
|
+
readonly tick: uint
|
1338
1375
|
}
|
1339
1376
|
|
1340
1377
|
/**
|
1341
1378
|
* Called after a players cursorstack changed in some way.
|
1342
1379
|
*
|
1343
|
-
* {@link https://lua-api.factorio.com/
|
1380
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_cursor_stack_changed View documentation}
|
1344
1381
|
*/
|
1345
1382
|
interface OnPlayerCursorStackChangedEvent {
|
1346
|
-
readonly player_index: uint
|
1383
|
+
readonly player_index: uint
|
1347
1384
|
/** Identifier of the event */
|
1348
|
-
readonly name: typeof defines.events.on_player_cursor_stack_changed
|
1385
|
+
readonly name: typeof defines.events.on_player_cursor_stack_changed
|
1349
1386
|
/** Tick the event was generated. */
|
1350
|
-
readonly tick: uint
|
1387
|
+
readonly tick: uint
|
1351
1388
|
}
|
1352
1389
|
|
1353
1390
|
/**
|
1354
1391
|
* Called when a player selects an area with a deconstruction planner.
|
1355
1392
|
*
|
1356
|
-
* {@link https://lua-api.factorio.com/
|
1393
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_deconstructed_area View documentation}
|
1357
1394
|
*/
|
1358
1395
|
interface OnPlayerDeconstructedAreaEvent {
|
1359
1396
|
/** The player doing the selection. */
|
1360
|
-
readonly player_index: uint
|
1397
|
+
readonly player_index: uint
|
1361
1398
|
/** The surface selected. */
|
1362
|
-
readonly surface: LuaSurface
|
1399
|
+
readonly surface: LuaSurface
|
1363
1400
|
/** The area selected. */
|
1364
|
-
readonly area: BoundingBox
|
1401
|
+
readonly area: BoundingBox
|
1365
1402
|
/** The item used to select the area. */
|
1366
|
-
readonly item: string
|
1403
|
+
readonly item: string
|
1367
1404
|
/** If normal selection or alt selection was used. */
|
1368
|
-
readonly alt: boolean
|
1405
|
+
readonly alt: boolean
|
1369
1406
|
/** Identifier of the event */
|
1370
|
-
readonly name: typeof defines.events.on_player_deconstructed_area
|
1407
|
+
readonly name: typeof defines.events.on_player_deconstructed_area
|
1371
1408
|
/** Tick the event was generated. */
|
1372
|
-
readonly tick: uint
|
1409
|
+
readonly tick: uint
|
1373
1410
|
}
|
1374
1411
|
|
1375
1412
|
/**
|
1376
1413
|
* Called when a player is demoted.
|
1377
1414
|
*
|
1378
|
-
* {@link https://lua-api.factorio.com/
|
1415
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_demoted View documentation}
|
1379
1416
|
*/
|
1380
1417
|
interface OnPlayerDemotedEvent {
|
1381
1418
|
/** The player. */
|
1382
|
-
readonly player_index: uint
|
1419
|
+
readonly player_index: uint
|
1383
1420
|
/** Identifier of the event */
|
1384
|
-
readonly name: typeof defines.events.on_player_demoted
|
1421
|
+
readonly name: typeof defines.events.on_player_demoted
|
1385
1422
|
/** Tick the event was generated. */
|
1386
|
-
readonly tick: uint
|
1423
|
+
readonly tick: uint
|
1387
1424
|
}
|
1388
1425
|
|
1389
1426
|
/**
|
1390
1427
|
* Called after a player dies.
|
1391
1428
|
*
|
1392
|
-
* {@link https://lua-api.factorio.com/
|
1429
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_died View documentation}
|
1393
1430
|
*/
|
1394
1431
|
interface OnPlayerDiedEvent {
|
1395
|
-
readonly player_index: uint
|
1396
|
-
readonly cause?: LuaEntity
|
1432
|
+
readonly player_index: uint
|
1433
|
+
readonly cause?: LuaEntity
|
1397
1434
|
/** Identifier of the event */
|
1398
|
-
readonly name: typeof defines.events.on_player_died
|
1435
|
+
readonly name: typeof defines.events.on_player_died
|
1399
1436
|
/** Tick the event was generated. */
|
1400
|
-
readonly tick: uint
|
1437
|
+
readonly tick: uint
|
1401
1438
|
}
|
1402
1439
|
|
1403
1440
|
/**
|
1404
1441
|
* Called when the display resolution changes for a given player.
|
1405
1442
|
*
|
1406
|
-
* {@link https://lua-api.factorio.com/
|
1443
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_display_resolution_changed View documentation}
|
1407
1444
|
*/
|
1408
1445
|
interface OnPlayerDisplayResolutionChangedEvent {
|
1409
1446
|
/** The player */
|
1410
|
-
readonly player_index: uint
|
1447
|
+
readonly player_index: uint
|
1411
1448
|
/** The old display resolution */
|
1412
|
-
readonly old_resolution: DisplayResolution
|
1449
|
+
readonly old_resolution: DisplayResolution
|
1413
1450
|
/** Identifier of the event */
|
1414
|
-
readonly name: typeof defines.events.on_player_display_resolution_changed
|
1451
|
+
readonly name: typeof defines.events.on_player_display_resolution_changed
|
1415
1452
|
/** Tick the event was generated. */
|
1416
|
-
readonly tick: uint
|
1453
|
+
readonly tick: uint
|
1417
1454
|
}
|
1418
1455
|
|
1419
1456
|
/**
|
1420
1457
|
* Called when the display scale changes for a given player.
|
1421
1458
|
*
|
1422
|
-
* {@link https://lua-api.factorio.com/
|
1459
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_display_scale_changed View documentation}
|
1423
1460
|
*/
|
1424
1461
|
interface OnPlayerDisplayScaleChangedEvent {
|
1425
1462
|
/** The player */
|
1426
|
-
readonly player_index: uint
|
1463
|
+
readonly player_index: uint
|
1427
1464
|
/** The old display scale */
|
1428
|
-
readonly old_scale: double
|
1465
|
+
readonly old_scale: double
|
1429
1466
|
/** Identifier of the event */
|
1430
|
-
readonly name: typeof defines.events.on_player_display_scale_changed
|
1467
|
+
readonly name: typeof defines.events.on_player_display_scale_changed
|
1431
1468
|
/** Tick the event was generated. */
|
1432
|
-
readonly tick: uint
|
1469
|
+
readonly tick: uint
|
1433
1470
|
}
|
1434
1471
|
|
1435
1472
|
/**
|
1436
1473
|
* Called when the player's driving state has changed, this means a player has either entered or left a vehicle.
|
1437
1474
|
*
|
1438
|
-
* {@link https://lua-api.factorio.com/
|
1475
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_driving_changed_state View documentation}
|
1439
1476
|
*/
|
1440
1477
|
interface OnPlayerDrivingChangedStateEvent {
|
1441
|
-
readonly player_index: uint
|
1478
|
+
readonly player_index: uint
|
1442
1479
|
/** The vehicle if any. */
|
1443
|
-
readonly entity?: LuaEntity
|
1480
|
+
readonly entity?: LuaEntity
|
1444
1481
|
/** Identifier of the event */
|
1445
|
-
readonly name: typeof defines.events.on_player_driving_changed_state
|
1482
|
+
readonly name: typeof defines.events.on_player_driving_changed_state
|
1446
1483
|
/** Tick the event was generated. */
|
1447
|
-
readonly tick: uint
|
1484
|
+
readonly tick: uint
|
1448
1485
|
}
|
1449
1486
|
|
1450
1487
|
/**
|
1451
1488
|
* Called when a player drops an item on the ground.
|
1452
1489
|
*
|
1453
|
-
* {@link https://lua-api.factorio.com/
|
1490
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_dropped_item View documentation}
|
1454
1491
|
*/
|
1455
1492
|
interface OnPlayerDroppedItemEvent {
|
1456
|
-
readonly player_index: uint
|
1493
|
+
readonly player_index: uint
|
1457
1494
|
/** The item-on-ground entity. */
|
1458
|
-
readonly entity: LuaEntity
|
1495
|
+
readonly entity: LuaEntity
|
1459
1496
|
/** Identifier of the event */
|
1460
|
-
readonly name: typeof defines.events.on_player_dropped_item
|
1497
|
+
readonly name: typeof defines.events.on_player_dropped_item
|
1461
1498
|
/** Tick the event was generated. */
|
1462
|
-
readonly tick: uint
|
1499
|
+
readonly tick: uint
|
1463
1500
|
}
|
1464
1501
|
|
1465
1502
|
/**
|
1466
1503
|
* Called when a player fast-transfers something to or from an entity.
|
1467
1504
|
*
|
1468
|
-
* {@link https://lua-api.factorio.com/
|
1505
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_fast_transferred View documentation}
|
1469
1506
|
*/
|
1470
1507
|
interface OnPlayerFastTransferredEvent {
|
1471
1508
|
/** The player transferred from or to. */
|
1472
|
-
readonly player_index: uint
|
1509
|
+
readonly player_index: uint
|
1473
1510
|
/** The entity transferred from or to. */
|
1474
|
-
readonly entity: LuaEntity
|
1511
|
+
readonly entity: LuaEntity
|
1475
1512
|
/** Whether the transfer was from player to entity. If `false`, the transfer was from entity to player. */
|
1476
|
-
readonly from_player: boolean
|
1513
|
+
readonly from_player: boolean
|
1477
1514
|
/** Identifier of the event */
|
1478
|
-
readonly name: typeof defines.events.on_player_fast_transferred
|
1515
|
+
readonly name: typeof defines.events.on_player_fast_transferred
|
1479
1516
|
/** Tick the event was generated. */
|
1480
|
-
readonly tick: uint
|
1517
|
+
readonly tick: uint
|
1481
1518
|
}
|
1482
1519
|
|
1483
1520
|
/**
|
1484
1521
|
* Called after player flushed fluid
|
1485
1522
|
*
|
1486
|
-
* {@link https://lua-api.factorio.com/
|
1523
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_flushed_fluid View documentation}
|
1487
1524
|
*/
|
1488
1525
|
interface OnPlayerFlushedFluidEvent {
|
1489
1526
|
/** Index of the player */
|
1490
|
-
readonly player_index: uint
|
1527
|
+
readonly player_index: uint
|
1491
1528
|
/** Name of a fluid that was flushed */
|
1492
|
-
readonly fluid: string
|
1529
|
+
readonly fluid: string
|
1493
1530
|
/** Amount of fluid that was removed */
|
1494
|
-
readonly amount: double
|
1531
|
+
readonly amount: double
|
1495
1532
|
/** Entity from which flush was performed */
|
1496
|
-
readonly entity: LuaEntity
|
1533
|
+
readonly entity: LuaEntity
|
1497
1534
|
/** True if flush was requested only on this entity */
|
1498
|
-
readonly only_this_entity: boolean
|
1535
|
+
readonly only_this_entity: boolean
|
1499
1536
|
/** Identifier of the event */
|
1500
|
-
readonly name: typeof defines.events.on_player_flushed_fluid
|
1537
|
+
readonly name: typeof defines.events.on_player_flushed_fluid
|
1501
1538
|
/** Tick the event was generated. */
|
1502
|
-
readonly tick: uint
|
1539
|
+
readonly tick: uint
|
1503
1540
|
}
|
1504
1541
|
|
1505
1542
|
/**
|
1506
1543
|
* Called after a players gun inventory changed in some way.
|
1507
1544
|
*
|
1508
|
-
* {@link https://lua-api.factorio.com/
|
1545
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_gun_inventory_changed View documentation}
|
1509
1546
|
*/
|
1510
1547
|
interface OnPlayerGunInventoryChangedEvent {
|
1511
|
-
readonly player_index: uint
|
1548
|
+
readonly player_index: uint
|
1512
1549
|
/** Identifier of the event */
|
1513
|
-
readonly name: typeof defines.events.on_player_gun_inventory_changed
|
1550
|
+
readonly name: typeof defines.events.on_player_gun_inventory_changed
|
1514
1551
|
/** Tick the event was generated. */
|
1515
|
-
readonly tick: uint
|
1552
|
+
readonly tick: uint
|
1516
1553
|
}
|
1517
1554
|
|
1518
1555
|
/**
|
1519
1556
|
* Called after a player joins the game.
|
1520
1557
|
*
|
1521
|
-
* {@link https://lua-api.factorio.com/
|
1558
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_joined_game View documentation}
|
1522
1559
|
*/
|
1523
1560
|
interface OnPlayerJoinedGameEvent {
|
1524
|
-
readonly player_index: uint
|
1561
|
+
readonly player_index: uint
|
1525
1562
|
/** Identifier of the event */
|
1526
|
-
readonly name: typeof defines.events.on_player_joined_game
|
1563
|
+
readonly name: typeof defines.events.on_player_joined_game
|
1527
1564
|
/** Tick the event was generated. */
|
1528
|
-
readonly tick: uint
|
1565
|
+
readonly tick: uint
|
1529
1566
|
}
|
1530
1567
|
|
1531
1568
|
/**
|
1532
1569
|
* Called when a player is kicked.
|
1533
1570
|
*
|
1534
|
-
* {@link https://lua-api.factorio.com/
|
1571
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_kicked View documentation}
|
1535
1572
|
*/
|
1536
1573
|
interface OnPlayerKickedEvent {
|
1537
1574
|
/** The player kicked. */
|
1538
|
-
readonly player_index: uint
|
1575
|
+
readonly player_index: uint
|
1539
1576
|
/** The player that did the kicking if any. */
|
1540
|
-
readonly by_player?: uint
|
1577
|
+
readonly by_player?: uint
|
1541
1578
|
/** The reason given if any. */
|
1542
|
-
readonly reason?: string
|
1579
|
+
readonly reason?: string
|
1543
1580
|
/** Identifier of the event */
|
1544
|
-
readonly name: typeof defines.events.on_player_kicked
|
1581
|
+
readonly name: typeof defines.events.on_player_kicked
|
1545
1582
|
/** Tick the event was generated. */
|
1546
|
-
readonly tick: uint
|
1583
|
+
readonly tick: uint
|
1547
1584
|
}
|
1548
1585
|
|
1549
1586
|
/**
|
1550
1587
|
* Called after a player leaves the game.
|
1551
1588
|
*
|
1552
|
-
* {@link https://lua-api.factorio.com/
|
1589
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_left_game View documentation}
|
1553
1590
|
*/
|
1554
1591
|
interface OnPlayerLeftGameEvent {
|
1555
|
-
readonly player_index: uint
|
1556
|
-
readonly reason: defines.disconnect_reason
|
1592
|
+
readonly player_index: uint
|
1593
|
+
readonly reason: defines.disconnect_reason
|
1557
1594
|
/** Identifier of the event */
|
1558
|
-
readonly name: typeof defines.events.on_player_left_game
|
1595
|
+
readonly name: typeof defines.events.on_player_left_game
|
1559
1596
|
/** Tick the event was generated. */
|
1560
|
-
readonly tick: uint
|
1597
|
+
readonly tick: uint
|
1561
1598
|
}
|
1562
1599
|
|
1563
1600
|
/**
|
1564
1601
|
* Called after a players main inventory changed in some way.
|
1565
1602
|
*
|
1566
|
-
* {@link https://lua-api.factorio.com/
|
1603
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_main_inventory_changed View documentation}
|
1567
1604
|
*/
|
1568
1605
|
interface OnPlayerMainInventoryChangedEvent {
|
1569
|
-
readonly player_index: uint
|
1606
|
+
readonly player_index: uint
|
1570
1607
|
/** Identifier of the event */
|
1571
|
-
readonly name: typeof defines.events.on_player_main_inventory_changed
|
1608
|
+
readonly name: typeof defines.events.on_player_main_inventory_changed
|
1572
1609
|
/** Tick the event was generated. */
|
1573
|
-
readonly tick: uint
|
1610
|
+
readonly tick: uint
|
1574
1611
|
}
|
1575
1612
|
|
1576
1613
|
/**
|
@@ -1581,794 +1618,794 @@ interface OnPlayerMainInventoryChangedEvent {
|
|
1581
1618
|
* **Note**: The buffer inventory is special in that it's only valid during this event and has a dynamic size expanding
|
1582
1619
|
* as more items are transferred into it.
|
1583
1620
|
*
|
1584
|
-
* {@link https://lua-api.factorio.com/
|
1621
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_mined_entity View documentation}
|
1585
1622
|
*/
|
1586
1623
|
interface OnPlayerMinedEntityEvent {
|
1587
1624
|
/** The index of the player doing the mining. */
|
1588
|
-
readonly player_index: uint
|
1625
|
+
readonly player_index: uint
|
1589
1626
|
/** The entity that has been mined. */
|
1590
|
-
readonly entity: LuaEntity
|
1627
|
+
readonly entity: LuaEntity
|
1591
1628
|
/** The temporary inventory that holds the result of mining the entity. */
|
1592
|
-
readonly buffer: LuaInventory
|
1629
|
+
readonly buffer: LuaInventory
|
1593
1630
|
/** Identifier of the event */
|
1594
|
-
readonly name: typeof defines.events.on_player_mined_entity
|
1631
|
+
readonly name: typeof defines.events.on_player_mined_entity
|
1595
1632
|
/** Tick the event was generated. */
|
1596
|
-
readonly tick: uint
|
1633
|
+
readonly tick: uint
|
1597
1634
|
}
|
1598
1635
|
|
1599
1636
|
/**
|
1600
1637
|
* Called when the player mines something.
|
1601
1638
|
*
|
1602
|
-
* {@link https://lua-api.factorio.com/
|
1639
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_mined_item View documentation}
|
1603
1640
|
*/
|
1604
1641
|
interface OnPlayerMinedItemEvent {
|
1605
1642
|
/** The item given to the player */
|
1606
|
-
readonly item_stack: SimpleItemStack
|
1607
|
-
readonly player_index: uint
|
1643
|
+
readonly item_stack: SimpleItemStack
|
1644
|
+
readonly player_index: uint
|
1608
1645
|
/** Identifier of the event */
|
1609
|
-
readonly name: typeof defines.events.on_player_mined_item
|
1646
|
+
readonly name: typeof defines.events.on_player_mined_item
|
1610
1647
|
/** Tick the event was generated. */
|
1611
|
-
readonly tick: uint
|
1648
|
+
readonly tick: uint
|
1612
1649
|
}
|
1613
1650
|
|
1614
1651
|
/**
|
1615
1652
|
* Called after a player mines tiles.
|
1616
1653
|
*
|
1617
|
-
* {@link https://lua-api.factorio.com/
|
1654
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_mined_tile View documentation}
|
1618
1655
|
*/
|
1619
1656
|
interface OnPlayerMinedTileEvent {
|
1620
|
-
readonly player_index: uint
|
1657
|
+
readonly player_index: uint
|
1621
1658
|
/** The surface the tile(s) were mined from. */
|
1622
|
-
readonly surface_index: uint
|
1659
|
+
readonly surface_index: uint
|
1623
1660
|
/** The position data. */
|
1624
|
-
readonly tiles: OldTileAndPosition[]
|
1661
|
+
readonly tiles: OldTileAndPosition[]
|
1625
1662
|
/** Identifier of the event */
|
1626
|
-
readonly name: typeof defines.events.on_player_mined_tile
|
1663
|
+
readonly name: typeof defines.events.on_player_mined_tile
|
1627
1664
|
/** Tick the event was generated. */
|
1628
|
-
readonly tick: uint
|
1665
|
+
readonly tick: uint
|
1629
1666
|
}
|
1630
1667
|
|
1631
1668
|
/**
|
1632
1669
|
* Called when a player is muted.
|
1633
1670
|
*
|
1634
|
-
* {@link https://lua-api.factorio.com/
|
1671
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_muted View documentation}
|
1635
1672
|
*/
|
1636
1673
|
interface OnPlayerMutedEvent {
|
1637
1674
|
/** The player. */
|
1638
|
-
readonly player_index: uint
|
1675
|
+
readonly player_index: uint
|
1639
1676
|
/** Identifier of the event */
|
1640
|
-
readonly name: typeof defines.events.on_player_muted
|
1677
|
+
readonly name: typeof defines.events.on_player_muted
|
1641
1678
|
/** Tick the event was generated. */
|
1642
|
-
readonly tick: uint
|
1679
|
+
readonly tick: uint
|
1643
1680
|
}
|
1644
1681
|
|
1645
1682
|
/**
|
1646
1683
|
* Called when a player invokes the "smart pipette" over an entity.
|
1647
1684
|
*
|
1648
|
-
* {@link https://lua-api.factorio.com/
|
1685
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_pipette View documentation}
|
1649
1686
|
*/
|
1650
1687
|
interface OnPlayerPipetteEvent {
|
1651
1688
|
/** The player */
|
1652
|
-
readonly player_index: uint
|
1689
|
+
readonly player_index: uint
|
1653
1690
|
/** The item put in the cursor */
|
1654
|
-
readonly item: LuaItemPrototype
|
1691
|
+
readonly item: LuaItemPrototype
|
1655
1692
|
/** If cheat mode was used to give a free stack of the item. */
|
1656
|
-
readonly used_cheat_mode: boolean
|
1693
|
+
readonly used_cheat_mode: boolean
|
1657
1694
|
/** Identifier of the event */
|
1658
|
-
readonly name: typeof defines.events.on_player_pipette
|
1695
|
+
readonly name: typeof defines.events.on_player_pipette
|
1659
1696
|
/** Tick the event was generated. */
|
1660
|
-
readonly tick: uint
|
1697
|
+
readonly tick: uint
|
1661
1698
|
}
|
1662
1699
|
|
1663
1700
|
/**
|
1664
1701
|
* Called after the player puts equipment in an equipment grid
|
1665
1702
|
*
|
1666
|
-
* {@link https://lua-api.factorio.com/
|
1703
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_placed_equipment View documentation}
|
1667
1704
|
*/
|
1668
1705
|
interface OnPlayerPlacedEquipmentEvent {
|
1669
|
-
readonly player_index: uint
|
1706
|
+
readonly player_index: uint
|
1670
1707
|
/** The equipment put in the equipment grid. */
|
1671
|
-
readonly equipment: LuaEquipment
|
1708
|
+
readonly equipment: LuaEquipment
|
1672
1709
|
/** The equipment grid the equipment was put in. */
|
1673
|
-
readonly grid: LuaEquipmentGrid
|
1710
|
+
readonly grid: LuaEquipmentGrid
|
1674
1711
|
/** Identifier of the event */
|
1675
|
-
readonly name: typeof defines.events.on_player_placed_equipment
|
1712
|
+
readonly name: typeof defines.events.on_player_placed_equipment
|
1676
1713
|
/** Tick the event was generated. */
|
1677
|
-
readonly tick: uint
|
1714
|
+
readonly tick: uint
|
1678
1715
|
}
|
1679
1716
|
|
1680
1717
|
/**
|
1681
1718
|
* Called when a player is promoted.
|
1682
1719
|
*
|
1683
|
-
* {@link https://lua-api.factorio.com/
|
1720
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_promoted View documentation}
|
1684
1721
|
*/
|
1685
1722
|
interface OnPlayerPromotedEvent {
|
1686
1723
|
/** The player. */
|
1687
|
-
readonly player_index: uint
|
1724
|
+
readonly player_index: uint
|
1688
1725
|
/** Identifier of the event */
|
1689
|
-
readonly name: typeof defines.events.on_player_promoted
|
1726
|
+
readonly name: typeof defines.events.on_player_promoted
|
1690
1727
|
/** Tick the event was generated. */
|
1691
|
-
readonly tick: uint
|
1728
|
+
readonly tick: uint
|
1692
1729
|
}
|
1693
1730
|
|
1694
1731
|
/**
|
1695
1732
|
* Called when a player is removed (deleted) from the game. Not to be confused with the player logging of this is
|
1696
1733
|
* different in that the player is deleted as if he never existed in the save file.
|
1697
1734
|
*
|
1698
|
-
* {@link https://lua-api.factorio.com/
|
1735
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_removed View documentation}
|
1699
1736
|
*/
|
1700
1737
|
interface OnPlayerRemovedEvent {
|
1701
1738
|
/** The player index that was removed */
|
1702
|
-
readonly player_index: uint
|
1739
|
+
readonly player_index: uint
|
1703
1740
|
/** Identifier of the event */
|
1704
|
-
readonly name: typeof defines.events.on_player_removed
|
1741
|
+
readonly name: typeof defines.events.on_player_removed
|
1705
1742
|
/** Tick the event was generated. */
|
1706
|
-
readonly tick: uint
|
1743
|
+
readonly tick: uint
|
1707
1744
|
}
|
1708
1745
|
|
1709
1746
|
/**
|
1710
1747
|
* Called after the player removes equipment from an equipment grid
|
1711
1748
|
*
|
1712
|
-
* {@link https://lua-api.factorio.com/
|
1749
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_removed_equipment View documentation}
|
1713
1750
|
*/
|
1714
1751
|
interface OnPlayerRemovedEquipmentEvent {
|
1715
|
-
readonly player_index: uint
|
1752
|
+
readonly player_index: uint
|
1716
1753
|
/** The equipment grid removed from. */
|
1717
|
-
readonly grid: LuaEquipmentGrid
|
1754
|
+
readonly grid: LuaEquipmentGrid
|
1718
1755
|
/** The equipment removed. */
|
1719
|
-
readonly equipment: string
|
1756
|
+
readonly equipment: string
|
1720
1757
|
/** The count of equipment removed. */
|
1721
|
-
readonly count: uint
|
1758
|
+
readonly count: uint
|
1722
1759
|
/** Identifier of the event */
|
1723
|
-
readonly name: typeof defines.events.on_player_removed_equipment
|
1760
|
+
readonly name: typeof defines.events.on_player_removed_equipment
|
1724
1761
|
/** Tick the event was generated. */
|
1725
|
-
readonly tick: uint
|
1762
|
+
readonly tick: uint
|
1726
1763
|
}
|
1727
1764
|
|
1728
1765
|
/**
|
1729
1766
|
* Called when a player repairs an entity. Can be filtered using {@link LuaPlayerRepairedEntityEventFilter}.
|
1730
1767
|
*
|
1731
|
-
* {@link https://lua-api.factorio.com/
|
1768
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_repaired_entity View documentation}
|
1732
1769
|
*/
|
1733
1770
|
interface OnPlayerRepairedEntityEvent {
|
1734
|
-
readonly player_index: uint
|
1735
|
-
readonly entity: LuaEntity
|
1771
|
+
readonly player_index: uint
|
1772
|
+
readonly entity: LuaEntity
|
1736
1773
|
/** Identifier of the event */
|
1737
|
-
readonly name: typeof defines.events.on_player_repaired_entity
|
1774
|
+
readonly name: typeof defines.events.on_player_repaired_entity
|
1738
1775
|
/** Tick the event was generated. */
|
1739
|
-
readonly tick: uint
|
1776
|
+
readonly tick: uint
|
1740
1777
|
}
|
1741
1778
|
|
1742
1779
|
/**
|
1743
1780
|
* Called after a player respawns.
|
1744
1781
|
*
|
1745
|
-
* {@link https://lua-api.factorio.com/
|
1782
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_respawned View documentation}
|
1746
1783
|
*/
|
1747
1784
|
interface OnPlayerRespawnedEvent {
|
1748
|
-
readonly player_index: uint
|
1785
|
+
readonly player_index: uint
|
1749
1786
|
/** The player port used to respawn if one was used. */
|
1750
|
-
readonly player_port?: LuaEntity
|
1787
|
+
readonly player_port?: LuaEntity
|
1751
1788
|
/** Identifier of the event */
|
1752
|
-
readonly name: typeof defines.events.on_player_respawned
|
1789
|
+
readonly name: typeof defines.events.on_player_respawned
|
1753
1790
|
/** Tick the event was generated. */
|
1754
|
-
readonly tick: uint
|
1791
|
+
readonly tick: uint
|
1755
1792
|
}
|
1756
1793
|
|
1757
1794
|
/**
|
1758
1795
|
* Called when the player rotates an entity. This event is only fired when the entity actually changes its orientation
|
1759
1796
|
* -- pressing the rotate key on an entity that can't be rotated won't fire this event.
|
1760
1797
|
*
|
1761
|
-
* {@link https://lua-api.factorio.com/
|
1798
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_rotated_entity View documentation}
|
1762
1799
|
*/
|
1763
1800
|
interface OnPlayerRotatedEntityEvent {
|
1764
1801
|
/** The rotated entity. */
|
1765
|
-
readonly entity: LuaEntity
|
1802
|
+
readonly entity: LuaEntity
|
1766
1803
|
/** The previous direction */
|
1767
|
-
readonly previous_direction: defines.direction
|
1768
|
-
readonly player_index: uint
|
1804
|
+
readonly previous_direction: defines.direction
|
1805
|
+
readonly player_index: uint
|
1769
1806
|
/** Identifier of the event */
|
1770
|
-
readonly name: typeof defines.events.on_player_rotated_entity
|
1807
|
+
readonly name: typeof defines.events.on_player_rotated_entity
|
1771
1808
|
/** Tick the event was generated. */
|
1772
|
-
readonly tick: uint
|
1809
|
+
readonly tick: uint
|
1773
1810
|
}
|
1774
1811
|
|
1775
1812
|
/**
|
1776
1813
|
* Called after a player selects an area with a selection-tool item.
|
1777
1814
|
*
|
1778
|
-
* {@link https://lua-api.factorio.com/
|
1815
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_selected_area View documentation}
|
1779
1816
|
*/
|
1780
1817
|
interface OnPlayerSelectedAreaEvent {
|
1781
1818
|
/** The player doing the selection. */
|
1782
|
-
readonly player_index: uint
|
1819
|
+
readonly player_index: uint
|
1783
1820
|
/** The surface selected. */
|
1784
|
-
readonly surface: LuaSurface
|
1821
|
+
readonly surface: LuaSurface
|
1785
1822
|
/** The area selected. */
|
1786
|
-
readonly area: BoundingBox
|
1823
|
+
readonly area: BoundingBox
|
1787
1824
|
/** The item used to select the area. */
|
1788
|
-
readonly item: string
|
1825
|
+
readonly item: string
|
1789
1826
|
/** The entities selected. */
|
1790
|
-
readonly entities: LuaEntity[]
|
1827
|
+
readonly entities: LuaEntity[]
|
1791
1828
|
/** The tiles selected. */
|
1792
|
-
readonly tiles: LuaTile[]
|
1829
|
+
readonly tiles: LuaTile[]
|
1793
1830
|
/** Identifier of the event */
|
1794
|
-
readonly name: typeof defines.events.on_player_selected_area
|
1831
|
+
readonly name: typeof defines.events.on_player_selected_area
|
1795
1832
|
/** Tick the event was generated. */
|
1796
|
-
readonly tick: uint
|
1833
|
+
readonly tick: uint
|
1797
1834
|
}
|
1798
1835
|
|
1799
1836
|
/**
|
1800
1837
|
* Called when a player sets a quickbar slot to anything (new value, or set to empty).
|
1801
1838
|
*
|
1802
|
-
* {@link https://lua-api.factorio.com/
|
1839
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_set_quick_bar_slot View documentation}
|
1803
1840
|
*/
|
1804
1841
|
interface OnPlayerSetQuickBarSlotEvent {
|
1805
|
-
readonly player_index: uint
|
1842
|
+
readonly player_index: uint
|
1806
1843
|
/** Identifier of the event */
|
1807
|
-
readonly name: typeof defines.events.on_player_set_quick_bar_slot
|
1844
|
+
readonly name: typeof defines.events.on_player_set_quick_bar_slot
|
1808
1845
|
/** Tick the event was generated. */
|
1809
|
-
readonly tick: uint
|
1846
|
+
readonly tick: uint
|
1810
1847
|
}
|
1811
1848
|
|
1812
1849
|
/**
|
1813
1850
|
* Called when a player selects an area with a blueprint.
|
1814
1851
|
*
|
1815
|
-
* {@link https://lua-api.factorio.com/
|
1852
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_setup_blueprint View documentation}
|
1816
1853
|
*/
|
1817
1854
|
interface OnPlayerSetupBlueprintEvent {
|
1818
1855
|
/** The player doing the selection. */
|
1819
|
-
readonly player_index: uint
|
1856
|
+
readonly player_index: uint
|
1820
1857
|
/** The surface selected. */
|
1821
|
-
readonly surface: LuaSurface
|
1858
|
+
readonly surface: LuaSurface
|
1822
1859
|
/** The area selected. */
|
1823
|
-
readonly area: BoundingBox
|
1860
|
+
readonly area: BoundingBox
|
1824
1861
|
/** The item used to select the area. */
|
1825
|
-
readonly item: string
|
1862
|
+
readonly item: string
|
1826
1863
|
/** If normal selection or alt selection was used. */
|
1827
|
-
readonly alt: boolean
|
1864
|
+
readonly alt: boolean
|
1828
1865
|
/** The blueprint entity index to source entity mapping. Note: if any mod changes the blueprint this will be incorrect. */
|
1829
|
-
readonly mapping: LuaLazyLoadedValue<Record<uint, LuaEntity
|
1866
|
+
readonly mapping: LuaLazyLoadedValue<Record<uint, LuaEntity>>
|
1830
1867
|
/** Identifier of the event */
|
1831
|
-
readonly name: typeof defines.events.on_player_setup_blueprint
|
1868
|
+
readonly name: typeof defines.events.on_player_setup_blueprint
|
1832
1869
|
/** Tick the event was generated. */
|
1833
|
-
readonly tick: uint
|
1870
|
+
readonly tick: uint
|
1834
1871
|
}
|
1835
1872
|
|
1836
1873
|
/**
|
1837
1874
|
* Called when a player toggles alt mode, also known as "show entity info".
|
1838
1875
|
*
|
1839
|
-
* {@link https://lua-api.factorio.com/
|
1876
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_toggled_alt_mode View documentation}
|
1840
1877
|
*/
|
1841
1878
|
interface OnPlayerToggledAltModeEvent {
|
1842
|
-
readonly player_index: uint
|
1879
|
+
readonly player_index: uint
|
1843
1880
|
/**
|
1844
1881
|
* The new alt mode value. This value is a shortcut for accessing
|
1845
1882
|
* {@link GameViewSettings.show_entity_info GameViewSettings::show_entity_info} on the player.
|
1846
1883
|
*/
|
1847
|
-
readonly alt_mode: boolean
|
1884
|
+
readonly alt_mode: boolean
|
1848
1885
|
/** Identifier of the event */
|
1849
|
-
readonly name: typeof defines.events.on_player_toggled_alt_mode
|
1886
|
+
readonly name: typeof defines.events.on_player_toggled_alt_mode
|
1850
1887
|
/** Tick the event was generated. */
|
1851
|
-
readonly tick: uint
|
1888
|
+
readonly tick: uint
|
1852
1889
|
}
|
1853
1890
|
|
1854
1891
|
/**
|
1855
1892
|
* Called when a player toggles the map editor on or off.
|
1856
1893
|
*
|
1857
|
-
* {@link https://lua-api.factorio.com/
|
1894
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_toggled_map_editor View documentation}
|
1858
1895
|
*/
|
1859
1896
|
interface OnPlayerToggledMapEditorEvent {
|
1860
|
-
readonly player_index: uint
|
1897
|
+
readonly player_index: uint
|
1861
1898
|
/** Identifier of the event */
|
1862
|
-
readonly name: typeof defines.events.on_player_toggled_map_editor
|
1899
|
+
readonly name: typeof defines.events.on_player_toggled_map_editor
|
1863
1900
|
/** Tick the event was generated. */
|
1864
|
-
readonly tick: uint
|
1901
|
+
readonly tick: uint
|
1865
1902
|
}
|
1866
1903
|
|
1867
1904
|
/**
|
1868
1905
|
* Called after a players trash inventory changed in some way.
|
1869
1906
|
*
|
1870
|
-
* {@link https://lua-api.factorio.com/
|
1907
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_trash_inventory_changed View documentation}
|
1871
1908
|
*/
|
1872
1909
|
interface OnPlayerTrashInventoryChangedEvent {
|
1873
|
-
readonly player_index: uint
|
1910
|
+
readonly player_index: uint
|
1874
1911
|
/** Identifier of the event */
|
1875
|
-
readonly name: typeof defines.events.on_player_trash_inventory_changed
|
1912
|
+
readonly name: typeof defines.events.on_player_trash_inventory_changed
|
1876
1913
|
/** Tick the event was generated. */
|
1877
|
-
readonly tick: uint
|
1914
|
+
readonly tick: uint
|
1878
1915
|
}
|
1879
1916
|
|
1880
1917
|
/**
|
1881
1918
|
* Called when a player is un-banned.
|
1882
1919
|
*
|
1883
|
-
* {@link https://lua-api.factorio.com/
|
1920
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_unbanned View documentation}
|
1884
1921
|
*/
|
1885
1922
|
interface OnPlayerUnbannedEvent {
|
1886
1923
|
/** The player un-banned. */
|
1887
|
-
readonly player_index?: uint
|
1924
|
+
readonly player_index?: uint
|
1888
1925
|
/** The player name un-banned. */
|
1889
|
-
readonly player_name: string
|
1926
|
+
readonly player_name: string
|
1890
1927
|
/** The player that did the un-banning if any. */
|
1891
|
-
readonly by_player?: uint
|
1928
|
+
readonly by_player?: uint
|
1892
1929
|
/** The reason the player was banned if any. */
|
1893
|
-
readonly reason?: string
|
1930
|
+
readonly reason?: string
|
1894
1931
|
/** Identifier of the event */
|
1895
|
-
readonly name: typeof defines.events.on_player_unbanned
|
1932
|
+
readonly name: typeof defines.events.on_player_unbanned
|
1896
1933
|
/** Tick the event was generated. */
|
1897
|
-
readonly tick: uint
|
1934
|
+
readonly tick: uint
|
1898
1935
|
}
|
1899
1936
|
|
1900
1937
|
/**
|
1901
1938
|
* Called when a player is unmuted.
|
1902
1939
|
*
|
1903
|
-
* {@link https://lua-api.factorio.com/
|
1940
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_unmuted View documentation}
|
1904
1941
|
*/
|
1905
1942
|
interface OnPlayerUnmutedEvent {
|
1906
1943
|
/** The player. */
|
1907
|
-
readonly player_index: uint
|
1944
|
+
readonly player_index: uint
|
1908
1945
|
/** Identifier of the event */
|
1909
|
-
readonly name: typeof defines.events.on_player_unmuted
|
1946
|
+
readonly name: typeof defines.events.on_player_unmuted
|
1910
1947
|
/** Tick the event was generated. */
|
1911
|
-
readonly tick: uint
|
1948
|
+
readonly tick: uint
|
1912
1949
|
}
|
1913
1950
|
|
1914
1951
|
/**
|
1915
1952
|
* Called when a player uses a capsule that results in some game action.
|
1916
1953
|
*
|
1917
|
-
* {@link https://lua-api.factorio.com/
|
1954
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_used_capsule View documentation}
|
1918
1955
|
*/
|
1919
1956
|
interface OnPlayerUsedCapsuleEvent {
|
1920
1957
|
/** The player. */
|
1921
|
-
readonly player_index: uint
|
1958
|
+
readonly player_index: uint
|
1922
1959
|
/** The capsule item used. */
|
1923
|
-
readonly item: LuaItemPrototype
|
1960
|
+
readonly item: LuaItemPrototype
|
1924
1961
|
/** The position the capsule was used. */
|
1925
|
-
readonly position: Position
|
1962
|
+
readonly position: Position
|
1926
1963
|
/** Identifier of the event */
|
1927
|
-
readonly name: typeof defines.events.on_player_used_capsule
|
1964
|
+
readonly name: typeof defines.events.on_player_used_capsule
|
1928
1965
|
/** Tick the event was generated. */
|
1929
|
-
readonly tick: uint
|
1966
|
+
readonly tick: uint
|
1930
1967
|
}
|
1931
1968
|
|
1932
1969
|
/**
|
1933
1970
|
* Called when a player uses spidertron remote to send a spidertron to a given position
|
1934
1971
|
*
|
1935
|
-
* {@link https://lua-api.factorio.com/
|
1972
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_player_used_spider_remote View documentation}
|
1936
1973
|
*/
|
1937
1974
|
interface OnPlayerUsedSpiderRemoteEvent {
|
1938
1975
|
/** The player that used the remote. */
|
1939
|
-
readonly player_index: uint
|
1976
|
+
readonly player_index: uint
|
1940
1977
|
/** Spider vehicle which was requested to move. */
|
1941
|
-
readonly vehicle: LuaEntity
|
1978
|
+
readonly vehicle: LuaEntity
|
1942
1979
|
/** Goal position to which spidertron was sent to. */
|
1943
|
-
readonly position: Position
|
1980
|
+
readonly position: Position
|
1944
1981
|
/** If the use was successful. It may fail when spidertron has different driver or when player is on different surface. */
|
1945
|
-
readonly success: boolean
|
1982
|
+
readonly success: boolean
|
1946
1983
|
/** Identifier of the event */
|
1947
|
-
readonly name: typeof defines.events.on_player_used_spider_remote
|
1984
|
+
readonly name: typeof defines.events.on_player_used_spider_remote
|
1948
1985
|
/** Tick the event was generated. */
|
1949
|
-
readonly tick: uint
|
1986
|
+
readonly tick: uint
|
1950
1987
|
}
|
1951
1988
|
|
1952
1989
|
/**
|
1953
1990
|
* Called after an entity dies. Can be filtered using {@link LuaPostEntityDiedEventFilter}.
|
1954
1991
|
*
|
1955
|
-
* {@link https://lua-api.factorio.com/
|
1992
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_post_entity_died View documentation}
|
1956
1993
|
*/
|
1957
1994
|
interface OnPostEntityDiedEvent {
|
1958
1995
|
/** The ghost created by the entity dying if any. */
|
1959
|
-
readonly ghost?: LuaEntity
|
1996
|
+
readonly ghost?: LuaEntity
|
1960
1997
|
/** The force that did the killing if any. */
|
1961
|
-
readonly force?: LuaForce
|
1998
|
+
readonly force?: LuaForce
|
1962
1999
|
/** Position where the entity died. */
|
1963
|
-
readonly position: Position
|
2000
|
+
readonly position: Position
|
1964
2001
|
/** The entity prototype of the entity that died. */
|
1965
|
-
readonly prototype: LuaEntityPrototype
|
2002
|
+
readonly prototype: LuaEntityPrototype
|
1966
2003
|
/** The damage type if any. */
|
1967
|
-
readonly damage_type?: LuaDamagePrototype
|
2004
|
+
readonly damage_type?: LuaDamagePrototype
|
1968
2005
|
/** The corpses created by the entity dying if any. */
|
1969
|
-
readonly corpses: LuaEntity[]
|
2006
|
+
readonly corpses: LuaEntity[]
|
1970
2007
|
/** The surface the entity was on. */
|
1971
|
-
readonly surface_index: uint
|
2008
|
+
readonly surface_index: uint
|
1972
2009
|
/** The unit number the entity had if any. */
|
1973
|
-
readonly unit_number?: uint
|
2010
|
+
readonly unit_number?: uint
|
1974
2011
|
/** Identifier of the event */
|
1975
|
-
readonly name: typeof defines.events.on_post_entity_died
|
2012
|
+
readonly name: typeof defines.events.on_post_entity_died
|
1976
2013
|
/** Tick the event was generated. */
|
1977
|
-
readonly tick: uint
|
2014
|
+
readonly tick: uint
|
1978
2015
|
}
|
1979
2016
|
|
1980
2017
|
/**
|
1981
2018
|
* Called when players uses an item to build something. Called before {@link OnBuiltEntityEvent on_built_entity}.
|
1982
2019
|
*
|
1983
|
-
* {@link https://lua-api.factorio.com/
|
2020
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_pre_build View documentation}
|
1984
2021
|
*/
|
1985
2022
|
interface OnPreBuildEvent {
|
1986
2023
|
/** The player who did the placing. */
|
1987
|
-
readonly player_index: uint
|
2024
|
+
readonly player_index: uint
|
1988
2025
|
/** Where the item was placed. */
|
1989
|
-
readonly position: Position
|
2026
|
+
readonly position: Position
|
1990
2027
|
/** Item was placed using shift building. */
|
1991
|
-
readonly shift_build: boolean
|
2028
|
+
readonly shift_build: boolean
|
1992
2029
|
/** The direction the item was facing when placed. */
|
1993
|
-
readonly direction: defines.direction
|
2030
|
+
readonly direction: defines.direction
|
1994
2031
|
/** If building this blueprint was flipped horizontally. */
|
1995
|
-
readonly flip_horizontal: boolean
|
2032
|
+
readonly flip_horizontal: boolean
|
1996
2033
|
/** If building this blueprint was flipped vertically. */
|
1997
|
-
readonly flip_vertical: boolean
|
2034
|
+
readonly flip_vertical: boolean
|
1998
2035
|
/** Item was placed while moving. */
|
1999
|
-
readonly created_by_moving: boolean
|
2036
|
+
readonly created_by_moving: boolean
|
2000
2037
|
/** Identifier of the event */
|
2001
|
-
readonly name: typeof defines.events.on_pre_build
|
2038
|
+
readonly name: typeof defines.events.on_pre_build
|
2002
2039
|
/** Tick the event was generated. */
|
2003
|
-
readonly tick: uint
|
2040
|
+
readonly tick: uint
|
2004
2041
|
}
|
2005
2042
|
|
2006
2043
|
/**
|
2007
2044
|
* Called before one or more chunks are deleted using {@link LuaSurface.delete_chunk LuaSurface::delete_chunk}.
|
2008
2045
|
*
|
2009
|
-
* {@link https://lua-api.factorio.com/
|
2046
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_pre_chunk_deleted View documentation}
|
2010
2047
|
*/
|
2011
2048
|
interface OnPreChunkDeletedEvent {
|
2012
|
-
readonly surface_index: uint
|
2049
|
+
readonly surface_index: uint
|
2013
2050
|
/** The chunks to be deleted. */
|
2014
|
-
readonly positions: ChunkPosition[]
|
2051
|
+
readonly positions: ChunkPosition[]
|
2015
2052
|
/** Identifier of the event */
|
2016
|
-
readonly name: typeof defines.events.on_pre_chunk_deleted
|
2053
|
+
readonly name: typeof defines.events.on_pre_chunk_deleted
|
2017
2054
|
/** Tick the event was generated. */
|
2018
|
-
readonly tick: uint
|
2055
|
+
readonly tick: uint
|
2019
2056
|
}
|
2020
2057
|
|
2021
2058
|
/**
|
2022
2059
|
* Called before entity copy-paste is done.
|
2023
2060
|
*
|
2024
|
-
* {@link https://lua-api.factorio.com/
|
2061
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_pre_entity_settings_pasted View documentation}
|
2025
2062
|
*/
|
2026
2063
|
interface OnPreEntitySettingsPastedEvent {
|
2027
|
-
readonly player_index: uint
|
2064
|
+
readonly player_index: uint
|
2028
2065
|
/** The source entity settings will be copied from. */
|
2029
|
-
readonly source: LuaEntity
|
2066
|
+
readonly source: LuaEntity
|
2030
2067
|
/** The destination entity settings will be copied to. */
|
2031
|
-
readonly destination: LuaEntity
|
2068
|
+
readonly destination: LuaEntity
|
2032
2069
|
/** Identifier of the event */
|
2033
|
-
readonly name: typeof defines.events.on_pre_entity_settings_pasted
|
2070
|
+
readonly name: typeof defines.events.on_pre_entity_settings_pasted
|
2034
2071
|
/** Tick the event was generated. */
|
2035
|
-
readonly tick: uint
|
2072
|
+
readonly tick: uint
|
2036
2073
|
}
|
2037
2074
|
|
2038
2075
|
/**
|
2039
2076
|
* Called before a ghost entity is destroyed as a result of being marked for deconstruction. Can be filtered using
|
2040
2077
|
* {@link LuaPreGhostDeconstructedEventFilter}.
|
2041
2078
|
*
|
2042
|
-
* {@link https://lua-api.factorio.com/
|
2079
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_pre_ghost_deconstructed View documentation}
|
2043
2080
|
*/
|
2044
2081
|
interface OnPreGhostDeconstructedEvent {
|
2045
2082
|
/** The player that did the deconstruction if any. */
|
2046
|
-
readonly player_index?: uint
|
2047
|
-
readonly ghost: LuaEntity
|
2083
|
+
readonly player_index?: uint
|
2084
|
+
readonly ghost: LuaEntity
|
2048
2085
|
/** Identifier of the event */
|
2049
|
-
readonly name: typeof defines.events.on_pre_ghost_deconstructed
|
2086
|
+
readonly name: typeof defines.events.on_pre_ghost_deconstructed
|
2050
2087
|
/** Tick the event was generated. */
|
2051
|
-
readonly tick: uint
|
2088
|
+
readonly tick: uint
|
2052
2089
|
}
|
2053
2090
|
|
2054
2091
|
/**
|
2055
2092
|
* Called directly before a permission group is deleted.
|
2056
2093
|
*
|
2057
|
-
* {@link https://lua-api.factorio.com/
|
2094
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_pre_permission_group_deleted View documentation}
|
2058
2095
|
*/
|
2059
2096
|
interface OnPrePermissionGroupDeletedEvent {
|
2060
2097
|
/** The player doing the deletion. */
|
2061
|
-
readonly player_index: uint
|
2098
|
+
readonly player_index: uint
|
2062
2099
|
/** The group to be deleted. */
|
2063
|
-
readonly group: LuaPermissionGroup
|
2100
|
+
readonly group: LuaPermissionGroup
|
2064
2101
|
/** Identifier of the event */
|
2065
|
-
readonly name: typeof defines.events.on_pre_permission_group_deleted
|
2102
|
+
readonly name: typeof defines.events.on_pre_permission_group_deleted
|
2066
2103
|
/** Tick the event was generated. */
|
2067
|
-
readonly tick: uint
|
2104
|
+
readonly tick: uint
|
2068
2105
|
}
|
2069
2106
|
|
2070
2107
|
/**
|
2071
2108
|
* Called directly before a permission string is imported.
|
2072
2109
|
*
|
2073
|
-
* {@link https://lua-api.factorio.com/
|
2110
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_pre_permission_string_imported View documentation}
|
2074
2111
|
*/
|
2075
2112
|
interface OnPrePermissionStringImportedEvent {
|
2076
2113
|
/** The player importing the string. */
|
2077
|
-
readonly player_index: uint
|
2114
|
+
readonly player_index: uint
|
2078
2115
|
/** Identifier of the event */
|
2079
|
-
readonly name: typeof defines.events.on_pre_permission_string_imported
|
2116
|
+
readonly name: typeof defines.events.on_pre_permission_string_imported
|
2080
2117
|
/** Tick the event was generated. */
|
2081
|
-
readonly tick: uint
|
2118
|
+
readonly tick: uint
|
2082
2119
|
}
|
2083
2120
|
|
2084
2121
|
/**
|
2085
2122
|
* Called when a player queues something to be crafted.
|
2086
2123
|
*
|
2087
|
-
* {@link https://lua-api.factorio.com/
|
2124
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_pre_player_crafted_item View documentation}
|
2088
2125
|
*/
|
2089
2126
|
interface OnPrePlayerCraftedItemEvent {
|
2090
2127
|
/** The player doing the crafting. */
|
2091
|
-
readonly player_index: uint
|
2128
|
+
readonly player_index: uint
|
2092
2129
|
/** The recipe being queued. */
|
2093
|
-
readonly recipe: LuaRecipe
|
2130
|
+
readonly recipe: LuaRecipe
|
2094
2131
|
/** The items removed from the players inventory to do the crafting. */
|
2095
|
-
readonly items: LuaInventory
|
2132
|
+
readonly items: LuaInventory
|
2096
2133
|
/** The number of times the recipe is being queued. */
|
2097
|
-
readonly queued_count: uint
|
2134
|
+
readonly queued_count: uint
|
2098
2135
|
/** Identifier of the event */
|
2099
|
-
readonly name: typeof defines.events.on_pre_player_crafted_item
|
2136
|
+
readonly name: typeof defines.events.on_pre_player_crafted_item
|
2100
2137
|
/** Tick the event was generated. */
|
2101
|
-
readonly tick: uint
|
2138
|
+
readonly tick: uint
|
2102
2139
|
}
|
2103
2140
|
|
2104
2141
|
/**
|
2105
2142
|
* Called before a players dies.
|
2106
2143
|
*
|
2107
|
-
* {@link https://lua-api.factorio.com/
|
2144
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_pre_player_died View documentation}
|
2108
2145
|
*/
|
2109
2146
|
interface OnPrePlayerDiedEvent {
|
2110
|
-
readonly player_index: uint
|
2111
|
-
readonly cause?: LuaEntity
|
2147
|
+
readonly player_index: uint
|
2148
|
+
readonly cause?: LuaEntity
|
2112
2149
|
/** Identifier of the event */
|
2113
|
-
readonly name: typeof defines.events.on_pre_player_died
|
2150
|
+
readonly name: typeof defines.events.on_pre_player_died
|
2114
2151
|
/** Tick the event was generated. */
|
2115
|
-
readonly tick: uint
|
2152
|
+
readonly tick: uint
|
2116
2153
|
}
|
2117
2154
|
|
2118
2155
|
/**
|
2119
2156
|
* Called before a player leaves the game.
|
2120
2157
|
*
|
2121
|
-
* {@link https://lua-api.factorio.com/
|
2158
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_pre_player_left_game View documentation}
|
2122
2159
|
*/
|
2123
2160
|
interface OnPrePlayerLeftGameEvent {
|
2124
|
-
readonly player_index: uint
|
2125
|
-
readonly reason: defines.disconnect_reason
|
2161
|
+
readonly player_index: uint
|
2162
|
+
readonly reason: defines.disconnect_reason
|
2126
2163
|
/** Identifier of the event */
|
2127
|
-
readonly name: typeof defines.events.on_pre_player_left_game
|
2164
|
+
readonly name: typeof defines.events.on_pre_player_left_game
|
2128
2165
|
/** Tick the event was generated. */
|
2129
|
-
readonly tick: uint
|
2166
|
+
readonly tick: uint
|
2130
2167
|
}
|
2131
2168
|
|
2132
2169
|
/**
|
2133
2170
|
* Called when the player finishes mining an entity, before the entity is removed from map. Can be filtered using
|
2134
2171
|
* {@link LuaPrePlayerMinedEntityEventFilter}.
|
2135
2172
|
*
|
2136
|
-
* {@link https://lua-api.factorio.com/
|
2173
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_pre_player_mined_item View documentation}
|
2137
2174
|
*/
|
2138
2175
|
interface OnPrePlayerMinedItemEvent {
|
2139
2176
|
/** The entity being mined */
|
2140
|
-
readonly entity: LuaEntity
|
2141
|
-
readonly player_index: uint
|
2177
|
+
readonly entity: LuaEntity
|
2178
|
+
readonly player_index: uint
|
2142
2179
|
/** Identifier of the event */
|
2143
|
-
readonly name: typeof defines.events.on_pre_player_mined_item
|
2180
|
+
readonly name: typeof defines.events.on_pre_player_mined_item
|
2144
2181
|
/** Tick the event was generated. */
|
2145
|
-
readonly tick: uint
|
2182
|
+
readonly tick: uint
|
2146
2183
|
}
|
2147
2184
|
|
2148
2185
|
/**
|
2149
2186
|
* Called before a player is removed (deleted) from the game. Not to be confused with the player logging of this is
|
2150
2187
|
* different in that the player is deleted as if he never existed in the save file.
|
2151
2188
|
*
|
2152
|
-
* {@link https://lua-api.factorio.com/
|
2189
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_pre_player_removed View documentation}
|
2153
2190
|
*/
|
2154
2191
|
interface OnPrePlayerRemovedEvent {
|
2155
2192
|
/** The player index that will be removed */
|
2156
|
-
readonly player_index: uint
|
2193
|
+
readonly player_index: uint
|
2157
2194
|
/** Identifier of the event */
|
2158
|
-
readonly name: typeof defines.events.on_pre_player_removed
|
2195
|
+
readonly name: typeof defines.events.on_pre_player_removed
|
2159
2196
|
/** Tick the event was generated. */
|
2160
|
-
readonly tick: uint
|
2197
|
+
readonly tick: uint
|
2161
2198
|
}
|
2162
2199
|
|
2163
2200
|
/**
|
2164
2201
|
* Called before a player toggles the map editor on or off.
|
2165
2202
|
*
|
2166
|
-
* {@link https://lua-api.factorio.com/
|
2203
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_pre_player_toggled_map_editor View documentation}
|
2167
2204
|
*/
|
2168
2205
|
interface OnPrePlayerToggledMapEditorEvent {
|
2169
|
-
readonly player_index: uint
|
2206
|
+
readonly player_index: uint
|
2170
2207
|
/** Identifier of the event */
|
2171
|
-
readonly name: typeof defines.events.on_pre_player_toggled_map_editor
|
2208
|
+
readonly name: typeof defines.events.on_pre_player_toggled_map_editor
|
2172
2209
|
/** Tick the event was generated. */
|
2173
|
-
readonly tick: uint
|
2210
|
+
readonly tick: uint
|
2174
2211
|
}
|
2175
2212
|
|
2176
2213
|
/**
|
2177
2214
|
* Called directly before a robot explodes cliffs.
|
2178
2215
|
*
|
2179
|
-
* {@link https://lua-api.factorio.com/
|
2216
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_pre_robot_exploded_cliff View documentation}
|
2180
2217
|
*/
|
2181
2218
|
interface OnPreRobotExplodedCliffEvent {
|
2182
|
-
readonly robot: LuaEntity
|
2183
|
-
readonly cliff: LuaEntity
|
2219
|
+
readonly robot: LuaEntity
|
2220
|
+
readonly cliff: LuaEntity
|
2184
2221
|
/** The cliff explosive used. */
|
2185
|
-
readonly item: LuaItemPrototype
|
2222
|
+
readonly item: LuaItemPrototype
|
2186
2223
|
/** Identifier of the event */
|
2187
|
-
readonly name: typeof defines.events.on_pre_robot_exploded_cliff
|
2224
|
+
readonly name: typeof defines.events.on_pre_robot_exploded_cliff
|
2188
2225
|
/** Tick the event was generated. */
|
2189
|
-
readonly tick: uint
|
2226
|
+
readonly tick: uint
|
2190
2227
|
}
|
2191
2228
|
|
2192
2229
|
/**
|
2193
2230
|
* Called just before a script inventory is resized.
|
2194
2231
|
*
|
2195
|
-
* {@link https://lua-api.factorio.com/
|
2232
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_pre_script_inventory_resized View documentation}
|
2196
2233
|
*/
|
2197
2234
|
interface OnPreScriptInventoryResizedEvent {
|
2198
2235
|
/** If done by console command; the player who ran the command. */
|
2199
|
-
readonly player_index?: uint
|
2236
|
+
readonly player_index?: uint
|
2200
2237
|
/** The mod that did the resizing. This will be `"core"` if done by console command or scenario script. */
|
2201
|
-
readonly mod: string
|
2202
|
-
readonly inventory: LuaInventory
|
2238
|
+
readonly mod: string
|
2239
|
+
readonly inventory: LuaInventory
|
2203
2240
|
/** The old inventory size. */
|
2204
|
-
readonly old_size: uint
|
2241
|
+
readonly old_size: uint
|
2205
2242
|
/** The new inventory size. */
|
2206
|
-
readonly new_size: uint
|
2243
|
+
readonly new_size: uint
|
2207
2244
|
/** Identifier of the event */
|
2208
|
-
readonly name: typeof defines.events.on_pre_script_inventory_resized
|
2245
|
+
readonly name: typeof defines.events.on_pre_script_inventory_resized
|
2209
2246
|
/** Tick the event was generated. */
|
2210
|
-
readonly tick: uint
|
2247
|
+
readonly tick: uint
|
2211
2248
|
}
|
2212
2249
|
|
2213
2250
|
/**
|
2214
2251
|
* Called just before a surface is cleared (all entities removed and all chunks deleted).
|
2215
2252
|
*
|
2216
|
-
* {@link https://lua-api.factorio.com/
|
2253
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_pre_surface_cleared View documentation}
|
2217
2254
|
*/
|
2218
2255
|
interface OnPreSurfaceClearedEvent {
|
2219
|
-
readonly surface_index: uint
|
2256
|
+
readonly surface_index: uint
|
2220
2257
|
/** Identifier of the event */
|
2221
|
-
readonly name: typeof defines.events.on_pre_surface_cleared
|
2258
|
+
readonly name: typeof defines.events.on_pre_surface_cleared
|
2222
2259
|
/** Tick the event was generated. */
|
2223
|
-
readonly tick: uint
|
2260
|
+
readonly tick: uint
|
2224
2261
|
}
|
2225
2262
|
|
2226
2263
|
/**
|
2227
2264
|
* Called just before a surface is deleted.
|
2228
2265
|
*
|
2229
|
-
* {@link https://lua-api.factorio.com/
|
2266
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_pre_surface_deleted View documentation}
|
2230
2267
|
*/
|
2231
2268
|
interface OnPreSurfaceDeletedEvent {
|
2232
|
-
readonly surface_index: uint
|
2269
|
+
readonly surface_index: uint
|
2233
2270
|
/** Identifier of the event */
|
2234
|
-
readonly name: typeof defines.events.on_pre_surface_deleted
|
2271
|
+
readonly name: typeof defines.events.on_pre_surface_deleted
|
2235
2272
|
/** Tick the event was generated. */
|
2236
|
-
readonly tick: uint
|
2273
|
+
readonly tick: uint
|
2237
2274
|
}
|
2238
2275
|
|
2239
2276
|
/**
|
2240
2277
|
* Called when a research finishes.
|
2241
2278
|
*
|
2242
|
-
* {@link https://lua-api.factorio.com/
|
2279
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_research_finished View documentation}
|
2243
2280
|
*/
|
2244
2281
|
interface OnResearchFinishedEvent {
|
2245
2282
|
/** The researched technology */
|
2246
|
-
readonly research: LuaTechnology
|
2283
|
+
readonly research: LuaTechnology
|
2247
2284
|
/** If the technology was researched by script. */
|
2248
|
-
readonly by_script: boolean
|
2285
|
+
readonly by_script: boolean
|
2249
2286
|
/** Identifier of the event */
|
2250
|
-
readonly name: typeof defines.events.on_research_finished
|
2287
|
+
readonly name: typeof defines.events.on_research_finished
|
2251
2288
|
/** Tick the event was generated. */
|
2252
|
-
readonly tick: uint
|
2289
|
+
readonly tick: uint
|
2253
2290
|
}
|
2254
2291
|
|
2255
2292
|
/**
|
2256
2293
|
* Called when a research is reversed (unresearched).
|
2257
2294
|
*
|
2258
|
-
* {@link https://lua-api.factorio.com/
|
2295
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_research_reversed View documentation}
|
2259
2296
|
*/
|
2260
2297
|
interface OnResearchReversedEvent {
|
2261
2298
|
/** The technology un-researched */
|
2262
|
-
readonly research: LuaTechnology
|
2299
|
+
readonly research: LuaTechnology
|
2263
2300
|
/** If the technology was un-researched by script. */
|
2264
|
-
readonly by_script: boolean
|
2301
|
+
readonly by_script: boolean
|
2265
2302
|
/** Identifier of the event */
|
2266
|
-
readonly name: typeof defines.events.on_research_reversed
|
2303
|
+
readonly name: typeof defines.events.on_research_reversed
|
2267
2304
|
/** Tick the event was generated. */
|
2268
|
-
readonly tick: uint
|
2305
|
+
readonly tick: uint
|
2269
2306
|
}
|
2270
2307
|
|
2271
2308
|
/**
|
2272
2309
|
* Called when a technology research starts.
|
2273
2310
|
*
|
2274
|
-
* {@link https://lua-api.factorio.com/
|
2311
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_research_started View documentation}
|
2275
2312
|
*/
|
2276
2313
|
interface OnResearchStartedEvent {
|
2277
2314
|
/** The technology being researched */
|
2278
|
-
readonly research: LuaTechnology
|
2279
|
-
readonly last_research?: LuaTechnology
|
2315
|
+
readonly research: LuaTechnology
|
2316
|
+
readonly last_research?: LuaTechnology
|
2280
2317
|
/** Identifier of the event */
|
2281
|
-
readonly name: typeof defines.events.on_research_started
|
2318
|
+
readonly name: typeof defines.events.on_research_started
|
2282
2319
|
/** Tick the event was generated. */
|
2283
|
-
readonly tick: uint
|
2320
|
+
readonly tick: uint
|
2284
2321
|
}
|
2285
2322
|
|
2286
2323
|
/**
|
2287
2324
|
* Called when a resource entity reaches 0 or its minimum yield for infinite resources.
|
2288
2325
|
*
|
2289
|
-
* {@link https://lua-api.factorio.com/
|
2326
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_resource_depleted View documentation}
|
2290
2327
|
*/
|
2291
2328
|
interface OnResourceDepletedEvent {
|
2292
|
-
readonly entity: LuaEntity
|
2329
|
+
readonly entity: LuaEntity
|
2293
2330
|
/** Identifier of the event */
|
2294
|
-
readonly name: typeof defines.events.on_resource_depleted
|
2331
|
+
readonly name: typeof defines.events.on_resource_depleted
|
2295
2332
|
/** Tick the event was generated. */
|
2296
|
-
readonly tick: uint
|
2333
|
+
readonly tick: uint
|
2297
2334
|
}
|
2298
2335
|
|
2299
2336
|
/**
|
2300
2337
|
* Called when a construction robot builds an entity. Can be filtered using {@link LuaRobotBuiltEntityEventFilter}.
|
2301
2338
|
*
|
2302
|
-
* {@link https://lua-api.factorio.com/
|
2339
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_robot_built_entity View documentation}
|
2303
2340
|
*/
|
2304
2341
|
interface OnRobotBuiltEntityEvent {
|
2305
2342
|
/** The robot that did the building. */
|
2306
|
-
readonly robot: LuaEntity
|
2343
|
+
readonly robot: LuaEntity
|
2307
2344
|
/** The entity built. */
|
2308
|
-
readonly created_entity: LuaEntity
|
2345
|
+
readonly created_entity: LuaEntity
|
2309
2346
|
/** The item used to do the building. */
|
2310
|
-
readonly stack: LuaItemStack
|
2347
|
+
readonly stack: LuaItemStack
|
2311
2348
|
/** The tags associated with this entity if any. */
|
2312
|
-
readonly tags?: Tags
|
2349
|
+
readonly tags?: Tags
|
2313
2350
|
/** Identifier of the event */
|
2314
|
-
readonly name: typeof defines.events.on_robot_built_entity
|
2351
|
+
readonly name: typeof defines.events.on_robot_built_entity
|
2315
2352
|
/** Tick the event was generated. */
|
2316
|
-
readonly tick: uint
|
2353
|
+
readonly tick: uint
|
2317
2354
|
}
|
2318
2355
|
|
2319
2356
|
/**
|
2320
2357
|
* Called after a robot builds tiles.
|
2321
2358
|
*
|
2322
|
-
* {@link https://lua-api.factorio.com/
|
2359
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_robot_built_tile View documentation}
|
2323
2360
|
*/
|
2324
2361
|
interface OnRobotBuiltTileEvent {
|
2325
2362
|
/** The robot. */
|
2326
|
-
readonly robot: LuaEntity
|
2363
|
+
readonly robot: LuaEntity
|
2327
2364
|
/** The position data. */
|
2328
|
-
readonly tiles: OldTileAndPosition[]
|
2365
|
+
readonly tiles: OldTileAndPosition[]
|
2329
2366
|
/** The tile prototype that was placed. */
|
2330
|
-
readonly tile: LuaTilePrototype
|
2367
|
+
readonly tile: LuaTilePrototype
|
2331
2368
|
/** The item type used to build the tiles. */
|
2332
|
-
readonly item: LuaItemPrototype
|
2369
|
+
readonly item: LuaItemPrototype
|
2333
2370
|
/** The stack used to build the tiles (may be empty if all of the items where used to build the tiles). */
|
2334
|
-
readonly stack: LuaItemStack
|
2371
|
+
readonly stack: LuaItemStack
|
2335
2372
|
/** The surface the tile(s) are build on. */
|
2336
|
-
readonly surface_index: uint
|
2373
|
+
readonly surface_index: uint
|
2337
2374
|
/** Identifier of the event */
|
2338
|
-
readonly name: typeof defines.events.on_robot_built_tile
|
2375
|
+
readonly name: typeof defines.events.on_robot_built_tile
|
2339
2376
|
/** Tick the event was generated. */
|
2340
|
-
readonly tick: uint
|
2377
|
+
readonly tick: uint
|
2341
2378
|
}
|
2342
2379
|
|
2343
2380
|
/**
|
2344
2381
|
* Called directly after a robot explodes cliffs.
|
2345
2382
|
*
|
2346
|
-
* {@link https://lua-api.factorio.com/
|
2383
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_robot_exploded_cliff View documentation}
|
2347
2384
|
*/
|
2348
2385
|
interface OnRobotExplodedCliffEvent {
|
2349
|
-
readonly robot: LuaEntity
|
2386
|
+
readonly robot: LuaEntity
|
2350
2387
|
/** The cliff explosive used. */
|
2351
|
-
readonly item: LuaItemPrototype
|
2388
|
+
readonly item: LuaItemPrototype
|
2352
2389
|
/** Identifier of the event */
|
2353
|
-
readonly name: typeof defines.events.on_robot_exploded_cliff
|
2390
|
+
readonly name: typeof defines.events.on_robot_exploded_cliff
|
2354
2391
|
/** Tick the event was generated. */
|
2355
|
-
readonly tick: uint
|
2392
|
+
readonly tick: uint
|
2356
2393
|
}
|
2357
2394
|
|
2358
2395
|
/**
|
2359
2396
|
* Called when a robot mines an entity.
|
2360
2397
|
*
|
2361
|
-
* {@link https://lua-api.factorio.com/
|
2398
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_robot_mined View documentation}
|
2362
2399
|
*/
|
2363
2400
|
interface OnRobotMinedEvent {
|
2364
2401
|
/** The robot that did the mining. */
|
2365
|
-
readonly robot: LuaEntity
|
2402
|
+
readonly robot: LuaEntity
|
2366
2403
|
/** The entity the robot just picked up. */
|
2367
|
-
readonly item_stack: SimpleItemStack
|
2404
|
+
readonly item_stack: SimpleItemStack
|
2368
2405
|
/** Identifier of the event */
|
2369
|
-
readonly name: typeof defines.events.on_robot_mined
|
2406
|
+
readonly name: typeof defines.events.on_robot_mined
|
2370
2407
|
/** Tick the event was generated. */
|
2371
|
-
readonly tick: uint
|
2408
|
+
readonly tick: uint
|
2372
2409
|
}
|
2373
2410
|
|
2374
2411
|
/**
|
@@ -2379,91 +2416,91 @@ interface OnRobotMinedEvent {
|
|
2379
2416
|
* **Note**: The buffer inventory is special in that it's only valid during this event and has a dynamic size expanding
|
2380
2417
|
* as more items are transferred into it.
|
2381
2418
|
*
|
2382
|
-
* {@link https://lua-api.factorio.com/
|
2419
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_robot_mined_entity View documentation}
|
2383
2420
|
*/
|
2384
2421
|
interface OnRobotMinedEntityEvent {
|
2385
2422
|
/** The robot doing the mining. */
|
2386
|
-
readonly robot: LuaEntity
|
2423
|
+
readonly robot: LuaEntity
|
2387
2424
|
/** The entity that has been mined. */
|
2388
|
-
readonly entity: LuaEntity
|
2425
|
+
readonly entity: LuaEntity
|
2389
2426
|
/** The temporary inventory that holds the result of mining the entity. */
|
2390
|
-
readonly buffer: LuaInventory
|
2427
|
+
readonly buffer: LuaInventory
|
2391
2428
|
/** Identifier of the event */
|
2392
|
-
readonly name: typeof defines.events.on_robot_mined_entity
|
2429
|
+
readonly name: typeof defines.events.on_robot_mined_entity
|
2393
2430
|
/** Tick the event was generated. */
|
2394
|
-
readonly tick: uint
|
2431
|
+
readonly tick: uint
|
2395
2432
|
}
|
2396
2433
|
|
2397
2434
|
/**
|
2398
2435
|
* Called after a robot mines tiles.
|
2399
2436
|
*
|
2400
|
-
* {@link https://lua-api.factorio.com/
|
2437
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_robot_mined_tile View documentation}
|
2401
2438
|
*/
|
2402
2439
|
interface OnRobotMinedTileEvent {
|
2403
2440
|
/** The robot. */
|
2404
|
-
readonly robot: LuaEntity
|
2441
|
+
readonly robot: LuaEntity
|
2405
2442
|
/** The position data. */
|
2406
|
-
readonly tiles: OldTileAndPosition[]
|
2443
|
+
readonly tiles: OldTileAndPosition[]
|
2407
2444
|
/** The surface the tile(s) were mined on. */
|
2408
|
-
readonly surface_index: uint
|
2445
|
+
readonly surface_index: uint
|
2409
2446
|
/** Identifier of the event */
|
2410
|
-
readonly name: typeof defines.events.on_robot_mined_tile
|
2447
|
+
readonly name: typeof defines.events.on_robot_mined_tile
|
2411
2448
|
/** Tick the event was generated. */
|
2412
|
-
readonly tick: uint
|
2449
|
+
readonly tick: uint
|
2413
2450
|
}
|
2414
2451
|
|
2415
2452
|
/**
|
2416
2453
|
* Called before a robot mines an entity. Can be filtered using {@link LuaPreRobotMinedEntityEventFilter}.
|
2417
2454
|
*
|
2418
|
-
* {@link https://lua-api.factorio.com/
|
2455
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_robot_pre_mined View documentation}
|
2419
2456
|
*/
|
2420
2457
|
interface OnRobotPreMinedEvent {
|
2421
2458
|
/** The robot that's about to do the mining. */
|
2422
|
-
readonly robot: LuaEntity
|
2459
|
+
readonly robot: LuaEntity
|
2423
2460
|
/** The entity which is about to be mined. */
|
2424
|
-
readonly entity: LuaEntity
|
2461
|
+
readonly entity: LuaEntity
|
2425
2462
|
/** Identifier of the event */
|
2426
|
-
readonly name: typeof defines.events.on_robot_pre_mined
|
2463
|
+
readonly name: typeof defines.events.on_robot_pre_mined
|
2427
2464
|
/** Tick the event was generated. */
|
2428
|
-
readonly tick: uint
|
2465
|
+
readonly tick: uint
|
2429
2466
|
}
|
2430
2467
|
|
2431
2468
|
/**
|
2432
2469
|
* Called when a rocket silo is ordered to be launched.
|
2433
2470
|
*
|
2434
|
-
* {@link https://lua-api.factorio.com/
|
2471
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_rocket_launch_ordered View documentation}
|
2435
2472
|
*/
|
2436
2473
|
interface OnRocketLaunchOrderedEvent {
|
2437
|
-
readonly rocket: LuaEntity
|
2438
|
-
readonly rocket_silo: LuaEntity
|
2474
|
+
readonly rocket: LuaEntity
|
2475
|
+
readonly rocket_silo: LuaEntity
|
2439
2476
|
/** The player that is riding the rocket, if any. */
|
2440
|
-
readonly player_index?: uint
|
2477
|
+
readonly player_index?: uint
|
2441
2478
|
/** Identifier of the event */
|
2442
|
-
readonly name: typeof defines.events.on_rocket_launch_ordered
|
2479
|
+
readonly name: typeof defines.events.on_rocket_launch_ordered
|
2443
2480
|
/** Tick the event was generated. */
|
2444
|
-
readonly tick: uint
|
2481
|
+
readonly tick: uint
|
2445
2482
|
}
|
2446
2483
|
|
2447
2484
|
/**
|
2448
2485
|
* Called when the rocket is launched.
|
2449
2486
|
*
|
2450
|
-
* {@link https://lua-api.factorio.com/
|
2487
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_rocket_launched View documentation}
|
2451
2488
|
*/
|
2452
2489
|
interface OnRocketLaunchedEvent {
|
2453
|
-
readonly rocket: LuaEntity
|
2454
|
-
readonly rocket_silo?: LuaEntity
|
2490
|
+
readonly rocket: LuaEntity
|
2491
|
+
readonly rocket_silo?: LuaEntity
|
2455
2492
|
/** The player that is riding the rocket, if any. */
|
2456
|
-
readonly player_index?: uint
|
2493
|
+
readonly player_index?: uint
|
2457
2494
|
/** Identifier of the event */
|
2458
|
-
readonly name: typeof defines.events.on_rocket_launched
|
2495
|
+
readonly name: typeof defines.events.on_rocket_launched
|
2459
2496
|
/** Tick the event was generated. */
|
2460
|
-
readonly tick: uint
|
2497
|
+
readonly tick: uint
|
2461
2498
|
}
|
2462
2499
|
|
2463
2500
|
/**
|
2464
2501
|
* Called when a runtime mod setting is changed by a player.
|
2465
2502
|
*
|
2466
|
-
* {@link https://lua-api.factorio.com/
|
2503
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_runtime_mod_setting_changed View documentation}
|
2467
2504
|
*/
|
2468
2505
|
interface OnRuntimeModSettingChangedEvent {
|
2469
2506
|
/**
|
@@ -2471,159 +2508,159 @@ interface OnRuntimeModSettingChangedEvent {
|
|
2471
2508
|
* player that changed the global setting. If the `setting_type` is `"runtime-per-user"` and it changed a current
|
2472
2509
|
* setting of the player, this is the index of the player whose setting was changed. In all other cases, this is `nil`.
|
2473
2510
|
*/
|
2474
|
-
readonly player_index?: uint
|
2511
|
+
readonly player_index?: uint
|
2475
2512
|
/** The prototype name of the setting that was changed. */
|
2476
|
-
readonly setting: string
|
2513
|
+
readonly setting: string
|
2477
2514
|
/** Either "runtime-per-user" or "runtime-global". */
|
2478
|
-
readonly setting_type: "runtime-per-user" | "runtime-global"
|
2515
|
+
readonly setting_type: "runtime-per-user" | "runtime-global"
|
2479
2516
|
/** Identifier of the event */
|
2480
|
-
readonly name: typeof defines.events.on_runtime_mod_setting_changed
|
2517
|
+
readonly name: typeof defines.events.on_runtime_mod_setting_changed
|
2481
2518
|
/** Tick the event was generated. */
|
2482
|
-
readonly tick: uint
|
2519
|
+
readonly tick: uint
|
2483
2520
|
}
|
2484
2521
|
|
2485
2522
|
/**
|
2486
2523
|
* Called just after a script inventory is resized.
|
2487
2524
|
*
|
2488
|
-
* {@link https://lua-api.factorio.com/
|
2525
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_script_inventory_resized View documentation}
|
2489
2526
|
*/
|
2490
2527
|
interface OnScriptInventoryResizedEvent {
|
2491
2528
|
/** If done by console command; the player who ran the command. */
|
2492
|
-
readonly player_index?: uint
|
2529
|
+
readonly player_index?: uint
|
2493
2530
|
/** The mod that did the resizing. This will be `"core"` if done by console command or scenario script. */
|
2494
|
-
readonly mod: string
|
2495
|
-
readonly inventory: LuaInventory
|
2531
|
+
readonly mod: string
|
2532
|
+
readonly inventory: LuaInventory
|
2496
2533
|
/** The old inventory size. */
|
2497
|
-
readonly old_size: uint
|
2534
|
+
readonly old_size: uint
|
2498
2535
|
/** The new inventory size. */
|
2499
|
-
readonly new_size: uint
|
2536
|
+
readonly new_size: uint
|
2500
2537
|
/** Any items which didn't fit into the new inventory size. */
|
2501
|
-
readonly overflow_inventory: LuaInventory
|
2538
|
+
readonly overflow_inventory: LuaInventory
|
2502
2539
|
/** Identifier of the event */
|
2503
|
-
readonly name: typeof defines.events.on_script_inventory_resized
|
2540
|
+
readonly name: typeof defines.events.on_script_inventory_resized
|
2504
2541
|
/** Tick the event was generated. */
|
2505
|
-
readonly tick: uint
|
2542
|
+
readonly tick: uint
|
2506
2543
|
}
|
2507
2544
|
|
2508
2545
|
/**
|
2509
2546
|
* Called when a {@link LuaSurface.request_path LuaSurface::request_path} call completes.
|
2510
2547
|
*
|
2511
|
-
* {@link https://lua-api.factorio.com/
|
2548
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_script_path_request_finished View documentation}
|
2512
2549
|
*/
|
2513
2550
|
interface OnScriptPathRequestFinishedEvent {
|
2514
2551
|
/** The actual path that the pathfinder has determined. `nil` if pathfinding failed. */
|
2515
|
-
readonly path?: PathfinderWaypoint[]
|
2552
|
+
readonly path?: PathfinderWaypoint[]
|
2516
2553
|
/** Handle to associate the callback with a particular call to {@link LuaSurface.request_path LuaSurface::request_path}. */
|
2517
|
-
readonly id: uint
|
2554
|
+
readonly id: uint
|
2518
2555
|
/** Indicates that the pathfinder failed because it is too busy, and that you can retry later. */
|
2519
|
-
readonly try_again_later: boolean
|
2556
|
+
readonly try_again_later: boolean
|
2520
2557
|
/** Identifier of the event */
|
2521
|
-
readonly name: typeof defines.events.on_script_path_request_finished
|
2558
|
+
readonly name: typeof defines.events.on_script_path_request_finished
|
2522
2559
|
/** Tick the event was generated. */
|
2523
|
-
readonly tick: uint
|
2560
|
+
readonly tick: uint
|
2524
2561
|
}
|
2525
2562
|
|
2526
2563
|
/**
|
2527
2564
|
* Called when a script trigger effect is triggered.
|
2528
2565
|
*
|
2529
|
-
* {@link https://lua-api.factorio.com/
|
2566
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_script_trigger_effect View documentation}
|
2530
2567
|
*/
|
2531
2568
|
interface OnScriptTriggerEffectEvent {
|
2532
2569
|
/** The effect_id specified in the trigger effect. */
|
2533
|
-
readonly effect_id: string
|
2570
|
+
readonly effect_id: string
|
2534
2571
|
/** The surface the effect happened on. */
|
2535
|
-
readonly surface_index: uint
|
2536
|
-
readonly source_position?: Position
|
2537
|
-
readonly source_entity?: LuaEntity
|
2538
|
-
readonly target_position?: Position
|
2539
|
-
readonly target_entity?: LuaEntity
|
2572
|
+
readonly surface_index: uint
|
2573
|
+
readonly source_position?: Position
|
2574
|
+
readonly source_entity?: LuaEntity
|
2575
|
+
readonly target_position?: Position
|
2576
|
+
readonly target_entity?: LuaEntity
|
2540
2577
|
/** Identifier of the event */
|
2541
|
-
readonly name: typeof defines.events.on_script_trigger_effect
|
2578
|
+
readonly name: typeof defines.events.on_script_trigger_effect
|
2542
2579
|
/** Tick the event was generated. */
|
2543
|
-
readonly tick: uint
|
2580
|
+
readonly tick: uint
|
2544
2581
|
}
|
2545
2582
|
|
2546
2583
|
/**
|
2547
2584
|
* Called when an entity of type `radar` finishes scanning a sector. Can be filtered for the radar using
|
2548
2585
|
* {@link LuaSectorScannedEventFilter}.
|
2549
2586
|
*
|
2550
|
-
* {@link https://lua-api.factorio.com/
|
2587
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_sector_scanned View documentation}
|
2551
2588
|
*/
|
2552
2589
|
interface OnSectorScannedEvent {
|
2553
2590
|
/** The radar that did the scanning. */
|
2554
|
-
readonly radar: LuaEntity
|
2591
|
+
readonly radar: LuaEntity
|
2555
2592
|
/** The chunk scanned. */
|
2556
|
-
readonly chunk_position: ChunkPosition
|
2593
|
+
readonly chunk_position: ChunkPosition
|
2557
2594
|
/** Area of the scanned chunk. */
|
2558
|
-
readonly area: BoundingBox
|
2595
|
+
readonly area: BoundingBox
|
2559
2596
|
/** Identifier of the event */
|
2560
|
-
readonly name: typeof defines.events.on_sector_scanned
|
2597
|
+
readonly name: typeof defines.events.on_sector_scanned
|
2561
2598
|
/** Tick the event was generated. */
|
2562
|
-
readonly tick: uint
|
2599
|
+
readonly tick: uint
|
2563
2600
|
}
|
2564
2601
|
|
2565
2602
|
/**
|
2566
2603
|
* Called after the selected entity changes for a given player.
|
2567
2604
|
*
|
2568
|
-
* {@link https://lua-api.factorio.com/
|
2605
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_selected_entity_changed View documentation}
|
2569
2606
|
*/
|
2570
2607
|
interface OnSelectedEntityChangedEvent {
|
2571
2608
|
/** The player whose selected entity changed. */
|
2572
|
-
readonly player_index: uint
|
2609
|
+
readonly player_index: uint
|
2573
2610
|
/** The last selected entity if it still exists and there was one. */
|
2574
|
-
readonly last_entity?: LuaEntity
|
2611
|
+
readonly last_entity?: LuaEntity
|
2575
2612
|
/** Identifier of the event */
|
2576
|
-
readonly name: typeof defines.events.on_selected_entity_changed
|
2613
|
+
readonly name: typeof defines.events.on_selected_entity_changed
|
2577
2614
|
/** Tick the event was generated. */
|
2578
|
-
readonly tick: uint
|
2615
|
+
readonly tick: uint
|
2579
2616
|
}
|
2580
2617
|
|
2581
2618
|
/**
|
2582
2619
|
* Called when a spider finishes moving to its autopilot position.
|
2583
2620
|
*
|
2584
|
-
* {@link https://lua-api.factorio.com/
|
2621
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_spider_command_completed View documentation}
|
2585
2622
|
*/
|
2586
2623
|
interface OnSpiderCommandCompletedEvent {
|
2587
2624
|
/** Spider vehicle which was requested to move. */
|
2588
|
-
readonly vehicle: LuaEntity
|
2625
|
+
readonly vehicle: LuaEntity
|
2589
2626
|
/** Identifier of the event */
|
2590
|
-
readonly name: typeof defines.events.on_spider_command_completed
|
2627
|
+
readonly name: typeof defines.events.on_spider_command_completed
|
2591
2628
|
/** Tick the event was generated. */
|
2592
|
-
readonly tick: uint
|
2629
|
+
readonly tick: uint
|
2593
2630
|
}
|
2594
2631
|
|
2595
2632
|
/**
|
2596
2633
|
* Called when a translation request generated through
|
2597
2634
|
* {@link LuaPlayer.request_translation LuaPlayer::request_translation} is translated.
|
2598
2635
|
*
|
2599
|
-
* {@link https://lua-api.factorio.com/
|
2636
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_string_translated View documentation}
|
2600
2637
|
*/
|
2601
2638
|
interface OnStringTranslatedEvent {
|
2602
2639
|
/** The player whose locale was used for the translation. */
|
2603
|
-
readonly player_index: uint
|
2640
|
+
readonly player_index: uint
|
2604
2641
|
/** The localised string being translated. */
|
2605
|
-
readonly localised_string: LocalisedString
|
2642
|
+
readonly localised_string: LocalisedString
|
2606
2643
|
/** The translated `localised_string`. */
|
2607
|
-
readonly result: string
|
2644
|
+
readonly result: string
|
2608
2645
|
/** Whether the requested localised string was valid and could be translated. */
|
2609
|
-
readonly translated: boolean
|
2646
|
+
readonly translated: boolean
|
2610
2647
|
/** Identifier of the event */
|
2611
|
-
readonly name: typeof defines.events.on_string_translated
|
2648
|
+
readonly name: typeof defines.events.on_string_translated
|
2612
2649
|
/** Tick the event was generated. */
|
2613
|
-
readonly tick: uint
|
2650
|
+
readonly tick: uint
|
2614
2651
|
}
|
2615
2652
|
|
2616
2653
|
/**
|
2617
2654
|
* Called just after a surface is cleared (all entities removed and all chunks deleted).
|
2618
2655
|
*
|
2619
|
-
* {@link https://lua-api.factorio.com/
|
2656
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_surface_cleared View documentation}
|
2620
2657
|
*/
|
2621
2658
|
interface OnSurfaceClearedEvent {
|
2622
|
-
readonly surface_index: uint
|
2659
|
+
readonly surface_index: uint
|
2623
2660
|
/** Identifier of the event */
|
2624
|
-
readonly name: typeof defines.events.on_surface_cleared
|
2661
|
+
readonly name: typeof defines.events.on_surface_cleared
|
2625
2662
|
/** Tick the event was generated. */
|
2626
|
-
readonly tick: uint
|
2663
|
+
readonly tick: uint
|
2627
2664
|
}
|
2628
2665
|
|
2629
2666
|
/**
|
@@ -2631,225 +2668,225 @@ interface OnSurfaceClearedEvent {
|
|
2631
2668
|
*
|
2632
2669
|
* **Note**: This is not called when the default surface is created as it will always exist.
|
2633
2670
|
*
|
2634
|
-
* {@link https://lua-api.factorio.com/
|
2671
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_surface_created View documentation}
|
2635
2672
|
*/
|
2636
2673
|
interface OnSurfaceCreatedEvent {
|
2637
|
-
readonly surface_index: uint
|
2674
|
+
readonly surface_index: uint
|
2638
2675
|
/** Identifier of the event */
|
2639
|
-
readonly name: typeof defines.events.on_surface_created
|
2676
|
+
readonly name: typeof defines.events.on_surface_created
|
2640
2677
|
/** Tick the event was generated. */
|
2641
|
-
readonly tick: uint
|
2678
|
+
readonly tick: uint
|
2642
2679
|
}
|
2643
2680
|
|
2644
2681
|
/**
|
2645
2682
|
* Called after a surface is deleted.
|
2646
2683
|
*
|
2647
|
-
* {@link https://lua-api.factorio.com/
|
2684
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_surface_deleted View documentation}
|
2648
2685
|
*/
|
2649
2686
|
interface OnSurfaceDeletedEvent {
|
2650
|
-
readonly surface_index: uint
|
2687
|
+
readonly surface_index: uint
|
2651
2688
|
/** Identifier of the event */
|
2652
|
-
readonly name: typeof defines.events.on_surface_deleted
|
2689
|
+
readonly name: typeof defines.events.on_surface_deleted
|
2653
2690
|
/** Tick the event was generated. */
|
2654
|
-
readonly tick: uint
|
2691
|
+
readonly tick: uint
|
2655
2692
|
}
|
2656
2693
|
|
2657
2694
|
/**
|
2658
2695
|
* Called after a surface is imported.
|
2659
2696
|
*
|
2660
|
-
* {@link https://lua-api.factorio.com/
|
2697
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_surface_imported View documentation}
|
2661
2698
|
*/
|
2662
2699
|
interface OnSurfaceImportedEvent {
|
2663
|
-
readonly surface_index: uint
|
2700
|
+
readonly surface_index: uint
|
2664
2701
|
/** The original surface name. */
|
2665
|
-
readonly original_name: string
|
2702
|
+
readonly original_name: string
|
2666
2703
|
/** Identifier of the event */
|
2667
|
-
readonly name: typeof defines.events.on_surface_imported
|
2704
|
+
readonly name: typeof defines.events.on_surface_imported
|
2668
2705
|
/** Tick the event was generated. */
|
2669
|
-
readonly tick: uint
|
2706
|
+
readonly tick: uint
|
2670
2707
|
}
|
2671
2708
|
|
2672
2709
|
/**
|
2673
2710
|
* Called when a surface is renamed.
|
2674
2711
|
*
|
2675
|
-
* {@link https://lua-api.factorio.com/
|
2712
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_surface_renamed View documentation}
|
2676
2713
|
*/
|
2677
2714
|
interface OnSurfaceRenamedEvent {
|
2678
|
-
readonly surface_index: uint
|
2679
|
-
readonly old_name: string
|
2680
|
-
readonly new_name: string
|
2715
|
+
readonly surface_index: uint
|
2716
|
+
readonly old_name: string
|
2717
|
+
readonly new_name: string
|
2681
2718
|
/** Identifier of the event */
|
2682
|
-
readonly name: typeof defines.events.on_surface_renamed
|
2719
|
+
readonly name: typeof defines.events.on_surface_renamed
|
2683
2720
|
/** Tick the event was generated. */
|
2684
|
-
readonly tick: uint
|
2721
|
+
readonly tick: uint
|
2685
2722
|
}
|
2686
2723
|
|
2687
2724
|
/**
|
2688
2725
|
* Called when {@link LuaForce.reset_technology_effects LuaForce::reset_technology_effects} is finished.
|
2689
2726
|
*
|
2690
|
-
* {@link https://lua-api.factorio.com/
|
2727
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_technology_effects_reset View documentation}
|
2691
2728
|
*/
|
2692
2729
|
interface OnTechnologyEffectsResetEvent {
|
2693
|
-
readonly force: LuaForce
|
2730
|
+
readonly force: LuaForce
|
2694
2731
|
/** Identifier of the event */
|
2695
|
-
readonly name: typeof defines.events.on_technology_effects_reset
|
2732
|
+
readonly name: typeof defines.events.on_technology_effects_reset
|
2696
2733
|
/** Tick the event was generated. */
|
2697
|
-
readonly tick: uint
|
2734
|
+
readonly tick: uint
|
2698
2735
|
}
|
2699
2736
|
|
2700
2737
|
/**
|
2701
2738
|
* It is fired once every tick. Since this event is fired every tick, its handler shouldn't include performance heavy code.
|
2702
2739
|
*
|
2703
|
-
* {@link https://lua-api.factorio.com/
|
2740
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_tick View documentation}
|
2704
2741
|
*/
|
2705
2742
|
interface OnTickEvent {
|
2706
2743
|
/** Identifier of the event */
|
2707
|
-
readonly name: typeof defines.events.on_tick
|
2744
|
+
readonly name: typeof defines.events.on_tick
|
2708
2745
|
/** Tick the event was generated. */
|
2709
|
-
readonly tick: uint
|
2746
|
+
readonly tick: uint
|
2710
2747
|
}
|
2711
2748
|
|
2712
2749
|
/**
|
2713
2750
|
* Called when a train changes state (started to stopped and vice versa)
|
2714
2751
|
*
|
2715
|
-
* {@link https://lua-api.factorio.com/
|
2752
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_train_changed_state View documentation}
|
2716
2753
|
*/
|
2717
2754
|
interface OnTrainChangedStateEvent {
|
2718
|
-
readonly train: LuaTrain
|
2719
|
-
readonly old_state: defines.train_state
|
2755
|
+
readonly train: LuaTrain
|
2756
|
+
readonly old_state: defines.train_state
|
2720
2757
|
/** Identifier of the event */
|
2721
|
-
readonly name: typeof defines.events.on_train_changed_state
|
2758
|
+
readonly name: typeof defines.events.on_train_changed_state
|
2722
2759
|
/** Tick the event was generated. */
|
2723
|
-
readonly tick: uint
|
2760
|
+
readonly tick: uint
|
2724
2761
|
}
|
2725
2762
|
|
2726
2763
|
/**
|
2727
2764
|
* Called when a new train is created either through disconnecting/connecting an existing one or building a new one.
|
2728
2765
|
*
|
2729
|
-
* {@link https://lua-api.factorio.com/
|
2766
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_train_created View documentation}
|
2730
2767
|
*/
|
2731
2768
|
interface OnTrainCreatedEvent {
|
2732
|
-
readonly train: LuaTrain
|
2769
|
+
readonly train: LuaTrain
|
2733
2770
|
/** The first old train id when splitting/merging trains. */
|
2734
|
-
readonly old_train_id_1?: uint
|
2771
|
+
readonly old_train_id_1?: uint
|
2735
2772
|
/** The second old train id when splitting/merging trains. */
|
2736
|
-
readonly old_train_id_2?: uint
|
2773
|
+
readonly old_train_id_2?: uint
|
2737
2774
|
/** Identifier of the event */
|
2738
|
-
readonly name: typeof defines.events.on_train_created
|
2775
|
+
readonly name: typeof defines.events.on_train_created
|
2739
2776
|
/** Tick the event was generated. */
|
2740
|
-
readonly tick: uint
|
2777
|
+
readonly tick: uint
|
2741
2778
|
}
|
2742
2779
|
|
2743
2780
|
/**
|
2744
2781
|
* Called when a trains schedule is changed either by the player or through script.
|
2745
2782
|
*
|
2746
|
-
* {@link https://lua-api.factorio.com/
|
2783
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_train_schedule_changed View documentation}
|
2747
2784
|
*/
|
2748
2785
|
interface OnTrainScheduleChangedEvent {
|
2749
|
-
readonly train: LuaTrain
|
2786
|
+
readonly train: LuaTrain
|
2750
2787
|
/** The player who made the change if any. */
|
2751
|
-
readonly player_index?: uint
|
2788
|
+
readonly player_index?: uint
|
2752
2789
|
/** Identifier of the event */
|
2753
|
-
readonly name: typeof defines.events.on_train_schedule_changed
|
2790
|
+
readonly name: typeof defines.events.on_train_schedule_changed
|
2754
2791
|
/** Tick the event was generated. */
|
2755
|
-
readonly tick: uint
|
2792
|
+
readonly tick: uint
|
2756
2793
|
}
|
2757
2794
|
|
2758
2795
|
/**
|
2759
2796
|
* Called when an entity with a trigger prototype (such as capsules) create an entity AND that trigger prototype defined
|
2760
2797
|
* `trigger_created_entity="true"`.
|
2761
2798
|
*
|
2762
|
-
* {@link https://lua-api.factorio.com/
|
2799
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_trigger_created_entity View documentation}
|
2763
2800
|
*/
|
2764
2801
|
interface OnTriggerCreatedEntityEvent {
|
2765
|
-
readonly entity: LuaEntity
|
2766
|
-
readonly source?: LuaEntity
|
2802
|
+
readonly entity: LuaEntity
|
2803
|
+
readonly source?: LuaEntity
|
2767
2804
|
/** Identifier of the event */
|
2768
|
-
readonly name: typeof defines.events.on_trigger_created_entity
|
2805
|
+
readonly name: typeof defines.events.on_trigger_created_entity
|
2769
2806
|
/** Tick the event was generated. */
|
2770
|
-
readonly tick: uint
|
2807
|
+
readonly tick: uint
|
2771
2808
|
}
|
2772
2809
|
|
2773
2810
|
/**
|
2774
2811
|
* Called when an entity with a trigger prototype (such as capsules) fire an artillery projectile AND that trigger
|
2775
2812
|
* prototype defined `trigger_fired_artillery="true"`.
|
2776
2813
|
*
|
2777
|
-
* {@link https://lua-api.factorio.com/
|
2814
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_trigger_fired_artillery View documentation}
|
2778
2815
|
*/
|
2779
2816
|
interface OnTriggerFiredArtilleryEvent {
|
2780
|
-
readonly entity: LuaEntity
|
2781
|
-
readonly source?: LuaEntity
|
2817
|
+
readonly entity: LuaEntity
|
2818
|
+
readonly source?: LuaEntity
|
2782
2819
|
/** Identifier of the event */
|
2783
|
-
readonly name: typeof defines.events.on_trigger_fired_artillery
|
2820
|
+
readonly name: typeof defines.events.on_trigger_fired_artillery
|
2784
2821
|
/** Tick the event was generated. */
|
2785
|
-
readonly tick: uint
|
2822
|
+
readonly tick: uint
|
2786
2823
|
}
|
2787
2824
|
|
2788
2825
|
/**
|
2789
2826
|
* Called when a unit is added to a unit group.
|
2790
2827
|
*
|
2791
|
-
* {@link https://lua-api.factorio.com/
|
2828
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_unit_added_to_group View documentation}
|
2792
2829
|
*/
|
2793
2830
|
interface OnUnitAddedToGroupEvent {
|
2794
|
-
readonly unit: LuaEntity
|
2795
|
-
readonly group: LuaUnitGroup
|
2831
|
+
readonly unit: LuaEntity
|
2832
|
+
readonly group: LuaUnitGroup
|
2796
2833
|
/** Identifier of the event */
|
2797
|
-
readonly name: typeof defines.events.on_unit_added_to_group
|
2834
|
+
readonly name: typeof defines.events.on_unit_added_to_group
|
2798
2835
|
/** Tick the event was generated. */
|
2799
|
-
readonly tick: uint
|
2836
|
+
readonly tick: uint
|
2800
2837
|
}
|
2801
2838
|
|
2802
2839
|
/**
|
2803
2840
|
* Called when a new unit group is created, before any members are added to it.
|
2804
2841
|
*
|
2805
|
-
* {@link https://lua-api.factorio.com/
|
2842
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_unit_group_created View documentation}
|
2806
2843
|
*/
|
2807
2844
|
interface OnUnitGroupCreatedEvent {
|
2808
|
-
readonly group: LuaUnitGroup
|
2845
|
+
readonly group: LuaUnitGroup
|
2809
2846
|
/** Identifier of the event */
|
2810
|
-
readonly name: typeof defines.events.on_unit_group_created
|
2847
|
+
readonly name: typeof defines.events.on_unit_group_created
|
2811
2848
|
/** Tick the event was generated. */
|
2812
|
-
readonly tick: uint
|
2849
|
+
readonly tick: uint
|
2813
2850
|
}
|
2814
2851
|
|
2815
2852
|
/**
|
2816
2853
|
* Called when a unit group finishes gathering and starts executing its command.
|
2817
2854
|
*
|
2818
|
-
* {@link https://lua-api.factorio.com/
|
2855
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_unit_group_finished_gathering View documentation}
|
2819
2856
|
*/
|
2820
2857
|
interface OnUnitGroupFinishedGatheringEvent {
|
2821
|
-
readonly group: LuaUnitGroup
|
2858
|
+
readonly group: LuaUnitGroup
|
2822
2859
|
/** Identifier of the event */
|
2823
|
-
readonly name: typeof defines.events.on_unit_group_finished_gathering
|
2860
|
+
readonly name: typeof defines.events.on_unit_group_finished_gathering
|
2824
2861
|
/** Tick the event was generated. */
|
2825
|
-
readonly tick: uint
|
2862
|
+
readonly tick: uint
|
2826
2863
|
}
|
2827
2864
|
|
2828
2865
|
/**
|
2829
2866
|
* Called when a unit is removed from a unit group.
|
2830
2867
|
*
|
2831
|
-
* {@link https://lua-api.factorio.com/
|
2868
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_unit_removed_from_group View documentation}
|
2832
2869
|
*/
|
2833
2870
|
interface OnUnitRemovedFromGroupEvent {
|
2834
|
-
readonly unit: LuaEntity
|
2835
|
-
readonly group: LuaUnitGroup
|
2871
|
+
readonly unit: LuaEntity
|
2872
|
+
readonly group: LuaUnitGroup
|
2836
2873
|
/** Identifier of the event */
|
2837
|
-
readonly name: typeof defines.events.on_unit_removed_from_group
|
2874
|
+
readonly name: typeof defines.events.on_unit_removed_from_group
|
2838
2875
|
/** Tick the event was generated. */
|
2839
|
-
readonly tick: uint
|
2876
|
+
readonly tick: uint
|
2840
2877
|
}
|
2841
2878
|
|
2842
2879
|
/**
|
2843
2880
|
* Called when a worker (construction or logistic) robot expires through a lack of energy.
|
2844
2881
|
*
|
2845
|
-
* {@link https://lua-api.factorio.com/
|
2882
|
+
* {@link https://lua-api.factorio.com/next/Events.html#on_worker_robot_expired View documentation}
|
2846
2883
|
*/
|
2847
2884
|
interface OnWorkerRobotExpiredEvent {
|
2848
|
-
readonly robot: LuaEntity
|
2885
|
+
readonly robot: LuaEntity
|
2849
2886
|
/** Identifier of the event */
|
2850
|
-
readonly name: typeof defines.events.on_worker_robot_expired
|
2887
|
+
readonly name: typeof defines.events.on_worker_robot_expired
|
2851
2888
|
/** Tick the event was generated. */
|
2852
|
-
readonly tick: uint
|
2889
|
+
readonly tick: uint
|
2853
2890
|
}
|
2854
2891
|
|
2855
2892
|
/**
|
@@ -2858,15 +2895,15 @@ interface OnWorkerRobotExpiredEvent {
|
|
2858
2895
|
* {@link LuaBootstrap.raise_script_built LuaBootstrap::raise_script_built}, or when `raise_built` is passed to
|
2859
2896
|
* {@link LuaSurface.create_entity LuaSurface::create_entity}. Can be filtered using {@link LuaScriptRaisedBuiltEventFilter}.
|
2860
2897
|
*
|
2861
|
-
* {@link https://lua-api.factorio.com/
|
2898
|
+
* {@link https://lua-api.factorio.com/next/Events.html#script_raised_built View documentation}
|
2862
2899
|
*/
|
2863
2900
|
interface ScriptRaisedBuiltEvent {
|
2864
2901
|
/** The entity that has been built. */
|
2865
|
-
readonly entity: LuaEntity
|
2902
|
+
readonly entity: LuaEntity
|
2866
2903
|
/** Identifier of the event */
|
2867
|
-
readonly name: typeof defines.events.script_raised_built
|
2904
|
+
readonly name: typeof defines.events.script_raised_built
|
2868
2905
|
/** Tick the event was generated. */
|
2869
|
-
readonly tick: uint
|
2906
|
+
readonly tick: uint
|
2870
2907
|
}
|
2871
2908
|
|
2872
2909
|
/**
|
@@ -2875,15 +2912,15 @@ interface ScriptRaisedBuiltEvent {
|
|
2875
2912
|
* {@link LuaBootstrap.raise_script_destroy LuaBootstrap::raise_script_destroy}, or when `raise_destroy` is passed to
|
2876
2913
|
* {@link LuaEntity.destroy LuaEntity::destroy}. Can be filtered using {@link LuaScriptRaisedDestroyEventFilter}.
|
2877
2914
|
*
|
2878
|
-
* {@link https://lua-api.factorio.com/
|
2915
|
+
* {@link https://lua-api.factorio.com/next/Events.html#script_raised_destroy View documentation}
|
2879
2916
|
*/
|
2880
2917
|
interface ScriptRaisedDestroyEvent {
|
2881
2918
|
/** The entity that was destroyed. */
|
2882
|
-
readonly entity: LuaEntity
|
2919
|
+
readonly entity: LuaEntity
|
2883
2920
|
/** Identifier of the event */
|
2884
|
-
readonly name: typeof defines.events.script_raised_destroy
|
2921
|
+
readonly name: typeof defines.events.script_raised_destroy
|
2885
2922
|
/** Tick the event was generated. */
|
2886
|
-
readonly tick: uint
|
2923
|
+
readonly tick: uint
|
2887
2924
|
}
|
2888
2925
|
|
2889
2926
|
/**
|
@@ -2892,17 +2929,17 @@ interface ScriptRaisedDestroyEvent {
|
|
2892
2929
|
* {@link LuaBootstrap.raise_script_revive LuaBootstrap::raise_script_revive}, or when `raise_revive` is passed to
|
2893
2930
|
* {@link LuaEntity.revive LuaEntity::revive}. Can be filtered using {@link LuaScriptRaisedReviveEventFilter}.
|
2894
2931
|
*
|
2895
|
-
* {@link https://lua-api.factorio.com/
|
2932
|
+
* {@link https://lua-api.factorio.com/next/Events.html#script_raised_revive View documentation}
|
2896
2933
|
*/
|
2897
2934
|
interface ScriptRaisedReviveEvent {
|
2898
2935
|
/** The entity that was revived. */
|
2899
|
-
readonly entity: LuaEntity
|
2936
|
+
readonly entity: LuaEntity
|
2900
2937
|
/** The tags associated with this entity, if any. */
|
2901
|
-
readonly tags?: Tags
|
2938
|
+
readonly tags?: Tags
|
2902
2939
|
/** Identifier of the event */
|
2903
|
-
readonly name: typeof defines.events.script_raised_revive
|
2940
|
+
readonly name: typeof defines.events.script_raised_revive
|
2904
2941
|
/** Tick the event was generated. */
|
2905
|
-
readonly tick: uint
|
2942
|
+
readonly tick: uint
|
2906
2943
|
}
|
2907
2944
|
|
2908
2945
|
/**
|
@@ -2911,212 +2948,214 @@ interface ScriptRaisedReviveEvent {
|
|
2911
2948
|
* {@link LuaBootstrap.raise_script_set_tiles LuaBootstrap::raise_script_set_tiles}, or when `raise_event` is passed to
|
2912
2949
|
* {@link LuaSurface.set_tiles LuaSurface::set_tiles}.
|
2913
2950
|
*
|
2914
|
-
* {@link https://lua-api.factorio.com/
|
2951
|
+
* {@link https://lua-api.factorio.com/next/Events.html#script_raised_set_tiles View documentation}
|
2915
2952
|
*/
|
2916
2953
|
interface ScriptRaisedSetTilesEvent {
|
2917
2954
|
/** The surface whose tiles were changed. */
|
2918
|
-
readonly surface_index: uint
|
2955
|
+
readonly surface_index: uint
|
2919
2956
|
/** The tiles that were changed. */
|
2920
|
-
readonly tiles: Tile[]
|
2957
|
+
readonly tiles: Tile[]
|
2921
2958
|
/** Identifier of the event */
|
2922
|
-
readonly name: typeof defines.events.script_raised_set_tiles
|
2959
|
+
readonly name: typeof defines.events.script_raised_set_tiles
|
2923
2960
|
/** Tick the event was generated. */
|
2924
|
-
readonly tick: uint
|
2961
|
+
readonly tick: uint
|
2925
2962
|
}
|
2926
2963
|
|
2927
2964
|
interface EventTypes {
|
2928
|
-
[defines.events.on_tick]: OnTickEvent
|
2929
|
-
[defines.events.on_gui_click]: OnGuiClickEvent
|
2930
|
-
[defines.events.on_gui_confirmed]: OnGuiConfirmedEvent
|
2931
|
-
[defines.events.on_gui_text_changed]: OnGuiTextChangedEvent
|
2932
|
-
[defines.events.on_gui_checked_state_changed]: OnGuiCheckedStateChangedEvent
|
2933
|
-
[defines.events.on_entity_died]: OnEntityDiedEvent
|
2934
|
-
[defines.events.on_post_entity_died]: OnPostEntityDiedEvent
|
2935
|
-
[defines.events.on_entity_damaged]: OnEntityDamagedEvent
|
2936
|
-
[defines.events.on_picked_up_item]: OnPickedUpItemEvent
|
2937
|
-
[defines.events.on_built_entity]: OnBuiltEntityEvent
|
2938
|
-
[defines.events.on_sector_scanned]: OnSectorScannedEvent
|
2939
|
-
[defines.events.on_player_mined_item]: OnPlayerMinedItemEvent
|
2940
|
-
[defines.events.on_pre_build]: OnPreBuildEvent
|
2941
|
-
[defines.events.on_rocket_launched]: OnRocketLaunchedEvent
|
2942
|
-
[defines.events.on_pre_player_mined_item]: OnPrePlayerMinedItemEvent
|
2943
|
-
[defines.events.on_chunk_generated]: OnChunkGeneratedEvent
|
2944
|
-
[defines.events.on_player_crafted_item]: OnPlayerCraftedItemEvent
|
2945
|
-
[defines.events.on_robot_built_entity]: OnRobotBuiltEntityEvent
|
2946
|
-
[defines.events.on_robot_pre_mined]: OnRobotPreMinedEvent
|
2947
|
-
[defines.events.on_robot_mined]: OnRobotMinedEvent
|
2948
|
-
[defines.events.on_research_started]: OnResearchStartedEvent
|
2949
|
-
[defines.events.on_research_finished]: OnResearchFinishedEvent
|
2950
|
-
[defines.events.on_research_reversed]: OnResearchReversedEvent
|
2951
|
-
[defines.events.on_player_rotated_entity]: OnPlayerRotatedEntityEvent
|
2952
|
-
[defines.events.on_marked_for_deconstruction]: OnMarkedForDeconstructionEvent
|
2953
|
-
[defines.events.on_cancelled_deconstruction]: OnCancelledDeconstructionEvent
|
2954
|
-
[defines.events.on_trigger_created_entity]: OnTriggerCreatedEntityEvent
|
2955
|
-
[defines.events.on_trigger_fired_artillery]: OnTriggerFiredArtilleryEvent
|
2956
|
-
[defines.events.on_train_changed_state]: OnTrainChangedStateEvent
|
2957
|
-
[defines.events.on_player_created]: OnPlayerCreatedEvent
|
2958
|
-
[defines.events.on_resource_depleted]: OnResourceDepletedEvent
|
2959
|
-
[defines.events.on_player_driving_changed_state]: OnPlayerDrivingChangedStateEvent
|
2960
|
-
[defines.events.on_force_created]: OnForceCreatedEvent
|
2961
|
-
[defines.events.on_forces_merging]: OnForcesMergingEvent
|
2962
|
-
[defines.events.on_player_cursor_stack_changed]: OnPlayerCursorStackChangedEvent
|
2963
|
-
[defines.events.on_pre_entity_settings_pasted]: OnPreEntitySettingsPastedEvent
|
2964
|
-
[defines.events.on_entity_settings_pasted]: OnEntitySettingsPastedEvent
|
2965
|
-
[defines.events.on_player_main_inventory_changed]: OnPlayerMainInventoryChangedEvent
|
2966
|
-
[defines.events.on_player_armor_inventory_changed]: OnPlayerArmorInventoryChangedEvent
|
2967
|
-
[defines.events.on_player_ammo_inventory_changed]: OnPlayerAmmoInventoryChangedEvent
|
2968
|
-
[defines.events.on_player_gun_inventory_changed]: OnPlayerGunInventoryChangedEvent
|
2969
|
-
[defines.events.on_player_placed_equipment]: OnPlayerPlacedEquipmentEvent
|
2970
|
-
[defines.events.on_player_removed_equipment]: OnPlayerRemovedEquipmentEvent
|
2971
|
-
[defines.events.on_pre_player_died]: OnPrePlayerDiedEvent
|
2972
|
-
[defines.events.on_player_died]: OnPlayerDiedEvent
|
2973
|
-
[defines.events.on_player_respawned]: OnPlayerRespawnedEvent
|
2974
|
-
[defines.events.on_player_joined_game]: OnPlayerJoinedGameEvent
|
2975
|
-
[defines.events.on_player_left_game]: OnPlayerLeftGameEvent
|
2976
|
-
[defines.events.on_player_built_tile]: OnPlayerBuiltTileEvent
|
2977
|
-
[defines.events.on_player_mined_tile]: OnPlayerMinedTileEvent
|
2978
|
-
[defines.events.on_robot_built_tile]: OnRobotBuiltTileEvent
|
2979
|
-
[defines.events.on_robot_mined_tile]: OnRobotMinedTileEvent
|
2980
|
-
[defines.events.on_player_selected_area]: OnPlayerSelectedAreaEvent
|
2981
|
-
[defines.events.on_player_alt_selected_area]: OnPlayerAltSelectedAreaEvent
|
2982
|
-
[defines.events.on_player_changed_surface]: OnPlayerChangedSurfaceEvent
|
2983
|
-
[defines.events.on_selected_entity_changed]: OnSelectedEntityChangedEvent
|
2984
|
-
[defines.events.on_market_item_purchased]: OnMarketItemPurchasedEvent
|
2985
|
-
[defines.events.on_player_dropped_item]: OnPlayerDroppedItemEvent
|
2986
|
-
[defines.events.on_biter_base_built]: OnBiterBaseBuiltEvent
|
2987
|
-
[defines.events.on_player_changed_force]: OnPlayerChangedForceEvent
|
2988
|
-
[defines.events.on_entity_renamed]: OnEntityRenamedEvent
|
2989
|
-
[defines.events.on_gui_selection_state_changed]: OnGuiSelectionStateChangedEvent
|
2990
|
-
[defines.events.on_runtime_mod_setting_changed]: OnRuntimeModSettingChangedEvent
|
2991
|
-
[defines.events.on_difficulty_settings_changed]: OnDifficultySettingsChangedEvent
|
2992
|
-
[defines.events.on_surface_created]: OnSurfaceCreatedEvent
|
2993
|
-
[defines.events.on_surface_deleted]: OnSurfaceDeletedEvent
|
2994
|
-
[defines.events.on_pre_surface_deleted]: OnPreSurfaceDeletedEvent
|
2995
|
-
[defines.events.on_player_mined_entity]: OnPlayerMinedEntityEvent
|
2996
|
-
[defines.events.on_robot_mined_entity]: OnRobotMinedEntityEvent
|
2997
|
-
[defines.events.on_train_created]: OnTrainCreatedEvent
|
2998
|
-
[defines.events.on_gui_elem_changed]: OnGuiElemChangedEvent
|
2999
|
-
[defines.events.on_player_setup_blueprint]: OnPlayerSetupBlueprintEvent
|
3000
|
-
[defines.events.on_player_deconstructed_area]: OnPlayerDeconstructedAreaEvent
|
3001
|
-
[defines.events.on_player_configured_blueprint]: OnPlayerConfiguredBlueprintEvent
|
3002
|
-
[defines.events.on_console_chat]: OnConsoleChatEvent
|
3003
|
-
[defines.events.on_console_command]: OnConsoleCommandEvent
|
3004
|
-
[defines.events.on_player_removed]: OnPlayerRemovedEvent
|
3005
|
-
[defines.events.on_pre_player_removed]: OnPrePlayerRemovedEvent
|
3006
|
-
[defines.events.on_player_used_capsule]: OnPlayerUsedCapsuleEvent
|
3007
|
-
[defines.events.script_raised_built]: ScriptRaisedBuiltEvent
|
3008
|
-
[defines.events.script_raised_destroy]: ScriptRaisedDestroyEvent
|
3009
|
-
[defines.events.script_raised_revive]: ScriptRaisedReviveEvent
|
3010
|
-
[defines.events.script_raised_set_tiles]: ScriptRaisedSetTilesEvent
|
3011
|
-
[defines.events.on_player_promoted]: OnPlayerPromotedEvent
|
3012
|
-
[defines.events.on_player_demoted]: OnPlayerDemotedEvent
|
3013
|
-
[defines.events.on_combat_robot_expired]: OnCombatRobotExpiredEvent
|
3014
|
-
[defines.events.on_worker_robot_expired]: OnWorkerRobotExpiredEvent
|
3015
|
-
[defines.events.on_player_changed_position]: OnPlayerChangedPositionEvent
|
3016
|
-
[defines.events.on_mod_item_opened]: OnModItemOpenedEvent
|
3017
|
-
[defines.events.on_gui_opened]: OnGuiOpenedEvent
|
3018
|
-
[defines.events.on_gui_closed]: OnGuiClosedEvent
|
3019
|
-
[defines.events.on_gui_value_changed]: OnGuiValueChangedEvent
|
3020
|
-
[defines.events.on_player_muted]: OnPlayerMutedEvent
|
3021
|
-
[defines.events.on_player_unmuted]: OnPlayerUnmutedEvent
|
3022
|
-
[defines.events.on_player_cheat_mode_enabled]: OnPlayerCheatModeEnabledEvent
|
3023
|
-
[defines.events.on_player_cheat_mode_disabled]: OnPlayerCheatModeDisabledEvent
|
3024
|
-
[defines.events.on_character_corpse_expired]: OnCharacterCorpseExpiredEvent
|
3025
|
-
[defines.events.on_pre_ghost_deconstructed]: OnPreGhostDeconstructedEvent
|
3026
|
-
[defines.events.on_player_pipette]: OnPlayerPipetteEvent
|
3027
|
-
[defines.events.on_player_display_resolution_changed]: OnPlayerDisplayResolutionChangedEvent
|
3028
|
-
[defines.events.on_player_display_scale_changed]: OnPlayerDisplayScaleChangedEvent
|
3029
|
-
[defines.events.on_pre_player_crafted_item]: OnPrePlayerCraftedItemEvent
|
3030
|
-
[defines.events.on_player_cancelled_crafting]: OnPlayerCancelledCraftingEvent
|
3031
|
-
[defines.events.on_chunk_charted]: OnChunkChartedEvent
|
3032
|
-
[defines.events.on_technology_effects_reset]: OnTechnologyEffectsResetEvent
|
3033
|
-
[defines.events.on_force_reset]: OnForceResetEvent
|
3034
|
-
[defines.events.on_land_mine_armed]: OnLandMineArmedEvent
|
3035
|
-
[defines.events.on_forces_merged]: OnForcesMergedEvent
|
3036
|
-
[defines.events.on_player_trash_inventory_changed]: OnPlayerTrashInventoryChangedEvent
|
3037
|
-
[defines.events.on_pre_player_left_game]: OnPrePlayerLeftGameEvent
|
3038
|
-
[defines.events.on_pre_surface_cleared]: OnPreSurfaceClearedEvent
|
3039
|
-
[defines.events.on_surface_cleared]: OnSurfaceClearedEvent
|
3040
|
-
[defines.events.on_chunk_deleted]: OnChunkDeletedEvent
|
3041
|
-
[defines.events.on_pre_chunk_deleted]: OnPreChunkDeletedEvent
|
3042
|
-
[defines.events.on_train_schedule_changed]: OnTrainScheduleChangedEvent
|
3043
|
-
[defines.events.on_player_banned]: OnPlayerBannedEvent
|
3044
|
-
[defines.events.on_player_kicked]: OnPlayerKickedEvent
|
3045
|
-
[defines.events.on_player_unbanned]: OnPlayerUnbannedEvent
|
3046
|
-
[defines.events.on_rocket_launch_ordered]: OnRocketLaunchOrderedEvent
|
3047
|
-
[defines.events.on_script_path_request_finished]: OnScriptPathRequestFinishedEvent
|
3048
|
-
[defines.events.on_ai_command_completed]: OnAiCommandCompletedEvent
|
3049
|
-
[defines.events.on_marked_for_upgrade]: OnMarkedForUpgradeEvent
|
3050
|
-
[defines.events.on_cancelled_upgrade]: OnCancelledUpgradeEvent
|
3051
|
-
[defines.events.on_player_toggled_map_editor]: OnPlayerToggledMapEditorEvent
|
3052
|
-
[defines.events.on_entity_cloned]: OnEntityClonedEvent
|
3053
|
-
[defines.events.on_area_cloned]: OnAreaClonedEvent
|
3054
|
-
[defines.events.on_brush_cloned]: OnBrushClonedEvent
|
3055
|
-
[defines.events.on_game_created_from_scenario]: OnGameCreatedFromScenarioEvent
|
3056
|
-
[defines.events.on_surface_imported]: OnSurfaceImportedEvent
|
3057
|
-
[defines.events.on_surface_renamed]: OnSurfaceRenamedEvent
|
3058
|
-
[defines.events.on_player_toggled_alt_mode]: OnPlayerToggledAltModeEvent
|
3059
|
-
[defines.events.on_player_repaired_entity]: OnPlayerRepairedEntityEvent
|
3060
|
-
[defines.events.on_player_fast_transferred]: OnPlayerFastTransferredEvent
|
3061
|
-
[defines.events.on_pre_robot_exploded_cliff]: OnPreRobotExplodedCliffEvent
|
3062
|
-
[defines.events.on_robot_exploded_cliff]: OnRobotExplodedCliffEvent
|
3063
|
-
[defines.events.on_entity_spawned]: OnEntitySpawnedEvent
|
3064
|
-
[defines.events.on_cutscene_waypoint_reached]: OnCutsceneWaypointReachedEvent
|
3065
|
-
[defines.events.on_unit_group_created]: OnUnitGroupCreatedEvent
|
3066
|
-
[defines.events.on_unit_added_to_group]: OnUnitAddedToGroupEvent
|
3067
|
-
[defines.events.on_unit_removed_from_group]: OnUnitRemovedFromGroupEvent
|
3068
|
-
[defines.events.on_unit_group_finished_gathering]: OnUnitGroupFinishedGatheringEvent
|
3069
|
-
[defines.events.on_build_base_arrived]: OnBuildBaseArrivedEvent
|
3070
|
-
[defines.events.on_chart_tag_added]: OnChartTagAddedEvent
|
3071
|
-
[defines.events.on_chart_tag_modified]: OnChartTagModifiedEvent
|
3072
|
-
[defines.events.on_chart_tag_removed]: OnChartTagRemovedEvent
|
3073
|
-
[defines.events.on_lua_shortcut]: OnLuaShortcutEvent
|
3074
|
-
[defines.events.on_gui_location_changed]: OnGuiLocationChangedEvent
|
3075
|
-
[defines.events.on_gui_selected_tab_changed]: OnGuiSelectedTabChangedEvent
|
3076
|
-
[defines.events.on_gui_switch_state_changed]: OnGuiSwitchStateChangedEvent
|
3077
|
-
[defines.events.on_force_cease_fire_changed]: OnForceCeaseFireChangedEvent
|
3078
|
-
[defines.events.on_force_friends_changed]: OnForceFriendsChangedEvent
|
3079
|
-
[defines.events.on_string_translated]: OnStringTranslatedEvent
|
3080
|
-
[defines.events.on_script_trigger_effect]: OnScriptTriggerEffectEvent
|
3081
|
-
[defines.events.on_player_set_quick_bar_slot]: OnPlayerSetQuickBarSlotEvent
|
3082
|
-
[defines.events.on_pre_player_toggled_map_editor]: OnPrePlayerToggledMapEditorEvent
|
3083
|
-
[defines.events.on_pre_script_inventory_resized]: OnPreScriptInventoryResizedEvent
|
3084
|
-
[defines.events.on_script_inventory_resized]: OnScriptInventoryResizedEvent
|
3085
|
-
[defines.events.on_entity_destroyed]: OnEntityDestroyedEvent
|
3086
|
-
[defines.events.on_player_clicked_gps_tag]: OnPlayerClickedGpsTagEvent
|
3087
|
-
[defines.events.on_player_flushed_fluid]: OnPlayerFlushedFluidEvent
|
3088
|
-
[defines.events.on_permission_group_edited]: OnPermissionGroupEditedEvent
|
3089
|
-
[defines.events.on_pre_permission_string_imported]: OnPrePermissionStringImportedEvent
|
3090
|
-
[defines.events.on_permission_string_imported]: OnPermissionStringImportedEvent
|
3091
|
-
[defines.events.on_pre_permission_group_deleted]: OnPrePermissionGroupDeletedEvent
|
3092
|
-
[defines.events.on_permission_group_deleted]: OnPermissionGroupDeletedEvent
|
3093
|
-
[defines.events.on_permission_group_added]: OnPermissionGroupAddedEvent
|
3094
|
-
[defines.events.on_cutscene_cancelled]: OnCutsceneCancelledEvent
|
3095
|
-
[defines.events.on_player_configured_spider_remote]: OnPlayerConfiguredSpiderRemoteEvent
|
3096
|
-
[defines.events.on_player_used_spider_remote]: OnPlayerUsedSpiderRemoteEvent
|
3097
|
-
[defines.events.on_spider_command_completed]: OnSpiderCommandCompletedEvent
|
3098
|
-
[defines.events.on_entity_logistic_slot_changed]: OnEntityLogisticSlotChangedEvent
|
2965
|
+
[defines.events.on_tick]: OnTickEvent
|
2966
|
+
[defines.events.on_gui_click]: OnGuiClickEvent
|
2967
|
+
[defines.events.on_gui_confirmed]: OnGuiConfirmedEvent
|
2968
|
+
[defines.events.on_gui_text_changed]: OnGuiTextChangedEvent
|
2969
|
+
[defines.events.on_gui_checked_state_changed]: OnGuiCheckedStateChangedEvent
|
2970
|
+
[defines.events.on_entity_died]: OnEntityDiedEvent
|
2971
|
+
[defines.events.on_post_entity_died]: OnPostEntityDiedEvent
|
2972
|
+
[defines.events.on_entity_damaged]: OnEntityDamagedEvent
|
2973
|
+
[defines.events.on_picked_up_item]: OnPickedUpItemEvent
|
2974
|
+
[defines.events.on_built_entity]: OnBuiltEntityEvent
|
2975
|
+
[defines.events.on_sector_scanned]: OnSectorScannedEvent
|
2976
|
+
[defines.events.on_player_mined_item]: OnPlayerMinedItemEvent
|
2977
|
+
[defines.events.on_pre_build]: OnPreBuildEvent
|
2978
|
+
[defines.events.on_rocket_launched]: OnRocketLaunchedEvent
|
2979
|
+
[defines.events.on_pre_player_mined_item]: OnPrePlayerMinedItemEvent
|
2980
|
+
[defines.events.on_chunk_generated]: OnChunkGeneratedEvent
|
2981
|
+
[defines.events.on_player_crafted_item]: OnPlayerCraftedItemEvent
|
2982
|
+
[defines.events.on_robot_built_entity]: OnRobotBuiltEntityEvent
|
2983
|
+
[defines.events.on_robot_pre_mined]: OnRobotPreMinedEvent
|
2984
|
+
[defines.events.on_robot_mined]: OnRobotMinedEvent
|
2985
|
+
[defines.events.on_research_started]: OnResearchStartedEvent
|
2986
|
+
[defines.events.on_research_finished]: OnResearchFinishedEvent
|
2987
|
+
[defines.events.on_research_reversed]: OnResearchReversedEvent
|
2988
|
+
[defines.events.on_player_rotated_entity]: OnPlayerRotatedEntityEvent
|
2989
|
+
[defines.events.on_marked_for_deconstruction]: OnMarkedForDeconstructionEvent
|
2990
|
+
[defines.events.on_cancelled_deconstruction]: OnCancelledDeconstructionEvent
|
2991
|
+
[defines.events.on_trigger_created_entity]: OnTriggerCreatedEntityEvent
|
2992
|
+
[defines.events.on_trigger_fired_artillery]: OnTriggerFiredArtilleryEvent
|
2993
|
+
[defines.events.on_train_changed_state]: OnTrainChangedStateEvent
|
2994
|
+
[defines.events.on_player_created]: OnPlayerCreatedEvent
|
2995
|
+
[defines.events.on_resource_depleted]: OnResourceDepletedEvent
|
2996
|
+
[defines.events.on_player_driving_changed_state]: OnPlayerDrivingChangedStateEvent
|
2997
|
+
[defines.events.on_force_created]: OnForceCreatedEvent
|
2998
|
+
[defines.events.on_forces_merging]: OnForcesMergingEvent
|
2999
|
+
[defines.events.on_player_cursor_stack_changed]: OnPlayerCursorStackChangedEvent
|
3000
|
+
[defines.events.on_pre_entity_settings_pasted]: OnPreEntitySettingsPastedEvent
|
3001
|
+
[defines.events.on_entity_settings_pasted]: OnEntitySettingsPastedEvent
|
3002
|
+
[defines.events.on_player_main_inventory_changed]: OnPlayerMainInventoryChangedEvent
|
3003
|
+
[defines.events.on_player_armor_inventory_changed]: OnPlayerArmorInventoryChangedEvent
|
3004
|
+
[defines.events.on_player_ammo_inventory_changed]: OnPlayerAmmoInventoryChangedEvent
|
3005
|
+
[defines.events.on_player_gun_inventory_changed]: OnPlayerGunInventoryChangedEvent
|
3006
|
+
[defines.events.on_player_placed_equipment]: OnPlayerPlacedEquipmentEvent
|
3007
|
+
[defines.events.on_player_removed_equipment]: OnPlayerRemovedEquipmentEvent
|
3008
|
+
[defines.events.on_pre_player_died]: OnPrePlayerDiedEvent
|
3009
|
+
[defines.events.on_player_died]: OnPlayerDiedEvent
|
3010
|
+
[defines.events.on_player_respawned]: OnPlayerRespawnedEvent
|
3011
|
+
[defines.events.on_player_joined_game]: OnPlayerJoinedGameEvent
|
3012
|
+
[defines.events.on_player_left_game]: OnPlayerLeftGameEvent
|
3013
|
+
[defines.events.on_player_built_tile]: OnPlayerBuiltTileEvent
|
3014
|
+
[defines.events.on_player_mined_tile]: OnPlayerMinedTileEvent
|
3015
|
+
[defines.events.on_robot_built_tile]: OnRobotBuiltTileEvent
|
3016
|
+
[defines.events.on_robot_mined_tile]: OnRobotMinedTileEvent
|
3017
|
+
[defines.events.on_player_selected_area]: OnPlayerSelectedAreaEvent
|
3018
|
+
[defines.events.on_player_alt_selected_area]: OnPlayerAltSelectedAreaEvent
|
3019
|
+
[defines.events.on_player_changed_surface]: OnPlayerChangedSurfaceEvent
|
3020
|
+
[defines.events.on_selected_entity_changed]: OnSelectedEntityChangedEvent
|
3021
|
+
[defines.events.on_market_item_purchased]: OnMarketItemPurchasedEvent
|
3022
|
+
[defines.events.on_player_dropped_item]: OnPlayerDroppedItemEvent
|
3023
|
+
[defines.events.on_biter_base_built]: OnBiterBaseBuiltEvent
|
3024
|
+
[defines.events.on_player_changed_force]: OnPlayerChangedForceEvent
|
3025
|
+
[defines.events.on_entity_renamed]: OnEntityRenamedEvent
|
3026
|
+
[defines.events.on_gui_selection_state_changed]: OnGuiSelectionStateChangedEvent
|
3027
|
+
[defines.events.on_runtime_mod_setting_changed]: OnRuntimeModSettingChangedEvent
|
3028
|
+
[defines.events.on_difficulty_settings_changed]: OnDifficultySettingsChangedEvent
|
3029
|
+
[defines.events.on_surface_created]: OnSurfaceCreatedEvent
|
3030
|
+
[defines.events.on_surface_deleted]: OnSurfaceDeletedEvent
|
3031
|
+
[defines.events.on_pre_surface_deleted]: OnPreSurfaceDeletedEvent
|
3032
|
+
[defines.events.on_player_mined_entity]: OnPlayerMinedEntityEvent
|
3033
|
+
[defines.events.on_robot_mined_entity]: OnRobotMinedEntityEvent
|
3034
|
+
[defines.events.on_train_created]: OnTrainCreatedEvent
|
3035
|
+
[defines.events.on_gui_elem_changed]: OnGuiElemChangedEvent
|
3036
|
+
[defines.events.on_player_setup_blueprint]: OnPlayerSetupBlueprintEvent
|
3037
|
+
[defines.events.on_player_deconstructed_area]: OnPlayerDeconstructedAreaEvent
|
3038
|
+
[defines.events.on_player_configured_blueprint]: OnPlayerConfiguredBlueprintEvent
|
3039
|
+
[defines.events.on_console_chat]: OnConsoleChatEvent
|
3040
|
+
[defines.events.on_console_command]: OnConsoleCommandEvent
|
3041
|
+
[defines.events.on_player_removed]: OnPlayerRemovedEvent
|
3042
|
+
[defines.events.on_pre_player_removed]: OnPrePlayerRemovedEvent
|
3043
|
+
[defines.events.on_player_used_capsule]: OnPlayerUsedCapsuleEvent
|
3044
|
+
[defines.events.script_raised_built]: ScriptRaisedBuiltEvent
|
3045
|
+
[defines.events.script_raised_destroy]: ScriptRaisedDestroyEvent
|
3046
|
+
[defines.events.script_raised_revive]: ScriptRaisedReviveEvent
|
3047
|
+
[defines.events.script_raised_set_tiles]: ScriptRaisedSetTilesEvent
|
3048
|
+
[defines.events.on_player_promoted]: OnPlayerPromotedEvent
|
3049
|
+
[defines.events.on_player_demoted]: OnPlayerDemotedEvent
|
3050
|
+
[defines.events.on_combat_robot_expired]: OnCombatRobotExpiredEvent
|
3051
|
+
[defines.events.on_worker_robot_expired]: OnWorkerRobotExpiredEvent
|
3052
|
+
[defines.events.on_player_changed_position]: OnPlayerChangedPositionEvent
|
3053
|
+
[defines.events.on_mod_item_opened]: OnModItemOpenedEvent
|
3054
|
+
[defines.events.on_gui_opened]: OnGuiOpenedEvent
|
3055
|
+
[defines.events.on_gui_closed]: OnGuiClosedEvent
|
3056
|
+
[defines.events.on_gui_value_changed]: OnGuiValueChangedEvent
|
3057
|
+
[defines.events.on_player_muted]: OnPlayerMutedEvent
|
3058
|
+
[defines.events.on_player_unmuted]: OnPlayerUnmutedEvent
|
3059
|
+
[defines.events.on_player_cheat_mode_enabled]: OnPlayerCheatModeEnabledEvent
|
3060
|
+
[defines.events.on_player_cheat_mode_disabled]: OnPlayerCheatModeDisabledEvent
|
3061
|
+
[defines.events.on_character_corpse_expired]: OnCharacterCorpseExpiredEvent
|
3062
|
+
[defines.events.on_pre_ghost_deconstructed]: OnPreGhostDeconstructedEvent
|
3063
|
+
[defines.events.on_player_pipette]: OnPlayerPipetteEvent
|
3064
|
+
[defines.events.on_player_display_resolution_changed]: OnPlayerDisplayResolutionChangedEvent
|
3065
|
+
[defines.events.on_player_display_scale_changed]: OnPlayerDisplayScaleChangedEvent
|
3066
|
+
[defines.events.on_pre_player_crafted_item]: OnPrePlayerCraftedItemEvent
|
3067
|
+
[defines.events.on_player_cancelled_crafting]: OnPlayerCancelledCraftingEvent
|
3068
|
+
[defines.events.on_chunk_charted]: OnChunkChartedEvent
|
3069
|
+
[defines.events.on_technology_effects_reset]: OnTechnologyEffectsResetEvent
|
3070
|
+
[defines.events.on_force_reset]: OnForceResetEvent
|
3071
|
+
[defines.events.on_land_mine_armed]: OnLandMineArmedEvent
|
3072
|
+
[defines.events.on_forces_merged]: OnForcesMergedEvent
|
3073
|
+
[defines.events.on_player_trash_inventory_changed]: OnPlayerTrashInventoryChangedEvent
|
3074
|
+
[defines.events.on_pre_player_left_game]: OnPrePlayerLeftGameEvent
|
3075
|
+
[defines.events.on_pre_surface_cleared]: OnPreSurfaceClearedEvent
|
3076
|
+
[defines.events.on_surface_cleared]: OnSurfaceClearedEvent
|
3077
|
+
[defines.events.on_chunk_deleted]: OnChunkDeletedEvent
|
3078
|
+
[defines.events.on_pre_chunk_deleted]: OnPreChunkDeletedEvent
|
3079
|
+
[defines.events.on_train_schedule_changed]: OnTrainScheduleChangedEvent
|
3080
|
+
[defines.events.on_player_banned]: OnPlayerBannedEvent
|
3081
|
+
[defines.events.on_player_kicked]: OnPlayerKickedEvent
|
3082
|
+
[defines.events.on_player_unbanned]: OnPlayerUnbannedEvent
|
3083
|
+
[defines.events.on_rocket_launch_ordered]: OnRocketLaunchOrderedEvent
|
3084
|
+
[defines.events.on_script_path_request_finished]: OnScriptPathRequestFinishedEvent
|
3085
|
+
[defines.events.on_ai_command_completed]: OnAiCommandCompletedEvent
|
3086
|
+
[defines.events.on_marked_for_upgrade]: OnMarkedForUpgradeEvent
|
3087
|
+
[defines.events.on_cancelled_upgrade]: OnCancelledUpgradeEvent
|
3088
|
+
[defines.events.on_player_toggled_map_editor]: OnPlayerToggledMapEditorEvent
|
3089
|
+
[defines.events.on_entity_cloned]: OnEntityClonedEvent
|
3090
|
+
[defines.events.on_area_cloned]: OnAreaClonedEvent
|
3091
|
+
[defines.events.on_brush_cloned]: OnBrushClonedEvent
|
3092
|
+
[defines.events.on_game_created_from_scenario]: OnGameCreatedFromScenarioEvent
|
3093
|
+
[defines.events.on_surface_imported]: OnSurfaceImportedEvent
|
3094
|
+
[defines.events.on_surface_renamed]: OnSurfaceRenamedEvent
|
3095
|
+
[defines.events.on_player_toggled_alt_mode]: OnPlayerToggledAltModeEvent
|
3096
|
+
[defines.events.on_player_repaired_entity]: OnPlayerRepairedEntityEvent
|
3097
|
+
[defines.events.on_player_fast_transferred]: OnPlayerFastTransferredEvent
|
3098
|
+
[defines.events.on_pre_robot_exploded_cliff]: OnPreRobotExplodedCliffEvent
|
3099
|
+
[defines.events.on_robot_exploded_cliff]: OnRobotExplodedCliffEvent
|
3100
|
+
[defines.events.on_entity_spawned]: OnEntitySpawnedEvent
|
3101
|
+
[defines.events.on_cutscene_waypoint_reached]: OnCutsceneWaypointReachedEvent
|
3102
|
+
[defines.events.on_unit_group_created]: OnUnitGroupCreatedEvent
|
3103
|
+
[defines.events.on_unit_added_to_group]: OnUnitAddedToGroupEvent
|
3104
|
+
[defines.events.on_unit_removed_from_group]: OnUnitRemovedFromGroupEvent
|
3105
|
+
[defines.events.on_unit_group_finished_gathering]: OnUnitGroupFinishedGatheringEvent
|
3106
|
+
[defines.events.on_build_base_arrived]: OnBuildBaseArrivedEvent
|
3107
|
+
[defines.events.on_chart_tag_added]: OnChartTagAddedEvent
|
3108
|
+
[defines.events.on_chart_tag_modified]: OnChartTagModifiedEvent
|
3109
|
+
[defines.events.on_chart_tag_removed]: OnChartTagRemovedEvent
|
3110
|
+
[defines.events.on_lua_shortcut]: OnLuaShortcutEvent
|
3111
|
+
[defines.events.on_gui_location_changed]: OnGuiLocationChangedEvent
|
3112
|
+
[defines.events.on_gui_selected_tab_changed]: OnGuiSelectedTabChangedEvent
|
3113
|
+
[defines.events.on_gui_switch_state_changed]: OnGuiSwitchStateChangedEvent
|
3114
|
+
[defines.events.on_force_cease_fire_changed]: OnForceCeaseFireChangedEvent
|
3115
|
+
[defines.events.on_force_friends_changed]: OnForceFriendsChangedEvent
|
3116
|
+
[defines.events.on_string_translated]: OnStringTranslatedEvent
|
3117
|
+
[defines.events.on_script_trigger_effect]: OnScriptTriggerEffectEvent
|
3118
|
+
[defines.events.on_player_set_quick_bar_slot]: OnPlayerSetQuickBarSlotEvent
|
3119
|
+
[defines.events.on_pre_player_toggled_map_editor]: OnPrePlayerToggledMapEditorEvent
|
3120
|
+
[defines.events.on_pre_script_inventory_resized]: OnPreScriptInventoryResizedEvent
|
3121
|
+
[defines.events.on_script_inventory_resized]: OnScriptInventoryResizedEvent
|
3122
|
+
[defines.events.on_entity_destroyed]: OnEntityDestroyedEvent
|
3123
|
+
[defines.events.on_player_clicked_gps_tag]: OnPlayerClickedGpsTagEvent
|
3124
|
+
[defines.events.on_player_flushed_fluid]: OnPlayerFlushedFluidEvent
|
3125
|
+
[defines.events.on_permission_group_edited]: OnPermissionGroupEditedEvent
|
3126
|
+
[defines.events.on_pre_permission_string_imported]: OnPrePermissionStringImportedEvent
|
3127
|
+
[defines.events.on_permission_string_imported]: OnPermissionStringImportedEvent
|
3128
|
+
[defines.events.on_pre_permission_group_deleted]: OnPrePermissionGroupDeletedEvent
|
3129
|
+
[defines.events.on_permission_group_deleted]: OnPermissionGroupDeletedEvent
|
3130
|
+
[defines.events.on_permission_group_added]: OnPermissionGroupAddedEvent
|
3131
|
+
[defines.events.on_cutscene_cancelled]: OnCutsceneCancelledEvent
|
3132
|
+
[defines.events.on_player_configured_spider_remote]: OnPlayerConfiguredSpiderRemoteEvent
|
3133
|
+
[defines.events.on_player_used_spider_remote]: OnPlayerUsedSpiderRemoteEvent
|
3134
|
+
[defines.events.on_spider_command_completed]: OnSpiderCommandCompletedEvent
|
3135
|
+
[defines.events.on_entity_logistic_slot_changed]: OnEntityLogisticSlotChangedEvent
|
3136
|
+
[defines.events.on_equipment_inserted]: OnEquipmentInsertedEvent
|
3137
|
+
[defines.events.on_equipment_removed]: OnEquipmentRemovedEvent
|
3099
3138
|
}
|
3100
3139
|
|
3101
3140
|
interface EventFilters {
|
3102
|
-
[defines.events.on_entity_died]: LuaEntityDiedEventFilter
|
3103
|
-
[defines.events.on_post_entity_died]: LuaPostEntityDiedEventFilter
|
3104
|
-
[defines.events.on_entity_damaged]: LuaEntityDamagedEventFilter
|
3105
|
-
[defines.events.on_built_entity]: LuaPlayerBuiltEntityEventFilter
|
3106
|
-
[defines.events.on_sector_scanned]: LuaSectorScannedEventFilter
|
3107
|
-
[defines.events.on_pre_player_mined_item]: LuaPrePlayerMinedEntityEventFilter
|
3108
|
-
[defines.events.on_robot_built_entity]: LuaRobotBuiltEntityEventFilter
|
3109
|
-
[defines.events.on_robot_pre_mined]: LuaPreRobotMinedEntityEventFilter
|
3110
|
-
[defines.events.on_marked_for_deconstruction]: LuaEntityMarkedForDeconstructionEventFilter
|
3111
|
-
[defines.events.on_cancelled_deconstruction]: LuaEntityDeconstructionCancelledEventFilter
|
3112
|
-
[defines.events.on_player_mined_entity]: LuaPlayerMinedEntityEventFilter
|
3113
|
-
[defines.events.on_robot_mined_entity]: LuaRobotMinedEntityEventFilter
|
3114
|
-
[defines.events.script_raised_built]: LuaScriptRaisedBuiltEventFilter
|
3115
|
-
[defines.events.script_raised_destroy]: LuaScriptRaisedDestroyEventFilter
|
3116
|
-
[defines.events.script_raised_revive]: LuaScriptRaisedReviveEventFilter
|
3117
|
-
[defines.events.on_pre_ghost_deconstructed]: LuaPreGhostDeconstructedEventFilter
|
3118
|
-
[defines.events.on_marked_for_upgrade]: LuaEntityMarkedForUpgradeEventFilter
|
3119
|
-
[defines.events.on_cancelled_upgrade]: LuaUpgradeCancelledEventFilter
|
3120
|
-
[defines.events.on_entity_cloned]: LuaEntityClonedEventFilter
|
3121
|
-
[defines.events.on_player_repaired_entity]: LuaPlayerRepairedEntityEventFilter
|
3141
|
+
[defines.events.on_entity_died]: LuaEntityDiedEventFilter
|
3142
|
+
[defines.events.on_post_entity_died]: LuaPostEntityDiedEventFilter
|
3143
|
+
[defines.events.on_entity_damaged]: LuaEntityDamagedEventFilter
|
3144
|
+
[defines.events.on_built_entity]: LuaPlayerBuiltEntityEventFilter
|
3145
|
+
[defines.events.on_sector_scanned]: LuaSectorScannedEventFilter
|
3146
|
+
[defines.events.on_pre_player_mined_item]: LuaPrePlayerMinedEntityEventFilter
|
3147
|
+
[defines.events.on_robot_built_entity]: LuaRobotBuiltEntityEventFilter
|
3148
|
+
[defines.events.on_robot_pre_mined]: LuaPreRobotMinedEntityEventFilter
|
3149
|
+
[defines.events.on_marked_for_deconstruction]: LuaEntityMarkedForDeconstructionEventFilter
|
3150
|
+
[defines.events.on_cancelled_deconstruction]: LuaEntityDeconstructionCancelledEventFilter
|
3151
|
+
[defines.events.on_player_mined_entity]: LuaPlayerMinedEntityEventFilter
|
3152
|
+
[defines.events.on_robot_mined_entity]: LuaRobotMinedEntityEventFilter
|
3153
|
+
[defines.events.script_raised_built]: LuaScriptRaisedBuiltEventFilter
|
3154
|
+
[defines.events.script_raised_destroy]: LuaScriptRaisedDestroyEventFilter
|
3155
|
+
[defines.events.script_raised_revive]: LuaScriptRaisedReviveEventFilter
|
3156
|
+
[defines.events.on_pre_ghost_deconstructed]: LuaPreGhostDeconstructedEventFilter
|
3157
|
+
[defines.events.on_marked_for_upgrade]: LuaEntityMarkedForUpgradeEventFilter
|
3158
|
+
[defines.events.on_cancelled_upgrade]: LuaUpgradeCancelledEventFilter
|
3159
|
+
[defines.events.on_entity_cloned]: LuaEntityClonedEventFilter
|
3160
|
+
[defines.events.on_player_repaired_entity]: LuaPlayerRepairedEntityEventFilter
|
3122
3161
|
}
|