typed-factorio 1.16.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,1944 +2,2156 @@
2
2
 
3
3
  /** @noSelfInFile */
4
4
 
5
- declare namespace defines {
6
- enum alert_type {
7
- entity_destroyed,
8
- entity_under_attack,
9
- not_enough_construction_robots,
10
- no_material_for_construction,
11
- not_enough_repair_packs,
12
- turret_fire,
13
- custom,
14
- no_storage,
15
- train_out_of_fuel,
16
- }
17
- /**
18
- * AI command exit status. See {@link LuaEntity#set_command LuaEntity::set_command}
19
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.behavior_result Online documentation}
20
- */
21
- enum behavior_result {
22
- in_progress,
23
- fail,
24
- success,
25
- deleted,
26
- }
27
- enum build_check_type {
28
- script,
29
- manual,
30
- manual_ghost,
31
- script_ghost,
32
- blueprint_ghost,
33
- ghost_revive,
34
- }
35
- /**
36
- * State of a chain signal.
37
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.chain_signal_state Online documentation}
38
- */
39
- enum chain_signal_state {
40
- none,
41
- all_open,
42
- partially_open,
43
- none_open,
44
- }
45
- enum chunk_generated_status {
46
- nothing,
47
- custom_tiles,
48
- basic_tiles,
49
- corrected_tiles,
50
- tiles,
51
- entities,
52
- }
53
- enum circuit_condition_index {
54
- inserter_circuit,
55
- inserter_logistic,
56
- lamp,
57
- arithmetic_combinator,
58
- decider_combinator,
59
- constant_combinator,
60
- offshore_pump,
61
- pump,
62
- }
63
- enum circuit_connector_id {
64
- accumulator,
65
- constant_combinator,
66
- container,
67
- linked_container,
68
- programmable_speaker,
69
- rail_signal,
70
- rail_chain_signal,
71
- roboport,
72
- storage_tank,
73
- wall,
74
- electric_pole,
75
- inserter,
76
- lamp,
77
- combinator_input,
78
- combinator_output,
79
- offshore_pump,
80
- pump,
81
- }
82
- /**
83
- * Command given to units describing what they should do.
84
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.command Online documentation}
85
- */
86
- enum command {
87
- /**
88
- * Attack another entity.
89
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.command.attack Online documentation}
90
- */
91
- attack = 0,
92
- /**
93
- * Go to a specific position.
94
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.command.go_to_location Online documentation}
95
- */
96
- go_to_location = 1,
97
- /**
98
- * Chain commands together, see {@link defines.compound_command}.
99
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.command.compound Online documentation}
100
- */
101
- compound = 2,
102
- /**
103
- * Do what your group wants you to do.
104
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.command.group Online documentation}
105
- */
106
- group = 3,
107
- /**
108
- * Go to a place and attack what you see.
109
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.command.attack_area Online documentation}
110
- */
111
- attack_area = 4,
112
- /**
113
- * Chill.
114
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.command.wander Online documentation}
115
- */
116
- wander = 5,
117
- /**
118
- * Flee from another entity.
119
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.command.flee Online documentation}
120
- */
121
- flee = 6,
122
- /**
123
- * Stop moving and stay where you are.
124
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.command.stop Online documentation}
125
- */
126
- stop = 7,
5
+ import type {
6
+ EventId,
7
+ LuaEntityClonedEventFilter,
8
+ LuaEntityDamagedEventFilter,
9
+ LuaEntityDeconstructionCancelledEventFilter,
10
+ LuaEntityDiedEventFilter,
11
+ LuaEntityMarkedForDeconstructionEventFilter,
12
+ LuaEntityMarkedForUpgradeEventFilter,
13
+ LuaPlayerBuiltEntityEventFilter,
14
+ LuaPlayerMinedEntityEventFilter,
15
+ LuaPlayerRepairedEntityEventFilter,
16
+ LuaPostEntityDiedEventFilter,
17
+ LuaPreGhostDeconstructedEventFilter,
18
+ LuaPreGhostUpgradedEventFilter,
19
+ LuaPrePlayerMinedEntityEventFilter,
20
+ LuaPreRobotMinedEntityEventFilter,
21
+ LuaRobotBuiltEntityEventFilter,
22
+ LuaRobotMinedEntityEventFilter,
23
+ LuaScriptRaisedBuiltEventFilter,
24
+ LuaScriptRaisedDestroyEventFilter,
25
+ LuaScriptRaisedReviveEventFilter,
26
+ LuaScriptRaisedTeleportedEventFilter,
27
+ LuaSectorScannedEventFilter,
28
+ LuaUpgradeCancelledEventFilter,
29
+ OnAiCommandCompletedEvent,
30
+ OnAreaClonedEvent,
31
+ OnBiterBaseBuiltEvent,
32
+ OnBrushClonedEvent,
33
+ OnBuildBaseArrivedEvent,
34
+ OnBuiltEntityEvent,
35
+ OnCancelledDeconstructionEvent,
36
+ OnCancelledUpgradeEvent,
37
+ OnCharacterCorpseExpiredEvent,
38
+ OnChartTagAddedEvent,
39
+ OnChartTagModifiedEvent,
40
+ OnChartTagRemovedEvent,
41
+ OnChunkChartedEvent,
42
+ OnChunkDeletedEvent,
43
+ OnChunkGeneratedEvent,
44
+ OnCombatRobotExpiredEvent,
45
+ OnConsoleChatEvent,
46
+ OnConsoleCommandEvent,
47
+ OnCutsceneCancelledEvent,
48
+ OnCutsceneFinishedEvent,
49
+ OnCutsceneStartedEvent,
50
+ OnCutsceneWaypointReachedEvent,
51
+ OnDifficultySettingsChangedEvent,
52
+ OnEntityClonedEvent,
53
+ OnEntityColorChangedEvent,
54
+ OnEntityDamagedEvent,
55
+ OnEntityDestroyedEvent,
56
+ OnEntityDiedEvent,
57
+ OnEntityLogisticSlotChangedEvent,
58
+ OnEntityRenamedEvent,
59
+ OnEntitySettingsPastedEvent,
60
+ OnEntitySpawnedEvent,
61
+ OnEquipmentInsertedEvent,
62
+ OnEquipmentRemovedEvent,
63
+ OnForceCeaseFireChangedEvent,
64
+ OnForceCreatedEvent,
65
+ OnForceFriendsChangedEvent,
66
+ OnForceResetEvent,
67
+ OnForcesMergedEvent,
68
+ OnForcesMergingEvent,
69
+ OnGameCreatedFromScenarioEvent,
70
+ OnGuiCheckedStateChangedEvent,
71
+ OnGuiClickEvent,
72
+ OnGuiClosedEvent,
73
+ OnGuiConfirmedEvent,
74
+ OnGuiElemChangedEvent,
75
+ OnGuiHoverEvent,
76
+ OnGuiLeaveEvent,
77
+ OnGuiLocationChangedEvent,
78
+ OnGuiOpenedEvent,
79
+ OnGuiSelectedTabChangedEvent,
80
+ OnGuiSelectionStateChangedEvent,
81
+ OnGuiSwitchStateChangedEvent,
82
+ OnGuiTextChangedEvent,
83
+ OnGuiValueChangedEvent,
84
+ OnLandMineArmedEvent,
85
+ OnLuaShortcutEvent,
86
+ OnMarkedForDeconstructionEvent,
87
+ OnMarkedForUpgradeEvent,
88
+ OnMarketItemPurchasedEvent,
89
+ OnModItemOpenedEvent,
90
+ OnPermissionGroupAddedEvent,
91
+ OnPermissionGroupDeletedEvent,
92
+ OnPermissionGroupEditedEvent,
93
+ OnPermissionStringImportedEvent,
94
+ OnPickedUpItemEvent,
95
+ OnPlayerAltReverseSelectedAreaEvent,
96
+ OnPlayerAltSelectedAreaEvent,
97
+ OnPlayerAmmoInventoryChangedEvent,
98
+ OnPlayerArmorInventoryChangedEvent,
99
+ OnPlayerBannedEvent,
100
+ OnPlayerBuiltTileEvent,
101
+ OnPlayerCancelledCraftingEvent,
102
+ OnPlayerChangedForceEvent,
103
+ OnPlayerChangedPositionEvent,
104
+ OnPlayerChangedSurfaceEvent,
105
+ OnPlayerCheatModeDisabledEvent,
106
+ OnPlayerCheatModeEnabledEvent,
107
+ OnPlayerClickedGpsTagEvent,
108
+ OnPlayerConfiguredBlueprintEvent,
109
+ OnPlayerConfiguredSpiderRemoteEvent,
110
+ OnPlayerCraftedItemEvent,
111
+ OnPlayerCreatedEvent,
112
+ OnPlayerCursorStackChangedEvent,
113
+ OnPlayerDeconstructedAreaEvent,
114
+ OnPlayerDemotedEvent,
115
+ OnPlayerDiedEvent,
116
+ OnPlayerDisplayResolutionChangedEvent,
117
+ OnPlayerDisplayScaleChangedEvent,
118
+ OnPlayerDrivingChangedStateEvent,
119
+ OnPlayerDroppedItemEvent,
120
+ OnPlayerFastTransferredEvent,
121
+ OnPlayerFlushedFluidEvent,
122
+ OnPlayerGunInventoryChangedEvent,
123
+ OnPlayerInputMethodChangedEvent,
124
+ OnPlayerJoinedGameEvent,
125
+ OnPlayerKickedEvent,
126
+ OnPlayerLeftGameEvent,
127
+ OnPlayerMainInventoryChangedEvent,
128
+ OnPlayerMinedEntityEvent,
129
+ OnPlayerMinedItemEvent,
130
+ OnPlayerMinedTileEvent,
131
+ OnPlayerMutedEvent,
132
+ OnPlayerPipetteEvent,
133
+ OnPlayerPlacedEquipmentEvent,
134
+ OnPlayerPromotedEvent,
135
+ OnPlayerRemovedEquipmentEvent,
136
+ OnPlayerRemovedEvent,
137
+ OnPlayerRepairedEntityEvent,
138
+ OnPlayerRespawnedEvent,
139
+ OnPlayerReverseSelectedAreaEvent,
140
+ OnPlayerRotatedEntityEvent,
141
+ OnPlayerSelectedAreaEvent,
142
+ OnPlayerSetQuickBarSlotEvent,
143
+ OnPlayerSetupBlueprintEvent,
144
+ OnPlayerToggledAltModeEvent,
145
+ OnPlayerToggledMapEditorEvent,
146
+ OnPlayerTrashInventoryChangedEvent,
147
+ OnPlayerUnbannedEvent,
148
+ OnPlayerUnmutedEvent,
149
+ OnPlayerUsedCapsuleEvent,
150
+ OnPlayerUsedSpiderRemoteEvent,
151
+ OnPostEntityDiedEvent,
152
+ OnPreBuildEvent,
153
+ OnPreChunkDeletedEvent,
154
+ OnPreEntitySettingsPastedEvent,
155
+ OnPreGhostDeconstructedEvent,
156
+ OnPreGhostUpgradedEvent,
157
+ OnPrePermissionGroupDeletedEvent,
158
+ OnPrePermissionStringImportedEvent,
159
+ OnPrePlayerCraftedItemEvent,
160
+ OnPrePlayerDiedEvent,
161
+ OnPrePlayerLeftGameEvent,
162
+ OnPrePlayerMinedItemEvent,
163
+ OnPrePlayerRemovedEvent,
164
+ OnPrePlayerToggledMapEditorEvent,
165
+ OnPreRobotExplodedCliffEvent,
166
+ OnPreScriptInventoryResizedEvent,
167
+ OnPreSurfaceClearedEvent,
168
+ OnPreSurfaceDeletedEvent,
169
+ OnResearchCancelledEvent,
170
+ OnResearchFinishedEvent,
171
+ OnResearchReversedEvent,
172
+ OnResearchStartedEvent,
173
+ OnResourceDepletedEvent,
174
+ OnRobotBuiltEntityEvent,
175
+ OnRobotBuiltTileEvent,
176
+ OnRobotExplodedCliffEvent,
177
+ OnRobotMinedEntityEvent,
178
+ OnRobotMinedEvent,
179
+ OnRobotMinedTileEvent,
180
+ OnRobotPreMinedEvent,
181
+ OnRocketLaunchOrderedEvent,
182
+ OnRocketLaunchedEvent,
183
+ OnRuntimeModSettingChangedEvent,
184
+ OnScriptInventoryResizedEvent,
185
+ OnScriptPathRequestFinishedEvent,
186
+ OnScriptTriggerEffectEvent,
187
+ OnSectorScannedEvent,
188
+ OnSelectedEntityChangedEvent,
189
+ OnSpiderCommandCompletedEvent,
190
+ OnStringTranslatedEvent,
191
+ OnSurfaceClearedEvent,
192
+ OnSurfaceCreatedEvent,
193
+ OnSurfaceDeletedEvent,
194
+ OnSurfaceImportedEvent,
195
+ OnSurfaceRenamedEvent,
196
+ OnTechnologyEffectsResetEvent,
197
+ OnTickEvent,
198
+ OnTrainChangedStateEvent,
199
+ OnTrainCreatedEvent,
200
+ OnTrainScheduleChangedEvent,
201
+ OnTriggerCreatedEntityEvent,
202
+ OnTriggerFiredArtilleryEvent,
203
+ OnUnitAddedToGroupEvent,
204
+ OnUnitGroupCreatedEvent,
205
+ OnUnitGroupFinishedGatheringEvent,
206
+ OnUnitRemovedFromGroupEvent,
207
+ OnWorkerRobotExpiredEvent,
208
+ ScriptRaisedBuiltEvent,
209
+ ScriptRaisedDestroyEvent,
210
+ ScriptRaisedReviveEvent,
211
+ ScriptRaisedSetTilesEvent,
212
+ ScriptRaisedTeleportedEvent,
213
+ } from "factorio:runtime"
214
+
215
+ import type { PrototypeMap } from "factorio:prototype"
216
+
217
+ declare global {
218
+ namespace defines {
219
+ enum alert_type {
220
+ entity_destroyed,
221
+ entity_under_attack,
222
+ not_enough_construction_robots,
223
+ no_material_for_construction,
224
+ not_enough_repair_packs,
225
+ turret_fire,
226
+ custom,
227
+ no_storage,
228
+ train_out_of_fuel,
229
+ }
127
230
  /**
128
- * Go to a position and build a base there.
129
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.command.build_base Online documentation}
231
+ * AI command exit status. See {@link LuaEntity#set_command LuaEntity::set_command}
232
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.behavior_result Online documentation}
130
233
  */
131
- build_base = 8,
132
- }
133
- /**
134
- * How commands are joined together in a compound command (see {@link defines.command.compound}).
135
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.compound_command Online documentation}
136
- */
137
- enum compound_command {
234
+ enum behavior_result {
235
+ in_progress,
236
+ fail,
237
+ success,
238
+ deleted,
239
+ }
240
+ enum build_check_type {
241
+ script,
242
+ manual,
243
+ manual_ghost,
244
+ script_ghost,
245
+ blueprint_ghost,
246
+ ghost_revive,
247
+ }
138
248
  /**
139
- * Fail on first failure. Only succeeds if all commands (executed one after another) succeed.
140
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.compound_command.logical_and Online documentation}
249
+ * State of a chain signal.
250
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.chain_signal_state Online documentation}
141
251
  */
142
- logical_and,
252
+ enum chain_signal_state {
253
+ none,
254
+ all_open,
255
+ partially_open,
256
+ none_open,
257
+ }
258
+ enum chunk_generated_status {
259
+ nothing,
260
+ custom_tiles,
261
+ basic_tiles,
262
+ corrected_tiles,
263
+ tiles,
264
+ entities,
265
+ }
266
+ enum circuit_condition_index {
267
+ inserter_circuit,
268
+ inserter_logistic,
269
+ lamp,
270
+ arithmetic_combinator,
271
+ decider_combinator,
272
+ constant_combinator,
273
+ offshore_pump,
274
+ pump,
275
+ }
276
+ enum circuit_connector_id {
277
+ accumulator,
278
+ constant_combinator,
279
+ container,
280
+ linked_container,
281
+ programmable_speaker,
282
+ rail_signal,
283
+ rail_chain_signal,
284
+ roboport,
285
+ storage_tank,
286
+ wall,
287
+ electric_pole,
288
+ inserter,
289
+ lamp,
290
+ combinator_input,
291
+ combinator_output,
292
+ offshore_pump,
293
+ pump,
294
+ }
143
295
  /**
144
- * Succeed on first success. Only fails if all commands (executed one after another) fail.
145
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.compound_command.logical_or Online documentation}
296
+ * Command given to units describing what they should do.
297
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.command Online documentation}
146
298
  */
147
- logical_or,
299
+ enum command {
300
+ /**
301
+ * Attack another entity.
302
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.command.attack Online documentation}
303
+ */
304
+ attack = 0,
305
+ /**
306
+ * Go to a specific position.
307
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.command.go_to_location Online documentation}
308
+ */
309
+ go_to_location = 1,
310
+ /**
311
+ * Chain commands together, see {@link defines.compound_command}.
312
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.command.compound Online documentation}
313
+ */
314
+ compound = 2,
315
+ /**
316
+ * Do what your group wants you to do.
317
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.command.group Online documentation}
318
+ */
319
+ group = 3,
320
+ /**
321
+ * Go to a place and attack what you see.
322
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.command.attack_area Online documentation}
323
+ */
324
+ attack_area = 4,
325
+ /**
326
+ * Chill.
327
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.command.wander Online documentation}
328
+ */
329
+ wander = 5,
330
+ /**
331
+ * Flee from another entity.
332
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.command.flee Online documentation}
333
+ */
334
+ flee = 6,
335
+ /**
336
+ * Stop moving and stay where you are.
337
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.command.stop Online documentation}
338
+ */
339
+ stop = 7,
340
+ /**
341
+ * Go to a position and build a base there.
342
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.command.build_base Online documentation}
343
+ */
344
+ build_base = 8,
345
+ }
148
346
  /**
149
- * Execute all commands in sequence and fail or succeed depending on the return status of the last command.
150
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.compound_command.return_last Online documentation}
347
+ * How commands are joined together in a compound command (see {@link defines.command.compound}).
348
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.compound_command Online documentation}
151
349
  */
152
- return_last,
153
- }
154
- namespace control_behavior {
155
- namespace inserter {
156
- enum circuit_mode_of_operation {
157
- none,
158
- enable_disable,
159
- set_filters,
160
- read_hand_contents,
161
- set_stack_size,
350
+ enum compound_command {
351
+ /**
352
+ * Fail on first failure. Only succeeds if all commands (executed one after another) succeed.
353
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.compound_command.logical_and Online documentation}
354
+ */
355
+ logical_and,
356
+ /**
357
+ * Succeed on first success. Only fails if all commands (executed one after another) fail.
358
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.compound_command.logical_or Online documentation}
359
+ */
360
+ logical_or,
361
+ /**
362
+ * Execute all commands in sequence and fail or succeed depending on the return status of the last command.
363
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.compound_command.return_last Online documentation}
364
+ */
365
+ return_last,
366
+ }
367
+ namespace control_behavior {
368
+ namespace inserter {
369
+ enum circuit_mode_of_operation {
370
+ none,
371
+ enable_disable,
372
+ set_filters,
373
+ read_hand_contents,
374
+ set_stack_size,
375
+ }
376
+ enum hand_read_mode {
377
+ hold,
378
+ pulse,
379
+ }
162
380
  }
163
- enum hand_read_mode {
164
- hold,
165
- pulse,
381
+ namespace logistic_container {
382
+ enum circuit_mode_of_operation {
383
+ send_contents,
384
+ set_requests,
385
+ }
166
386
  }
167
- }
168
- namespace logistic_container {
169
- enum circuit_mode_of_operation {
170
- send_contents,
171
- set_requests,
387
+ namespace lamp {
388
+ enum circuit_mode_of_operation {
389
+ use_colors,
390
+ }
172
391
  }
173
- }
174
- namespace lamp {
175
- enum circuit_mode_of_operation {
176
- use_colors,
392
+ namespace mining_drill {
393
+ enum resource_read_mode {
394
+ this_miner,
395
+ entire_patch,
396
+ }
397
+ }
398
+ namespace transport_belt {
399
+ enum content_read_mode {
400
+ pulse,
401
+ hold,
402
+ }
403
+ }
404
+ enum type {
405
+ /**
406
+ * {@link LuaContainerControlBehavior}
407
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.control_behavior.type.container Online documentation}
408
+ */
409
+ container,
410
+ /**
411
+ * {@link LuaGenericOnOffControlBehavior}
412
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.control_behavior.type.generic_on_off Online documentation}
413
+ */
414
+ generic_on_off,
415
+ /**
416
+ * {@link LuaInserterControlBehavior}
417
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.control_behavior.type.inserter Online documentation}
418
+ */
419
+ inserter,
420
+ /**
421
+ * {@link LuaLampControlBehavior}
422
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.control_behavior.type.lamp Online documentation}
423
+ */
424
+ lamp,
425
+ /**
426
+ * {@link LuaLogisticContainerControlBehavior}
427
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.control_behavior.type.logistic_container Online documentation}
428
+ */
429
+ logistic_container,
430
+ /**
431
+ * {@link LuaRoboportControlBehavior}
432
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.control_behavior.type.roboport Online documentation}
433
+ */
434
+ roboport,
435
+ /**
436
+ * {@link LuaStorageTankControlBehavior}
437
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.control_behavior.type.storage_tank Online documentation}
438
+ */
439
+ storage_tank,
440
+ /**
441
+ * {@link LuaTrainStopControlBehavior}
442
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.control_behavior.type.train_stop Online documentation}
443
+ */
444
+ train_stop,
445
+ /**
446
+ * {@link LuaDeciderCombinatorControlBehavior}
447
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.control_behavior.type.decider_combinator Online documentation}
448
+ */
449
+ decider_combinator,
450
+ /**
451
+ * {@link LuaArithmeticCombinatorControlBehavior}
452
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.control_behavior.type.arithmetic_combinator Online documentation}
453
+ */
454
+ arithmetic_combinator,
455
+ /**
456
+ * {@link LuaConstantCombinatorControlBehavior}
457
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.control_behavior.type.constant_combinator Online documentation}
458
+ */
459
+ constant_combinator,
460
+ /**
461
+ * {@link LuaTransportBeltControlBehavior}
462
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.control_behavior.type.transport_belt Online documentation}
463
+ */
464
+ transport_belt,
465
+ /**
466
+ * {@link LuaAccumulatorControlBehavior}
467
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.control_behavior.type.accumulator Online documentation}
468
+ */
469
+ accumulator,
470
+ /**
471
+ * {@link LuaRailSignalControlBehavior}
472
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.control_behavior.type.rail_signal Online documentation}
473
+ */
474
+ rail_signal,
475
+ /**
476
+ * {@link LuaRailChainSignalControlBehavior}
477
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.control_behavior.type.rail_chain_signal Online documentation}
478
+ */
479
+ rail_chain_signal,
480
+ /**
481
+ * {@link LuaWallControlBehavior}
482
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.control_behavior.type.wall Online documentation}
483
+ */
484
+ wall,
485
+ /**
486
+ * {@link LuaMiningDrillControlBehavior}
487
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.control_behavior.type.mining_drill Online documentation}
488
+ */
489
+ mining_drill,
490
+ /**
491
+ * {@link LuaProgrammableSpeakerControlBehavior}
492
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.control_behavior.type.programmable_speaker Online documentation}
493
+ */
494
+ programmable_speaker,
177
495
  }
178
496
  }
179
- namespace mining_drill {
180
- enum resource_read_mode {
181
- this_miner,
182
- entire_patch,
497
+ enum controllers {
498
+ /**
499
+ * Can't interact with the world, can only observe. Used in the multiplayer waiting-to-respawn screen.
500
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.controllers.ghost Online documentation}
501
+ */
502
+ ghost,
503
+ /**
504
+ * The controller controls a character. This is the default controller in freeplay.
505
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.controllers.character Online documentation}
506
+ */
507
+ character,
508
+ /**
509
+ * The controller isn't tied to a character. This is the default controller in sandbox.
510
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.controllers.god Online documentation}
511
+ */
512
+ god,
513
+ /**
514
+ * The Editor Controller near ultimate power to do almost anything in the game.
515
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.controllers.editor Online documentation}
516
+ */
517
+ editor,
518
+ /**
519
+ * The player can't interact with the world, and the camera pans around in a predefined manner.
520
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.controllers.cutscene Online documentation}
521
+ */
522
+ cutscene,
523
+ /**
524
+ * Can't change anything in the world but can view anything.
525
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.controllers.spectator Online documentation}
526
+ */
527
+ spectator,
528
+ }
529
+ namespace deconstruction_item {
530
+ enum entity_filter_mode {
531
+ whitelist,
532
+ blacklist,
533
+ }
534
+ enum tile_filter_mode {
535
+ whitelist,
536
+ blacklist,
183
537
  }
538
+ enum tile_selection_mode {
539
+ normal,
540
+ always,
541
+ never,
542
+ only,
543
+ }
544
+ }
545
+ enum difficulty {
546
+ easy,
547
+ normal,
548
+ hard,
184
549
  }
185
- namespace transport_belt {
186
- enum content_read_mode {
187
- pulse,
188
- hold,
550
+ namespace difficulty_settings {
551
+ enum recipe_difficulty {
552
+ normal,
553
+ expensive,
554
+ }
555
+ enum technology_difficulty {
556
+ normal,
557
+ expensive,
189
558
  }
190
559
  }
191
- enum type {
560
+ enum direction {
561
+ north = 0,
562
+ northeast = 1,
563
+ east = 2,
564
+ southeast = 3,
565
+ south = 4,
566
+ southwest = 5,
567
+ west = 6,
568
+ northwest = 7,
569
+ }
570
+ enum disconnect_reason {
571
+ quit,
572
+ dropped,
573
+ reconnect,
574
+ wrong_input,
575
+ desync_limit_reached,
576
+ cannot_keep_up,
577
+ afk,
578
+ kicked,
579
+ kicked_and_deleted,
580
+ banned,
581
+ switching_servers,
582
+ }
583
+ enum distraction {
192
584
  /**
193
- * {@link LuaContainerControlBehavior}
194
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.container Online documentation}
585
+ * Perform command even if someone attacks the unit.
586
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.distraction.none Online documentation}
195
587
  */
196
- container,
588
+ none,
197
589
  /**
198
- * {@link LuaGenericOnOffControlBehavior}
199
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.generic_on_off Online documentation}
590
+ * Attack closer enemy entities with force.
591
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.distraction.by_enemy Online documentation}
200
592
  */
201
- generic_on_off,
593
+ by_enemy,
202
594
  /**
203
- * {@link LuaInserterControlBehavior}
204
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.inserter Online documentation}
595
+ * Attack closer enemy entities, including entities "built" by player (belts, inserters, chests).
596
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.distraction.by_anything Online documentation}
205
597
  */
206
- inserter,
598
+ by_anything,
207
599
  /**
208
- * {@link LuaLampControlBehavior}
209
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.lamp Online documentation}
600
+ * Attack when attacked.
601
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.distraction.by_damage Online documentation}
210
602
  */
211
- lamp,
603
+ by_damage,
604
+ }
605
+ enum entity_status {
606
+ working,
607
+ normal,
608
+ no_power,
609
+ low_power,
610
+ no_fuel,
611
+ disabled_by_control_behavior,
612
+ opened_by_circuit_network,
613
+ closed_by_circuit_network,
614
+ disabled_by_script,
615
+ marked_for_deconstruction,
212
616
  /**
213
- * {@link LuaLogisticContainerControlBehavior}
214
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.logistic_container Online documentation}
617
+ * Used by generators and solar panels.
618
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.not_plugged_in_electric_network Online documentation}
215
619
  */
216
- logistic_container,
620
+ not_plugged_in_electric_network,
217
621
  /**
218
- * {@link LuaRoboportControlBehavior}
219
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.roboport Online documentation}
622
+ * Used by power switches.
623
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.networks_connected Online documentation}
220
624
  */
221
- roboport,
625
+ networks_connected,
222
626
  /**
223
- * {@link LuaStorageTankControlBehavior}
224
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.storage_tank Online documentation}
627
+ * Used by power switches.
628
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.networks_disconnected Online documentation}
225
629
  */
226
- storage_tank,
630
+ networks_disconnected,
227
631
  /**
228
- * {@link LuaTrainStopControlBehavior}
229
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.train_stop Online documentation}
632
+ * Used by accumulators.
633
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.charging Online documentation}
230
634
  */
231
- train_stop,
635
+ charging,
232
636
  /**
233
- * {@link LuaDeciderCombinatorControlBehavior}
234
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.decider_combinator Online documentation}
637
+ * Used by accumulators.
638
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.discharging Online documentation}
235
639
  */
236
- decider_combinator,
640
+ discharging,
237
641
  /**
238
- * {@link LuaArithmeticCombinatorControlBehavior}
239
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.arithmetic_combinator Online documentation}
642
+ * Used by accumulators.
643
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.fully_charged Online documentation}
240
644
  */
241
- arithmetic_combinator,
645
+ fully_charged,
242
646
  /**
243
- * {@link LuaConstantCombinatorControlBehavior}
244
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.constant_combinator Online documentation}
647
+ * Used by logistic containers.
648
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.out_of_logistic_network Online documentation}
245
649
  */
246
- constant_combinator,
650
+ out_of_logistic_network,
247
651
  /**
248
- * {@link LuaTransportBeltControlBehavior}
249
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.transport_belt Online documentation}
652
+ * Used by assembling machines.
653
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.no_recipe Online documentation}
250
654
  */
251
- transport_belt,
655
+ no_recipe,
252
656
  /**
253
- * {@link LuaAccumulatorControlBehavior}
254
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.accumulator Online documentation}
657
+ * Used by furnaces.
658
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.no_ingredients Online documentation}
255
659
  */
256
- accumulator,
660
+ no_ingredients,
257
661
  /**
258
- * {@link LuaRailSignalControlBehavior}
259
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.rail_signal Online documentation}
662
+ * Used by boilers, fluid turrets and fluid energy sources: Boiler has no fluid to work with.
663
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.no_input_fluid Online documentation}
260
664
  */
261
- rail_signal,
665
+ no_input_fluid,
262
666
  /**
263
- * {@link LuaRailChainSignalControlBehavior}
264
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.rail_chain_signal Online documentation}
667
+ * Used by labs.
668
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.no_research_in_progress Online documentation}
265
669
  */
266
- rail_chain_signal,
670
+ no_research_in_progress,
267
671
  /**
268
- * {@link LuaWallControlBehavior}
269
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.wall Online documentation}
672
+ * Used by mining drills.
673
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.no_minable_resources Online documentation}
270
674
  */
271
- wall,
675
+ no_minable_resources,
272
676
  /**
273
- * {@link LuaMiningDrillControlBehavior}
274
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.mining_drill Online documentation}
677
+ * Used by boilers and fluid turrets: Boiler still has some fluid but is about to run out.
678
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.low_input_fluid Online documentation}
275
679
  */
276
- mining_drill,
680
+ low_input_fluid,
277
681
  /**
278
- * {@link LuaProgrammableSpeakerControlBehavior}
279
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.programmable_speaker Online documentation}
682
+ * Used by crafting machines.
683
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.fluid_ingredient_shortage Online documentation}
280
684
  */
281
- programmable_speaker,
282
- }
283
- }
284
- enum controllers {
285
- /**
286
- * Can't interact with the world, can only observe. Used in the multiplayer waiting-to-respawn screen.
287
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.controllers.ghost Online documentation}
288
- */
289
- ghost,
290
- /**
291
- * The controller controls a character. This is the default controller in freeplay.
292
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.controllers.character Online documentation}
293
- */
294
- character,
295
- /**
296
- * The controller isn't tied to a character. This is the default controller in sandbox.
297
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.controllers.god Online documentation}
298
- */
299
- god,
300
- /**
301
- * The Editor Controller near ultimate power to do almost anything in the game.
302
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.controllers.editor Online documentation}
303
- */
304
- editor,
305
- /**
306
- * The player can't interact with the world, and the camera pans around in a predefined manner.
307
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.controllers.cutscene Online documentation}
308
- */
309
- cutscene,
310
- /**
311
- * Can't change anything in the world but can view anything.
312
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.controllers.spectator Online documentation}
313
- */
314
- spectator,
315
- }
316
- namespace deconstruction_item {
317
- enum entity_filter_mode {
318
- whitelist,
319
- blacklist,
320
- }
321
- enum tile_filter_mode {
322
- whitelist,
323
- blacklist,
324
- }
325
- enum tile_selection_mode {
326
- normal,
327
- always,
328
- never,
329
- only,
330
- }
331
- }
332
- enum difficulty {
333
- easy,
334
- normal,
335
- hard,
336
- }
337
- namespace difficulty_settings {
338
- enum recipe_difficulty {
339
- normal,
340
- expensive,
341
- }
342
- enum technology_difficulty {
343
- normal,
344
- expensive,
685
+ fluid_ingredient_shortage,
686
+ /**
687
+ * Used by crafting machines, boilers, burner energy sources and reactors: Reactor/burner has full burnt result inventory, boiler has full output fluidbox.
688
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.full_output Online documentation}
689
+ */
690
+ full_output,
691
+ /**
692
+ * Used by crafting machines.
693
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.item_ingredient_shortage Online documentation}
694
+ */
695
+ item_ingredient_shortage,
696
+ /**
697
+ * Used by mining drills when the mining fluid is missing.
698
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.missing_required_fluid Online documentation}
699
+ */
700
+ missing_required_fluid,
701
+ /**
702
+ * Used by labs.
703
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.missing_science_packs Online documentation}
704
+ */
705
+ missing_science_packs,
706
+ /**
707
+ * Used by inserters.
708
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.waiting_for_source_items Online documentation}
709
+ */
710
+ waiting_for_source_items,
711
+ /**
712
+ * Used by inserters and mining drills.
713
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.waiting_for_space_in_destination Online documentation}
714
+ */
715
+ waiting_for_space_in_destination,
716
+ /**
717
+ * Used by the rocket silo.
718
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.preparing_rocket_for_launch Online documentation}
719
+ */
720
+ preparing_rocket_for_launch,
721
+ /**
722
+ * Used by the rocket silo.
723
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.waiting_to_launch_rocket Online documentation}
724
+ */
725
+ waiting_to_launch_rocket,
726
+ /**
727
+ * Used by the rocket silo.
728
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.launching_rocket Online documentation}
729
+ */
730
+ launching_rocket,
731
+ /**
732
+ * Used by beacons.
733
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.no_modules_to_transmit Online documentation}
734
+ */
735
+ no_modules_to_transmit,
736
+ /**
737
+ * Used by roboports.
738
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.recharging_after_power_outage Online documentation}
739
+ */
740
+ recharging_after_power_outage,
741
+ /**
742
+ * Used by inserters targeting entity ghosts.
743
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.waiting_for_target_to_be_built Online documentation}
744
+ */
745
+ waiting_for_target_to_be_built,
746
+ /**
747
+ * Used by inserters targeting rails.
748
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.waiting_for_train Online documentation}
749
+ */
750
+ waiting_for_train,
751
+ /**
752
+ * Used by ammo turrets.
753
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.no_ammo Online documentation}
754
+ */
755
+ no_ammo,
756
+ /**
757
+ * Used by heat energy sources.
758
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.low_temperature Online documentation}
759
+ */
760
+ low_temperature,
761
+ /**
762
+ * Used by constant combinators: Combinator is turned off via switch in GUI.
763
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.disabled Online documentation}
764
+ */
765
+ disabled,
766
+ /**
767
+ * Used by lamps.
768
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.turned_off_during_daytime Online documentation}
769
+ */
770
+ turned_off_during_daytime,
771
+ /**
772
+ * Used by rail signals.
773
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.not_connected_to_rail Online documentation}
774
+ */
775
+ not_connected_to_rail,
776
+ /**
777
+ * Used by rail signals.
778
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.entity_status.cant_divide_segments Online documentation}
779
+ */
780
+ cant_divide_segments,
345
781
  }
346
- }
347
- enum direction {
348
- north = 0,
349
- northeast = 1,
350
- east = 2,
351
- southeast = 3,
352
- south = 4,
353
- southwest = 5,
354
- west = 6,
355
- northwest = 7,
356
- }
357
- enum disconnect_reason {
358
- quit,
359
- dropped,
360
- reconnect,
361
- wrong_input,
362
- desync_limit_reached,
363
- cannot_keep_up,
364
- afk,
365
- kicked,
366
- kicked_and_deleted,
367
- banned,
368
- switching_servers,
369
- }
370
- enum distraction {
371
- /**
372
- * Perform command even if someone attacks the unit.
373
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.distraction.none Online documentation}
374
- */
375
- none,
376
- /**
377
- * Attack closer enemy entities with force.
378
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.distraction.by_enemy Online documentation}
379
- */
380
- by_enemy,
381
- /**
382
- * Attack closer enemy entities, including entities "built" by player (belts, inserters, chests).
383
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.distraction.by_anything Online documentation}
384
- */
385
- by_anything,
386
- /**
387
- * Attack when attacked.
388
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.distraction.by_damage Online documentation}
389
- */
390
- by_damage,
391
- }
392
- enum entity_status {
393
- working,
394
- normal,
395
- no_power,
396
- low_power,
397
- no_fuel,
398
- disabled_by_control_behavior,
399
- opened_by_circuit_network,
400
- closed_by_circuit_network,
401
- disabled_by_script,
402
- marked_for_deconstruction,
403
- /**
404
- * Used by generators and solar panels.
405
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.not_plugged_in_electric_network Online documentation}
406
- */
407
- not_plugged_in_electric_network,
408
- /**
409
- * Used by power switches.
410
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.networks_connected Online documentation}
411
- */
412
- networks_connected,
413
- /**
414
- * Used by power switches.
415
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.networks_disconnected Online documentation}
416
- */
417
- networks_disconnected,
418
- /**
419
- * Used by accumulators.
420
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.charging Online documentation}
421
- */
422
- charging,
423
- /**
424
- * Used by accumulators.
425
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.discharging Online documentation}
426
- */
427
- discharging,
428
- /**
429
- * Used by accumulators.
430
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.fully_charged Online documentation}
431
- */
432
- fully_charged,
433
- /**
434
- * Used by logistic containers.
435
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.out_of_logistic_network Online documentation}
436
- */
437
- out_of_logistic_network,
438
- /**
439
- * Used by assembling machines.
440
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.no_recipe Online documentation}
441
- */
442
- no_recipe,
443
- /**
444
- * Used by furnaces.
445
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.no_ingredients Online documentation}
446
- */
447
- no_ingredients,
448
- /**
449
- * Used by boilers, fluid turrets and fluid energy sources: Boiler has no fluid to work with.
450
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.no_input_fluid Online documentation}
451
- */
452
- no_input_fluid,
453
- /**
454
- * Used by labs.
455
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.no_research_in_progress Online documentation}
456
- */
457
- no_research_in_progress,
458
- /**
459
- * Used by mining drills.
460
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.no_minable_resources Online documentation}
461
- */
462
- no_minable_resources,
463
- /**
464
- * Used by boilers and fluid turrets: Boiler still has some fluid but is about to run out.
465
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.low_input_fluid Online documentation}
466
- */
467
- low_input_fluid,
468
- /**
469
- * Used by crafting machines.
470
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.fluid_ingredient_shortage Online documentation}
471
- */
472
- fluid_ingredient_shortage,
473
- /**
474
- * Used by crafting machines, boilers, burner energy sources and reactors: Reactor/burner has full burnt result inventory, boiler has full output fluidbox.
475
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.full_output Online documentation}
476
- */
477
- full_output,
478
- /**
479
- * Used by crafting machines.
480
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.item_ingredient_shortage Online documentation}
481
- */
482
- item_ingredient_shortage,
483
- /**
484
- * Used by mining drills when the mining fluid is missing.
485
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.missing_required_fluid Online documentation}
486
- */
487
- missing_required_fluid,
488
- /**
489
- * Used by labs.
490
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.missing_science_packs Online documentation}
491
- */
492
- missing_science_packs,
493
- /**
494
- * Used by inserters.
495
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.waiting_for_source_items Online documentation}
496
- */
497
- waiting_for_source_items,
498
- /**
499
- * Used by inserters and mining drills.
500
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.waiting_for_space_in_destination Online documentation}
501
- */
502
- waiting_for_space_in_destination,
503
- /**
504
- * Used by the rocket silo.
505
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.preparing_rocket_for_launch Online documentation}
506
- */
507
- preparing_rocket_for_launch,
508
- /**
509
- * Used by the rocket silo.
510
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.waiting_to_launch_rocket Online documentation}
511
- */
512
- waiting_to_launch_rocket,
513
- /**
514
- * Used by the rocket silo.
515
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.launching_rocket Online documentation}
516
- */
517
- launching_rocket,
518
- /**
519
- * Used by beacons.
520
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.no_modules_to_transmit Online documentation}
521
- */
522
- no_modules_to_transmit,
523
- /**
524
- * Used by roboports.
525
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.recharging_after_power_outage Online documentation}
526
- */
527
- recharging_after_power_outage,
528
- /**
529
- * Used by inserters targeting entity ghosts.
530
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.waiting_for_target_to_be_built Online documentation}
531
- */
532
- waiting_for_target_to_be_built,
533
- /**
534
- * Used by inserters targeting rails.
535
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.waiting_for_train Online documentation}
536
- */
537
- waiting_for_train,
538
- /**
539
- * Used by ammo turrets.
540
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.no_ammo Online documentation}
541
- */
542
- no_ammo,
543
- /**
544
- * Used by heat energy sources.
545
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.low_temperature Online documentation}
546
- */
547
- low_temperature,
548
- /**
549
- * Used by constant combinators: Combinator is turned off via switch in GUI.
550
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.disabled Online documentation}
551
- */
552
- disabled,
553
- /**
554
- * Used by lamps.
555
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.turned_off_during_daytime Online documentation}
556
- */
557
- turned_off_during_daytime,
558
782
  /**
559
- * Used by rail signals.
560
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.not_connected_to_rail Online documentation}
783
+ * See the {@linkplain https://lua-api.factorio.com/1.1.89/events.html events page} for more info on what events contain and when they get raised.
784
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.events Online documentation}
561
785
  */
562
- not_connected_to_rail,
563
- /**
564
- * Used by rail signals.
565
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.cant_divide_segments Online documentation}
566
- */
567
- cant_divide_segments,
568
- }
569
- /**
570
- * See the {@linkplain https://lua-api.factorio.com/latest/events.html events page} for more info on what events contain and when they get raised.
571
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.events Online documentation}
572
- */
573
- namespace events {
574
- /**
575
- * Event type: {@link OnTickEvent}
576
- */
577
- const on_tick: EventId<OnTickEvent>
578
- /**
579
- * Event type: {@link OnGuiClickEvent}
580
- */
581
- const on_gui_click: EventId<OnGuiClickEvent>
582
- /**
583
- * Event type: {@link OnGuiConfirmedEvent}
584
- */
585
- const on_gui_confirmed: EventId<OnGuiConfirmedEvent>
586
- /**
587
- * Event type: {@link OnGuiTextChangedEvent}
588
- */
589
- const on_gui_text_changed: EventId<OnGuiTextChangedEvent>
590
- /**
591
- * Event type: {@link OnGuiCheckedStateChangedEvent}
592
- */
593
- const on_gui_checked_state_changed: EventId<OnGuiCheckedStateChangedEvent>
594
- /**
595
- * Event type: {@link OnEntityDiedEvent}
596
- *
597
- * Event filter: {@link LuaEntityDiedEventFilter}
598
- */
599
- const on_entity_died: EventId<OnEntityDiedEvent, LuaEntityDiedEventFilter>
600
- /**
601
- * Event type: {@link OnPostEntityDiedEvent}
602
- *
603
- * Event filter: {@link LuaPostEntityDiedEventFilter}
604
- */
605
- const on_post_entity_died: EventId<OnPostEntityDiedEvent, LuaPostEntityDiedEventFilter>
606
- /**
607
- * Event type: {@link OnEntityDamagedEvent}
608
- *
609
- * Event filter: {@link LuaEntityDamagedEventFilter}
610
- */
611
- const on_entity_damaged: EventId<OnEntityDamagedEvent, LuaEntityDamagedEventFilter>
612
- /**
613
- * Event type: {@link OnPickedUpItemEvent}
614
- */
615
- const on_picked_up_item: EventId<OnPickedUpItemEvent>
616
- /**
617
- * Event type: {@link OnBuiltEntityEvent}
618
- *
619
- * Event filter: {@link LuaPlayerBuiltEntityEventFilter}
620
- */
621
- const on_built_entity: EventId<OnBuiltEntityEvent, LuaPlayerBuiltEntityEventFilter>
622
- /**
623
- * Event type: {@link OnSectorScannedEvent}
624
- *
625
- * Event filter: {@link LuaSectorScannedEventFilter}
626
- */
627
- const on_sector_scanned: EventId<OnSectorScannedEvent, LuaSectorScannedEventFilter>
628
- /**
629
- * Event type: {@link OnPlayerMinedItemEvent}
630
- */
631
- const on_player_mined_item: EventId<OnPlayerMinedItemEvent>
632
- /**
633
- * Event type: {@link OnPreBuildEvent}
634
- */
635
- const on_pre_build: EventId<OnPreBuildEvent>
636
- /**
637
- * Event type: {@link OnRocketLaunchedEvent}
638
- */
639
- const on_rocket_launched: EventId<OnRocketLaunchedEvent>
640
- /**
641
- * Event type: {@link OnPrePlayerMinedItemEvent}
642
- *
643
- * Event filter: {@link LuaPrePlayerMinedEntityEventFilter}
644
- */
645
- const on_pre_player_mined_item: EventId<OnPrePlayerMinedItemEvent, LuaPrePlayerMinedEntityEventFilter>
646
- /**
647
- * Event type: {@link OnChunkGeneratedEvent}
648
- */
649
- const on_chunk_generated: EventId<OnChunkGeneratedEvent>
650
- /**
651
- * Event type: {@link OnPlayerCraftedItemEvent}
652
- */
653
- const on_player_crafted_item: EventId<OnPlayerCraftedItemEvent>
654
- /**
655
- * Event type: {@link OnRobotBuiltEntityEvent}
656
- *
657
- * Event filter: {@link LuaRobotBuiltEntityEventFilter}
658
- */
659
- const on_robot_built_entity: EventId<OnRobotBuiltEntityEvent, LuaRobotBuiltEntityEventFilter>
660
- /**
661
- * Event type: {@link OnRobotPreMinedEvent}
662
- *
663
- * Event filter: {@link LuaPreRobotMinedEntityEventFilter}
664
- */
665
- const on_robot_pre_mined: EventId<OnRobotPreMinedEvent, LuaPreRobotMinedEntityEventFilter>
666
- /**
667
- * Event type: {@link OnRobotMinedEvent}
668
- */
669
- const on_robot_mined: EventId<OnRobotMinedEvent>
670
- /**
671
- * Event type: {@link OnResearchStartedEvent}
672
- */
673
- const on_research_started: EventId<OnResearchStartedEvent>
674
- /**
675
- * Event type: {@link OnResearchFinishedEvent}
676
- */
677
- const on_research_finished: EventId<OnResearchFinishedEvent>
678
- /**
679
- * Event type: {@link OnResearchReversedEvent}
680
- */
681
- const on_research_reversed: EventId<OnResearchReversedEvent>
682
- /**
683
- * Event type: {@link OnResearchCancelledEvent}
684
- */
685
- const on_research_cancelled: EventId<OnResearchCancelledEvent>
686
- /**
687
- * Event type: {@link OnPlayerRotatedEntityEvent}
688
- */
689
- const on_player_rotated_entity: EventId<OnPlayerRotatedEntityEvent>
690
- /**
691
- * Event type: {@link OnMarkedForDeconstructionEvent}
692
- *
693
- * Event filter: {@link LuaEntityMarkedForDeconstructionEventFilter}
694
- */
695
- const on_marked_for_deconstruction: EventId<
696
- OnMarkedForDeconstructionEvent,
697
- LuaEntityMarkedForDeconstructionEventFilter
698
- >
699
- /**
700
- * Event type: {@link OnCancelledDeconstructionEvent}
701
- *
702
- * Event filter: {@link LuaEntityDeconstructionCancelledEventFilter}
703
- */
704
- const on_cancelled_deconstruction: EventId<
705
- OnCancelledDeconstructionEvent,
706
- LuaEntityDeconstructionCancelledEventFilter
707
- >
708
- /**
709
- * Event type: {@link OnTriggerCreatedEntityEvent}
710
- */
711
- const on_trigger_created_entity: EventId<OnTriggerCreatedEntityEvent>
712
- /**
713
- * Event type: {@link OnTriggerFiredArtilleryEvent}
714
- */
715
- const on_trigger_fired_artillery: EventId<OnTriggerFiredArtilleryEvent>
716
- /**
717
- * Event type: {@link OnTrainChangedStateEvent}
718
- */
719
- const on_train_changed_state: EventId<OnTrainChangedStateEvent>
720
- /**
721
- * Event type: {@link OnPlayerCreatedEvent}
722
- */
723
- const on_player_created: EventId<OnPlayerCreatedEvent>
724
- /**
725
- * Event type: {@link OnResourceDepletedEvent}
726
- */
727
- const on_resource_depleted: EventId<OnResourceDepletedEvent>
728
- /**
729
- * Event type: {@link OnPlayerDrivingChangedStateEvent}
730
- */
731
- const on_player_driving_changed_state: EventId<OnPlayerDrivingChangedStateEvent>
732
- /**
733
- * Event type: {@link OnForceCreatedEvent}
734
- */
735
- const on_force_created: EventId<OnForceCreatedEvent>
736
- /**
737
- * Event type: {@link OnForcesMergingEvent}
738
- */
739
- const on_forces_merging: EventId<OnForcesMergingEvent>
740
- /**
741
- * Event type: {@link OnPlayerCursorStackChangedEvent}
742
- */
743
- const on_player_cursor_stack_changed: EventId<OnPlayerCursorStackChangedEvent>
744
- /**
745
- * Event type: {@link OnPreEntitySettingsPastedEvent}
746
- */
747
- const on_pre_entity_settings_pasted: EventId<OnPreEntitySettingsPastedEvent>
748
- /**
749
- * Event type: {@link OnEntitySettingsPastedEvent}
750
- */
751
- const on_entity_settings_pasted: EventId<OnEntitySettingsPastedEvent>
752
- /**
753
- * Event type: {@link OnPlayerMainInventoryChangedEvent}
754
- */
755
- const on_player_main_inventory_changed: EventId<OnPlayerMainInventoryChangedEvent>
756
- /**
757
- * Event type: {@link OnPlayerArmorInventoryChangedEvent}
758
- */
759
- const on_player_armor_inventory_changed: EventId<OnPlayerArmorInventoryChangedEvent>
760
- /**
761
- * Event type: {@link OnPlayerAmmoInventoryChangedEvent}
762
- */
763
- const on_player_ammo_inventory_changed: EventId<OnPlayerAmmoInventoryChangedEvent>
764
- /**
765
- * Event type: {@link OnPlayerGunInventoryChangedEvent}
766
- */
767
- const on_player_gun_inventory_changed: EventId<OnPlayerGunInventoryChangedEvent>
768
- /**
769
- * Event type: {@link OnPlayerPlacedEquipmentEvent}
770
- */
771
- const on_player_placed_equipment: EventId<OnPlayerPlacedEquipmentEvent>
772
- /**
773
- * Event type: {@link OnPlayerRemovedEquipmentEvent}
774
- */
775
- const on_player_removed_equipment: EventId<OnPlayerRemovedEquipmentEvent>
776
- /**
777
- * Event type: {@link OnPrePlayerDiedEvent}
778
- */
779
- const on_pre_player_died: EventId<OnPrePlayerDiedEvent>
780
- /**
781
- * Event type: {@link OnPlayerDiedEvent}
782
- */
783
- const on_player_died: EventId<OnPlayerDiedEvent>
784
- /**
785
- * Event type: {@link OnPlayerRespawnedEvent}
786
- */
787
- const on_player_respawned: EventId<OnPlayerRespawnedEvent>
788
- /**
789
- * Event type: {@link OnPlayerJoinedGameEvent}
790
- */
791
- const on_player_joined_game: EventId<OnPlayerJoinedGameEvent>
792
- /**
793
- * Event type: {@link OnPlayerLeftGameEvent}
794
- */
795
- const on_player_left_game: EventId<OnPlayerLeftGameEvent>
796
- /**
797
- * Event type: {@link OnPlayerBuiltTileEvent}
798
- */
799
- const on_player_built_tile: EventId<OnPlayerBuiltTileEvent>
800
- /**
801
- * Event type: {@link OnPlayerMinedTileEvent}
802
- */
803
- const on_player_mined_tile: EventId<OnPlayerMinedTileEvent>
804
- /**
805
- * Event type: {@link OnRobotBuiltTileEvent}
806
- */
807
- const on_robot_built_tile: EventId<OnRobotBuiltTileEvent>
808
- /**
809
- * Event type: {@link OnRobotMinedTileEvent}
810
- */
811
- const on_robot_mined_tile: EventId<OnRobotMinedTileEvent>
812
- /**
813
- * Event type: {@link OnPlayerSelectedAreaEvent}
814
- */
815
- const on_player_selected_area: EventId<OnPlayerSelectedAreaEvent>
816
- /**
817
- * Event type: {@link OnPlayerAltSelectedAreaEvent}
818
- */
819
- const on_player_alt_selected_area: EventId<OnPlayerAltSelectedAreaEvent>
820
- /**
821
- * Event type: {@link OnPlayerChangedSurfaceEvent}
822
- */
823
- const on_player_changed_surface: EventId<OnPlayerChangedSurfaceEvent>
824
- /**
825
- * Event type: {@link OnSelectedEntityChangedEvent}
826
- */
827
- const on_selected_entity_changed: EventId<OnSelectedEntityChangedEvent>
828
- /**
829
- * Event type: {@link OnMarketItemPurchasedEvent}
830
- */
831
- const on_market_item_purchased: EventId<OnMarketItemPurchasedEvent>
832
- /**
833
- * Event type: {@link OnPlayerDroppedItemEvent}
834
- */
835
- const on_player_dropped_item: EventId<OnPlayerDroppedItemEvent>
836
- /**
837
- * Event type: {@link OnBiterBaseBuiltEvent}
838
- */
839
- const on_biter_base_built: EventId<OnBiterBaseBuiltEvent>
840
- /**
841
- * Event type: {@link OnPlayerChangedForceEvent}
842
- */
843
- const on_player_changed_force: EventId<OnPlayerChangedForceEvent>
844
- /**
845
- * Event type: {@link OnEntityRenamedEvent}
846
- */
847
- const on_entity_renamed: EventId<OnEntityRenamedEvent>
848
- /**
849
- * Event type: {@link OnGuiSelectionStateChangedEvent}
850
- */
851
- const on_gui_selection_state_changed: EventId<OnGuiSelectionStateChangedEvent>
852
- /**
853
- * Event type: {@link OnRuntimeModSettingChangedEvent}
854
- */
855
- const on_runtime_mod_setting_changed: EventId<OnRuntimeModSettingChangedEvent>
856
- /**
857
- * Event type: {@link OnDifficultySettingsChangedEvent}
858
- */
859
- const on_difficulty_settings_changed: EventId<OnDifficultySettingsChangedEvent>
860
- /**
861
- * Event type: {@link OnSurfaceCreatedEvent}
862
- */
863
- const on_surface_created: EventId<OnSurfaceCreatedEvent>
864
- /**
865
- * Event type: {@link OnSurfaceDeletedEvent}
866
- */
867
- const on_surface_deleted: EventId<OnSurfaceDeletedEvent>
868
- /**
869
- * Event type: {@link OnPreSurfaceDeletedEvent}
870
- */
871
- const on_pre_surface_deleted: EventId<OnPreSurfaceDeletedEvent>
872
- /**
873
- * Event type: {@link OnPlayerMinedEntityEvent}
874
- *
875
- * Event filter: {@link LuaPlayerMinedEntityEventFilter}
876
- */
877
- const on_player_mined_entity: EventId<OnPlayerMinedEntityEvent, LuaPlayerMinedEntityEventFilter>
878
- /**
879
- * Event type: {@link OnRobotMinedEntityEvent}
880
- *
881
- * Event filter: {@link LuaRobotMinedEntityEventFilter}
882
- */
883
- const on_robot_mined_entity: EventId<OnRobotMinedEntityEvent, LuaRobotMinedEntityEventFilter>
884
- /**
885
- * Event type: {@link OnTrainCreatedEvent}
886
- */
887
- const on_train_created: EventId<OnTrainCreatedEvent>
888
- /**
889
- * Event type: {@link OnGuiElemChangedEvent}
890
- */
891
- const on_gui_elem_changed: EventId<OnGuiElemChangedEvent>
892
- /**
893
- * Event type: {@link OnPlayerSetupBlueprintEvent}
894
- */
895
- const on_player_setup_blueprint: EventId<OnPlayerSetupBlueprintEvent>
896
- /**
897
- * Event type: {@link OnPlayerDeconstructedAreaEvent}
898
- */
899
- const on_player_deconstructed_area: EventId<OnPlayerDeconstructedAreaEvent>
900
- /**
901
- * Event type: {@link OnPlayerConfiguredBlueprintEvent}
902
- */
903
- const on_player_configured_blueprint: EventId<OnPlayerConfiguredBlueprintEvent>
904
- /**
905
- * Event type: {@link OnConsoleChatEvent}
906
- */
907
- const on_console_chat: EventId<OnConsoleChatEvent>
908
- /**
909
- * Event type: {@link OnConsoleCommandEvent}
910
- */
911
- const on_console_command: EventId<OnConsoleCommandEvent>
912
- /**
913
- * Event type: {@link OnPlayerRemovedEvent}
914
- */
915
- const on_player_removed: EventId<OnPlayerRemovedEvent>
916
- /**
917
- * Event type: {@link OnPrePlayerRemovedEvent}
918
- */
919
- const on_pre_player_removed: EventId<OnPrePlayerRemovedEvent>
920
- /**
921
- * Event type: {@link OnPlayerUsedCapsuleEvent}
922
- */
923
- const on_player_used_capsule: EventId<OnPlayerUsedCapsuleEvent>
924
- /**
925
- * Event type: {@link ScriptRaisedBuiltEvent}
926
- *
927
- * Event filter: {@link LuaScriptRaisedBuiltEventFilter}
928
- */
929
- const script_raised_built: EventId<ScriptRaisedBuiltEvent, LuaScriptRaisedBuiltEventFilter>
930
- /**
931
- * Event type: {@link ScriptRaisedDestroyEvent}
932
- *
933
- * Event filter: {@link LuaScriptRaisedDestroyEventFilter}
934
- */
935
- const script_raised_destroy: EventId<ScriptRaisedDestroyEvent, LuaScriptRaisedDestroyEventFilter>
936
- /**
937
- * Event type: {@link ScriptRaisedReviveEvent}
938
- *
939
- * Event filter: {@link LuaScriptRaisedReviveEventFilter}
940
- */
941
- const script_raised_revive: EventId<ScriptRaisedReviveEvent, LuaScriptRaisedReviveEventFilter>
942
- /**
943
- * Event type: {@link ScriptRaisedTeleportedEvent}
944
- *
945
- * Event filter: {@link LuaScriptRaisedTeleportedEventFilter}
946
- */
947
- const script_raised_teleported: EventId<ScriptRaisedTeleportedEvent, LuaScriptRaisedTeleportedEventFilter>
948
- /**
949
- * Event type: {@link ScriptRaisedSetTilesEvent}
950
- */
951
- const script_raised_set_tiles: EventId<ScriptRaisedSetTilesEvent>
952
- /**
953
- * Event type: {@link OnPlayerPromotedEvent}
954
- */
955
- const on_player_promoted: EventId<OnPlayerPromotedEvent>
956
- /**
957
- * Event type: {@link OnPlayerDemotedEvent}
958
- */
959
- const on_player_demoted: EventId<OnPlayerDemotedEvent>
960
- /**
961
- * Event type: {@link OnCombatRobotExpiredEvent}
962
- */
963
- const on_combat_robot_expired: EventId<OnCombatRobotExpiredEvent>
964
- /**
965
- * Event type: {@link OnWorkerRobotExpiredEvent}
966
- */
967
- const on_worker_robot_expired: EventId<OnWorkerRobotExpiredEvent>
968
- /**
969
- * Event type: {@link OnPlayerChangedPositionEvent}
970
- */
971
- const on_player_changed_position: EventId<OnPlayerChangedPositionEvent>
972
- /**
973
- * Event type: {@link OnModItemOpenedEvent}
974
- */
975
- const on_mod_item_opened: EventId<OnModItemOpenedEvent>
976
- /**
977
- * Event type: {@link OnGuiOpenedEvent}
978
- */
979
- const on_gui_opened: EventId<OnGuiOpenedEvent>
980
- /**
981
- * Event type: {@link OnGuiClosedEvent}
982
- */
983
- const on_gui_closed: EventId<OnGuiClosedEvent>
984
- /**
985
- * Event type: {@link OnGuiValueChangedEvent}
986
- */
987
- const on_gui_value_changed: EventId<OnGuiValueChangedEvent>
988
- /**
989
- * Event type: {@link OnPlayerMutedEvent}
990
- */
991
- const on_player_muted: EventId<OnPlayerMutedEvent>
992
- /**
993
- * Event type: {@link OnPlayerUnmutedEvent}
994
- */
995
- const on_player_unmuted: EventId<OnPlayerUnmutedEvent>
996
- /**
997
- * Event type: {@link OnPlayerCheatModeEnabledEvent}
998
- */
999
- const on_player_cheat_mode_enabled: EventId<OnPlayerCheatModeEnabledEvent>
1000
- /**
1001
- * Event type: {@link OnPlayerCheatModeDisabledEvent}
1002
- */
1003
- const on_player_cheat_mode_disabled: EventId<OnPlayerCheatModeDisabledEvent>
1004
- /**
1005
- * Event type: {@link OnCharacterCorpseExpiredEvent}
1006
- */
1007
- const on_character_corpse_expired: EventId<OnCharacterCorpseExpiredEvent>
1008
- /**
1009
- * Event type: {@link OnPreGhostDeconstructedEvent}
1010
- *
1011
- * Event filter: {@link LuaPreGhostDeconstructedEventFilter}
1012
- */
1013
- const on_pre_ghost_deconstructed: EventId<OnPreGhostDeconstructedEvent, LuaPreGhostDeconstructedEventFilter>
1014
- /**
1015
- * Event type: {@link OnPreGhostUpgradedEvent}
1016
- *
1017
- * Event filter: {@link LuaPreGhostUpgradedEventFilter}
1018
- */
1019
- const on_pre_ghost_upgraded: EventId<OnPreGhostUpgradedEvent, LuaPreGhostUpgradedEventFilter>
1020
- /**
1021
- * Event type: {@link OnPlayerPipetteEvent}
1022
- */
1023
- const on_player_pipette: EventId<OnPlayerPipetteEvent>
1024
- /**
1025
- * Event type: {@link OnPlayerDisplayResolutionChangedEvent}
1026
- */
1027
- const on_player_display_resolution_changed: EventId<OnPlayerDisplayResolutionChangedEvent>
1028
- /**
1029
- * Event type: {@link OnPlayerDisplayScaleChangedEvent}
1030
- */
1031
- const on_player_display_scale_changed: EventId<OnPlayerDisplayScaleChangedEvent>
1032
- /**
1033
- * Event type: {@link OnPrePlayerCraftedItemEvent}
1034
- */
1035
- const on_pre_player_crafted_item: EventId<OnPrePlayerCraftedItemEvent>
1036
- /**
1037
- * Event type: {@link OnPlayerCancelledCraftingEvent}
1038
- */
1039
- const on_player_cancelled_crafting: EventId<OnPlayerCancelledCraftingEvent>
1040
- /**
1041
- * Event type: {@link OnChunkChartedEvent}
1042
- */
1043
- const on_chunk_charted: EventId<OnChunkChartedEvent>
1044
- /**
1045
- * Event type: {@link OnTechnologyEffectsResetEvent}
1046
- */
1047
- const on_technology_effects_reset: EventId<OnTechnologyEffectsResetEvent>
1048
- /**
1049
- * Event type: {@link OnForceResetEvent}
1050
- */
1051
- const on_force_reset: EventId<OnForceResetEvent>
1052
- /**
1053
- * Event type: {@link OnLandMineArmedEvent}
1054
- */
1055
- const on_land_mine_armed: EventId<OnLandMineArmedEvent>
1056
- /**
1057
- * Event type: {@link OnForcesMergedEvent}
1058
- */
1059
- const on_forces_merged: EventId<OnForcesMergedEvent>
1060
- /**
1061
- * Event type: {@link OnPlayerTrashInventoryChangedEvent}
1062
- */
1063
- const on_player_trash_inventory_changed: EventId<OnPlayerTrashInventoryChangedEvent>
1064
- /**
1065
- * Event type: {@link OnPrePlayerLeftGameEvent}
1066
- */
1067
- const on_pre_player_left_game: EventId<OnPrePlayerLeftGameEvent>
1068
- /**
1069
- * Event type: {@link OnPreSurfaceClearedEvent}
1070
- */
1071
- const on_pre_surface_cleared: EventId<OnPreSurfaceClearedEvent>
1072
- /**
1073
- * Event type: {@link OnSurfaceClearedEvent}
1074
- */
1075
- const on_surface_cleared: EventId<OnSurfaceClearedEvent>
1076
- /**
1077
- * Event type: {@link OnChunkDeletedEvent}
1078
- */
1079
- const on_chunk_deleted: EventId<OnChunkDeletedEvent>
1080
- /**
1081
- * Event type: {@link OnPreChunkDeletedEvent}
1082
- */
1083
- const on_pre_chunk_deleted: EventId<OnPreChunkDeletedEvent>
1084
- /**
1085
- * Event type: {@link OnTrainScheduleChangedEvent}
1086
- */
1087
- const on_train_schedule_changed: EventId<OnTrainScheduleChangedEvent>
1088
- /**
1089
- * Event type: {@link OnPlayerBannedEvent}
1090
- */
1091
- const on_player_banned: EventId<OnPlayerBannedEvent>
1092
- /**
1093
- * Event type: {@link OnPlayerKickedEvent}
1094
- */
1095
- const on_player_kicked: EventId<OnPlayerKickedEvent>
1096
- /**
1097
- * Event type: {@link OnPlayerUnbannedEvent}
1098
- */
1099
- const on_player_unbanned: EventId<OnPlayerUnbannedEvent>
1100
- /**
1101
- * Event type: {@link OnRocketLaunchOrderedEvent}
1102
- */
1103
- const on_rocket_launch_ordered: EventId<OnRocketLaunchOrderedEvent>
1104
- /**
1105
- * Event type: {@link OnScriptPathRequestFinishedEvent}
1106
- */
1107
- const on_script_path_request_finished: EventId<OnScriptPathRequestFinishedEvent>
1108
- /**
1109
- * Event type: {@link OnAiCommandCompletedEvent}
1110
- */
1111
- const on_ai_command_completed: EventId<OnAiCommandCompletedEvent>
1112
- /**
1113
- * Event type: {@link OnMarkedForUpgradeEvent}
1114
- *
1115
- * Event filter: {@link LuaEntityMarkedForUpgradeEventFilter}
1116
- */
1117
- const on_marked_for_upgrade: EventId<OnMarkedForUpgradeEvent, LuaEntityMarkedForUpgradeEventFilter>
1118
- /**
1119
- * Event type: {@link OnCancelledUpgradeEvent}
1120
- *
1121
- * Event filter: {@link LuaUpgradeCancelledEventFilter}
1122
- */
1123
- const on_cancelled_upgrade: EventId<OnCancelledUpgradeEvent, LuaUpgradeCancelledEventFilter>
1124
- /**
1125
- * Event type: {@link OnPlayerToggledMapEditorEvent}
1126
- */
1127
- const on_player_toggled_map_editor: EventId<OnPlayerToggledMapEditorEvent>
1128
- /**
1129
- * Event type: {@link OnEntityClonedEvent}
1130
- *
1131
- * Event filter: {@link LuaEntityClonedEventFilter}
1132
- */
1133
- const on_entity_cloned: EventId<OnEntityClonedEvent, LuaEntityClonedEventFilter>
1134
- /**
1135
- * Event type: {@link OnAreaClonedEvent}
1136
- */
1137
- const on_area_cloned: EventId<OnAreaClonedEvent>
1138
- /**
1139
- * Event type: {@link OnBrushClonedEvent}
1140
- */
1141
- const on_brush_cloned: EventId<OnBrushClonedEvent>
1142
- /**
1143
- * Event type: {@link OnGameCreatedFromScenarioEvent}
1144
- */
1145
- const on_game_created_from_scenario: EventId<OnGameCreatedFromScenarioEvent>
1146
- /**
1147
- * Event type: {@link OnSurfaceImportedEvent}
1148
- */
1149
- const on_surface_imported: EventId<OnSurfaceImportedEvent>
1150
- /**
1151
- * Event type: {@link OnSurfaceRenamedEvent}
1152
- */
1153
- const on_surface_renamed: EventId<OnSurfaceRenamedEvent>
1154
- /**
1155
- * Event type: {@link OnPlayerToggledAltModeEvent}
1156
- */
1157
- const on_player_toggled_alt_mode: EventId<OnPlayerToggledAltModeEvent>
1158
- /**
1159
- * Event type: {@link OnPlayerRepairedEntityEvent}
1160
- *
1161
- * Event filter: {@link LuaPlayerRepairedEntityEventFilter}
1162
- */
1163
- const on_player_repaired_entity: EventId<OnPlayerRepairedEntityEvent, LuaPlayerRepairedEntityEventFilter>
1164
- /**
1165
- * Event type: {@link OnPlayerFastTransferredEvent}
1166
- */
1167
- const on_player_fast_transferred: EventId<OnPlayerFastTransferredEvent>
1168
- /**
1169
- * Event type: {@link OnPreRobotExplodedCliffEvent}
1170
- */
1171
- const on_pre_robot_exploded_cliff: EventId<OnPreRobotExplodedCliffEvent>
1172
- /**
1173
- * Event type: {@link OnRobotExplodedCliffEvent}
1174
- */
1175
- const on_robot_exploded_cliff: EventId<OnRobotExplodedCliffEvent>
1176
- /**
1177
- * Event type: {@link OnEntitySpawnedEvent}
1178
- */
1179
- const on_entity_spawned: EventId<OnEntitySpawnedEvent>
1180
- /**
1181
- * Event type: {@link OnCutsceneWaypointReachedEvent}
1182
- */
1183
- const on_cutscene_waypoint_reached: EventId<OnCutsceneWaypointReachedEvent>
1184
- /**
1185
- * Event type: {@link OnUnitGroupCreatedEvent}
1186
- */
1187
- const on_unit_group_created: EventId<OnUnitGroupCreatedEvent>
1188
- /**
1189
- * Event type: {@link OnUnitAddedToGroupEvent}
1190
- */
1191
- const on_unit_added_to_group: EventId<OnUnitAddedToGroupEvent>
1192
- /**
1193
- * Event type: {@link OnUnitRemovedFromGroupEvent}
1194
- */
1195
- const on_unit_removed_from_group: EventId<OnUnitRemovedFromGroupEvent>
1196
- /**
1197
- * Event type: {@link OnUnitGroupFinishedGatheringEvent}
1198
- */
1199
- const on_unit_group_finished_gathering: EventId<OnUnitGroupFinishedGatheringEvent>
1200
- /**
1201
- * Event type: {@link OnBuildBaseArrivedEvent}
1202
- */
1203
- const on_build_base_arrived: EventId<OnBuildBaseArrivedEvent>
1204
- /**
1205
- * Event type: {@link OnChartTagAddedEvent}
1206
- */
1207
- const on_chart_tag_added: EventId<OnChartTagAddedEvent>
1208
- /**
1209
- * Event type: {@link OnChartTagModifiedEvent}
1210
- */
1211
- const on_chart_tag_modified: EventId<OnChartTagModifiedEvent>
1212
- /**
1213
- * Event type: {@link OnChartTagRemovedEvent}
1214
- */
1215
- const on_chart_tag_removed: EventId<OnChartTagRemovedEvent>
1216
- /**
1217
- * Event type: {@link OnLuaShortcutEvent}
1218
- */
1219
- const on_lua_shortcut: EventId<OnLuaShortcutEvent>
1220
- /**
1221
- * Event type: {@link OnGuiLocationChangedEvent}
1222
- */
1223
- const on_gui_location_changed: EventId<OnGuiLocationChangedEvent>
1224
- /**
1225
- * Event type: {@link OnGuiSelectedTabChangedEvent}
1226
- */
1227
- const on_gui_selected_tab_changed: EventId<OnGuiSelectedTabChangedEvent>
1228
- /**
1229
- * Event type: {@link OnGuiSwitchStateChangedEvent}
1230
- */
1231
- const on_gui_switch_state_changed: EventId<OnGuiSwitchStateChangedEvent>
1232
- /**
1233
- * Event type: {@link OnForceCeaseFireChangedEvent}
1234
- */
1235
- const on_force_cease_fire_changed: EventId<OnForceCeaseFireChangedEvent>
1236
- /**
1237
- * Event type: {@link OnForceFriendsChangedEvent}
1238
- */
1239
- const on_force_friends_changed: EventId<OnForceFriendsChangedEvent>
1240
- /**
1241
- * Event type: {@link OnStringTranslatedEvent}
1242
- */
1243
- const on_string_translated: EventId<OnStringTranslatedEvent>
1244
- /**
1245
- * Event type: {@link OnScriptTriggerEffectEvent}
1246
- */
1247
- const on_script_trigger_effect: EventId<OnScriptTriggerEffectEvent>
1248
- /**
1249
- * Event type: {@link OnPlayerSetQuickBarSlotEvent}
1250
- */
1251
- const on_player_set_quick_bar_slot: EventId<OnPlayerSetQuickBarSlotEvent>
1252
- /**
1253
- * Event type: {@link OnPrePlayerToggledMapEditorEvent}
1254
- */
1255
- const on_pre_player_toggled_map_editor: EventId<OnPrePlayerToggledMapEditorEvent>
1256
- /**
1257
- * Event type: {@link OnPreScriptInventoryResizedEvent}
1258
- */
1259
- const on_pre_script_inventory_resized: EventId<OnPreScriptInventoryResizedEvent>
1260
- /**
1261
- * Event type: {@link OnScriptInventoryResizedEvent}
1262
- */
1263
- const on_script_inventory_resized: EventId<OnScriptInventoryResizedEvent>
1264
- /**
1265
- * Event type: {@link OnEntityDestroyedEvent}
1266
- */
1267
- const on_entity_destroyed: EventId<OnEntityDestroyedEvent>
1268
- /**
1269
- * Event type: {@link OnPlayerClickedGpsTagEvent}
1270
- */
1271
- const on_player_clicked_gps_tag: EventId<OnPlayerClickedGpsTagEvent>
1272
- /**
1273
- * Event type: {@link OnPlayerFlushedFluidEvent}
1274
- */
1275
- const on_player_flushed_fluid: EventId<OnPlayerFlushedFluidEvent>
1276
- /**
1277
- * Event type: {@link OnPermissionGroupEditedEvent}
1278
- */
1279
- const on_permission_group_edited: EventId<OnPermissionGroupEditedEvent>
1280
- /**
1281
- * Event type: {@link OnPrePermissionStringImportedEvent}
1282
- */
1283
- const on_pre_permission_string_imported: EventId<OnPrePermissionStringImportedEvent>
1284
- /**
1285
- * Event type: {@link OnPermissionStringImportedEvent}
1286
- */
1287
- const on_permission_string_imported: EventId<OnPermissionStringImportedEvent>
1288
- /**
1289
- * Event type: {@link OnPrePermissionGroupDeletedEvent}
1290
- */
1291
- const on_pre_permission_group_deleted: EventId<OnPrePermissionGroupDeletedEvent>
1292
- /**
1293
- * Event type: {@link OnPermissionGroupDeletedEvent}
1294
- */
1295
- const on_permission_group_deleted: EventId<OnPermissionGroupDeletedEvent>
1296
- /**
1297
- * Event type: {@link OnPermissionGroupAddedEvent}
1298
- */
1299
- const on_permission_group_added: EventId<OnPermissionGroupAddedEvent>
1300
- /**
1301
- * Event type: {@link OnCutsceneCancelledEvent}
1302
- */
1303
- const on_cutscene_cancelled: EventId<OnCutsceneCancelledEvent>
1304
- /**
1305
- * Event type: {@link OnPlayerConfiguredSpiderRemoteEvent}
1306
- */
1307
- const on_player_configured_spider_remote: EventId<OnPlayerConfiguredSpiderRemoteEvent>
1308
- /**
1309
- * Event type: {@link OnPlayerUsedSpiderRemoteEvent}
1310
- */
1311
- const on_player_used_spider_remote: EventId<OnPlayerUsedSpiderRemoteEvent>
1312
- /**
1313
- * Event type: {@link OnSpiderCommandCompletedEvent}
1314
- */
1315
- const on_spider_command_completed: EventId<OnSpiderCommandCompletedEvent>
1316
- /**
1317
- * Event type: {@link OnEntityLogisticSlotChangedEvent}
1318
- */
1319
- const on_entity_logistic_slot_changed: EventId<OnEntityLogisticSlotChangedEvent>
1320
- /**
1321
- * Event type: {@link OnEquipmentInsertedEvent}
1322
- */
1323
- const on_equipment_inserted: EventId<OnEquipmentInsertedEvent>
1324
- /**
1325
- * Event type: {@link OnEquipmentRemovedEvent}
1326
- */
1327
- const on_equipment_removed: EventId<OnEquipmentRemovedEvent>
1328
- /**
1329
- * Event type: {@link OnPlayerReverseSelectedAreaEvent}
1330
- */
1331
- const on_player_reverse_selected_area: EventId<OnPlayerReverseSelectedAreaEvent>
1332
- /**
1333
- * Event type: {@link OnPlayerAltReverseSelectedAreaEvent}
1334
- */
1335
- const on_player_alt_reverse_selected_area: EventId<OnPlayerAltReverseSelectedAreaEvent>
1336
- /**
1337
- * Event type: {@link OnGuiHoverEvent}
1338
- */
1339
- const on_gui_hover: EventId<OnGuiHoverEvent>
1340
- /**
1341
- * Event type: {@link OnGuiLeaveEvent}
1342
- */
1343
- const on_gui_leave: EventId<OnGuiLeaveEvent>
1344
- /**
1345
- * Event type: {@link OnEntityColorChangedEvent}
1346
- */
1347
- const on_entity_color_changed: EventId<OnEntityColorChangedEvent>
1348
- /**
1349
- * Event type: {@link OnCutsceneStartedEvent}
1350
- */
1351
- const on_cutscene_started: EventId<OnCutsceneStartedEvent>
1352
- /**
1353
- * Event type: {@link OnCutsceneFinishedEvent}
1354
- */
1355
- const on_cutscene_finished: EventId<OnCutsceneFinishedEvent>
1356
- /**
1357
- * Event type: {@link OnPlayerInputMethodChangedEvent}
1358
- */
1359
- const on_player_input_method_changed: EventId<OnPlayerInputMethodChangedEvent>
1360
- }
1361
- /**
1362
- * See the {@linkplain https://lua-api.factorio.com/latest/events.html events page} for more info on what events contain and when they get raised.
1363
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.events Online documentation}
1364
- */
1365
- type events = (typeof events)[keyof typeof events]
1366
- enum flow_precision_index {
1367
- five_seconds,
1368
- one_minute,
1369
- ten_minutes,
1370
- one_hour,
1371
- ten_hours,
1372
- fifty_hours,
1373
- two_hundred_fifty_hours,
1374
- one_thousand_hours,
1375
- }
1376
- enum game_controller_interaction {
1377
- /**
1378
- * Game controller will always hover this element regardless of type or state.
1379
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.game_controller_interaction.always Online documentation}
1380
- */
1381
- always,
786
+ namespace events {
787
+ /**
788
+ * Event type: {@link OnTickEvent}
789
+ */
790
+ const on_tick: EventId<OnTickEvent>
791
+ /**
792
+ * Event type: {@link OnGuiClickEvent}
793
+ */
794
+ const on_gui_click: EventId<OnGuiClickEvent>
795
+ /**
796
+ * Event type: {@link OnGuiConfirmedEvent}
797
+ */
798
+ const on_gui_confirmed: EventId<OnGuiConfirmedEvent>
799
+ /**
800
+ * Event type: {@link OnGuiTextChangedEvent}
801
+ */
802
+ const on_gui_text_changed: EventId<OnGuiTextChangedEvent>
803
+ /**
804
+ * Event type: {@link OnGuiCheckedStateChangedEvent}
805
+ */
806
+ const on_gui_checked_state_changed: EventId<OnGuiCheckedStateChangedEvent>
807
+ /**
808
+ * Event type: {@link OnEntityDiedEvent}
809
+ *
810
+ * Event filter: {@link LuaEntityDiedEventFilter}
811
+ */
812
+ const on_entity_died: EventId<OnEntityDiedEvent, LuaEntityDiedEventFilter>
813
+ /**
814
+ * Event type: {@link OnPostEntityDiedEvent}
815
+ *
816
+ * Event filter: {@link LuaPostEntityDiedEventFilter}
817
+ */
818
+ const on_post_entity_died: EventId<OnPostEntityDiedEvent, LuaPostEntityDiedEventFilter>
819
+ /**
820
+ * Event type: {@link OnEntityDamagedEvent}
821
+ *
822
+ * Event filter: {@link LuaEntityDamagedEventFilter}
823
+ */
824
+ const on_entity_damaged: EventId<OnEntityDamagedEvent, LuaEntityDamagedEventFilter>
825
+ /**
826
+ * Event type: {@link OnPickedUpItemEvent}
827
+ */
828
+ const on_picked_up_item: EventId<OnPickedUpItemEvent>
829
+ /**
830
+ * Event type: {@link OnBuiltEntityEvent}
831
+ *
832
+ * Event filter: {@link LuaPlayerBuiltEntityEventFilter}
833
+ */
834
+ const on_built_entity: EventId<OnBuiltEntityEvent, LuaPlayerBuiltEntityEventFilter>
835
+ /**
836
+ * Event type: {@link OnSectorScannedEvent}
837
+ *
838
+ * Event filter: {@link LuaSectorScannedEventFilter}
839
+ */
840
+ const on_sector_scanned: EventId<OnSectorScannedEvent, LuaSectorScannedEventFilter>
841
+ /**
842
+ * Event type: {@link OnPlayerMinedItemEvent}
843
+ */
844
+ const on_player_mined_item: EventId<OnPlayerMinedItemEvent>
845
+ /**
846
+ * Event type: {@link OnPreBuildEvent}
847
+ */
848
+ const on_pre_build: EventId<OnPreBuildEvent>
849
+ /**
850
+ * Event type: {@link OnRocketLaunchedEvent}
851
+ */
852
+ const on_rocket_launched: EventId<OnRocketLaunchedEvent>
853
+ /**
854
+ * Event type: {@link OnPrePlayerMinedItemEvent}
855
+ *
856
+ * Event filter: {@link LuaPrePlayerMinedEntityEventFilter}
857
+ */
858
+ const on_pre_player_mined_item: EventId<OnPrePlayerMinedItemEvent, LuaPrePlayerMinedEntityEventFilter>
859
+ /**
860
+ * Event type: {@link OnChunkGeneratedEvent}
861
+ */
862
+ const on_chunk_generated: EventId<OnChunkGeneratedEvent>
863
+ /**
864
+ * Event type: {@link OnPlayerCraftedItemEvent}
865
+ */
866
+ const on_player_crafted_item: EventId<OnPlayerCraftedItemEvent>
867
+ /**
868
+ * Event type: {@link OnRobotBuiltEntityEvent}
869
+ *
870
+ * Event filter: {@link LuaRobotBuiltEntityEventFilter}
871
+ */
872
+ const on_robot_built_entity: EventId<OnRobotBuiltEntityEvent, LuaRobotBuiltEntityEventFilter>
873
+ /**
874
+ * Event type: {@link OnRobotPreMinedEvent}
875
+ *
876
+ * Event filter: {@link LuaPreRobotMinedEntityEventFilter}
877
+ */
878
+ const on_robot_pre_mined: EventId<OnRobotPreMinedEvent, LuaPreRobotMinedEntityEventFilter>
879
+ /**
880
+ * Event type: {@link OnRobotMinedEvent}
881
+ */
882
+ const on_robot_mined: EventId<OnRobotMinedEvent>
883
+ /**
884
+ * Event type: {@link OnResearchStartedEvent}
885
+ */
886
+ const on_research_started: EventId<OnResearchStartedEvent>
887
+ /**
888
+ * Event type: {@link OnResearchFinishedEvent}
889
+ */
890
+ const on_research_finished: EventId<OnResearchFinishedEvent>
891
+ /**
892
+ * Event type: {@link OnResearchReversedEvent}
893
+ */
894
+ const on_research_reversed: EventId<OnResearchReversedEvent>
895
+ /**
896
+ * Event type: {@link OnResearchCancelledEvent}
897
+ */
898
+ const on_research_cancelled: EventId<OnResearchCancelledEvent>
899
+ /**
900
+ * Event type: {@link OnPlayerRotatedEntityEvent}
901
+ */
902
+ const on_player_rotated_entity: EventId<OnPlayerRotatedEntityEvent>
903
+ /**
904
+ * Event type: {@link OnMarkedForDeconstructionEvent}
905
+ *
906
+ * Event filter: {@link LuaEntityMarkedForDeconstructionEventFilter}
907
+ */
908
+ const on_marked_for_deconstruction: EventId<
909
+ OnMarkedForDeconstructionEvent,
910
+ LuaEntityMarkedForDeconstructionEventFilter
911
+ >
912
+ /**
913
+ * Event type: {@link OnCancelledDeconstructionEvent}
914
+ *
915
+ * Event filter: {@link LuaEntityDeconstructionCancelledEventFilter}
916
+ */
917
+ const on_cancelled_deconstruction: EventId<
918
+ OnCancelledDeconstructionEvent,
919
+ LuaEntityDeconstructionCancelledEventFilter
920
+ >
921
+ /**
922
+ * Event type: {@link OnTriggerCreatedEntityEvent}
923
+ */
924
+ const on_trigger_created_entity: EventId<OnTriggerCreatedEntityEvent>
925
+ /**
926
+ * Event type: {@link OnTriggerFiredArtilleryEvent}
927
+ */
928
+ const on_trigger_fired_artillery: EventId<OnTriggerFiredArtilleryEvent>
929
+ /**
930
+ * Event type: {@link OnTrainChangedStateEvent}
931
+ */
932
+ const on_train_changed_state: EventId<OnTrainChangedStateEvent>
933
+ /**
934
+ * Event type: {@link OnPlayerCreatedEvent}
935
+ */
936
+ const on_player_created: EventId<OnPlayerCreatedEvent>
937
+ /**
938
+ * Event type: {@link OnResourceDepletedEvent}
939
+ */
940
+ const on_resource_depleted: EventId<OnResourceDepletedEvent>
941
+ /**
942
+ * Event type: {@link OnPlayerDrivingChangedStateEvent}
943
+ */
944
+ const on_player_driving_changed_state: EventId<OnPlayerDrivingChangedStateEvent>
945
+ /**
946
+ * Event type: {@link OnForceCreatedEvent}
947
+ */
948
+ const on_force_created: EventId<OnForceCreatedEvent>
949
+ /**
950
+ * Event type: {@link OnForcesMergingEvent}
951
+ */
952
+ const on_forces_merging: EventId<OnForcesMergingEvent>
953
+ /**
954
+ * Event type: {@link OnPlayerCursorStackChangedEvent}
955
+ */
956
+ const on_player_cursor_stack_changed: EventId<OnPlayerCursorStackChangedEvent>
957
+ /**
958
+ * Event type: {@link OnPreEntitySettingsPastedEvent}
959
+ */
960
+ const on_pre_entity_settings_pasted: EventId<OnPreEntitySettingsPastedEvent>
961
+ /**
962
+ * Event type: {@link OnEntitySettingsPastedEvent}
963
+ */
964
+ const on_entity_settings_pasted: EventId<OnEntitySettingsPastedEvent>
965
+ /**
966
+ * Event type: {@link OnPlayerMainInventoryChangedEvent}
967
+ */
968
+ const on_player_main_inventory_changed: EventId<OnPlayerMainInventoryChangedEvent>
969
+ /**
970
+ * Event type: {@link OnPlayerArmorInventoryChangedEvent}
971
+ */
972
+ const on_player_armor_inventory_changed: EventId<OnPlayerArmorInventoryChangedEvent>
973
+ /**
974
+ * Event type: {@link OnPlayerAmmoInventoryChangedEvent}
975
+ */
976
+ const on_player_ammo_inventory_changed: EventId<OnPlayerAmmoInventoryChangedEvent>
977
+ /**
978
+ * Event type: {@link OnPlayerGunInventoryChangedEvent}
979
+ */
980
+ const on_player_gun_inventory_changed: EventId<OnPlayerGunInventoryChangedEvent>
981
+ /**
982
+ * Event type: {@link OnPlayerPlacedEquipmentEvent}
983
+ */
984
+ const on_player_placed_equipment: EventId<OnPlayerPlacedEquipmentEvent>
985
+ /**
986
+ * Event type: {@link OnPlayerRemovedEquipmentEvent}
987
+ */
988
+ const on_player_removed_equipment: EventId<OnPlayerRemovedEquipmentEvent>
989
+ /**
990
+ * Event type: {@link OnPrePlayerDiedEvent}
991
+ */
992
+ const on_pre_player_died: EventId<OnPrePlayerDiedEvent>
993
+ /**
994
+ * Event type: {@link OnPlayerDiedEvent}
995
+ */
996
+ const on_player_died: EventId<OnPlayerDiedEvent>
997
+ /**
998
+ * Event type: {@link OnPlayerRespawnedEvent}
999
+ */
1000
+ const on_player_respawned: EventId<OnPlayerRespawnedEvent>
1001
+ /**
1002
+ * Event type: {@link OnPlayerJoinedGameEvent}
1003
+ */
1004
+ const on_player_joined_game: EventId<OnPlayerJoinedGameEvent>
1005
+ /**
1006
+ * Event type: {@link OnPlayerLeftGameEvent}
1007
+ */
1008
+ const on_player_left_game: EventId<OnPlayerLeftGameEvent>
1009
+ /**
1010
+ * Event type: {@link OnPlayerBuiltTileEvent}
1011
+ */
1012
+ const on_player_built_tile: EventId<OnPlayerBuiltTileEvent>
1013
+ /**
1014
+ * Event type: {@link OnPlayerMinedTileEvent}
1015
+ */
1016
+ const on_player_mined_tile: EventId<OnPlayerMinedTileEvent>
1017
+ /**
1018
+ * Event type: {@link OnRobotBuiltTileEvent}
1019
+ */
1020
+ const on_robot_built_tile: EventId<OnRobotBuiltTileEvent>
1021
+ /**
1022
+ * Event type: {@link OnRobotMinedTileEvent}
1023
+ */
1024
+ const on_robot_mined_tile: EventId<OnRobotMinedTileEvent>
1025
+ /**
1026
+ * Event type: {@link OnPlayerSelectedAreaEvent}
1027
+ */
1028
+ const on_player_selected_area: EventId<OnPlayerSelectedAreaEvent>
1029
+ /**
1030
+ * Event type: {@link OnPlayerAltSelectedAreaEvent}
1031
+ */
1032
+ const on_player_alt_selected_area: EventId<OnPlayerAltSelectedAreaEvent>
1033
+ /**
1034
+ * Event type: {@link OnPlayerChangedSurfaceEvent}
1035
+ */
1036
+ const on_player_changed_surface: EventId<OnPlayerChangedSurfaceEvent>
1037
+ /**
1038
+ * Event type: {@link OnSelectedEntityChangedEvent}
1039
+ */
1040
+ const on_selected_entity_changed: EventId<OnSelectedEntityChangedEvent>
1041
+ /**
1042
+ * Event type: {@link OnMarketItemPurchasedEvent}
1043
+ */
1044
+ const on_market_item_purchased: EventId<OnMarketItemPurchasedEvent>
1045
+ /**
1046
+ * Event type: {@link OnPlayerDroppedItemEvent}
1047
+ */
1048
+ const on_player_dropped_item: EventId<OnPlayerDroppedItemEvent>
1049
+ /**
1050
+ * Event type: {@link OnBiterBaseBuiltEvent}
1051
+ */
1052
+ const on_biter_base_built: EventId<OnBiterBaseBuiltEvent>
1053
+ /**
1054
+ * Event type: {@link OnPlayerChangedForceEvent}
1055
+ */
1056
+ const on_player_changed_force: EventId<OnPlayerChangedForceEvent>
1057
+ /**
1058
+ * Event type: {@link OnEntityRenamedEvent}
1059
+ */
1060
+ const on_entity_renamed: EventId<OnEntityRenamedEvent>
1061
+ /**
1062
+ * Event type: {@link OnGuiSelectionStateChangedEvent}
1063
+ */
1064
+ const on_gui_selection_state_changed: EventId<OnGuiSelectionStateChangedEvent>
1065
+ /**
1066
+ * Event type: {@link OnRuntimeModSettingChangedEvent}
1067
+ */
1068
+ const on_runtime_mod_setting_changed: EventId<OnRuntimeModSettingChangedEvent>
1069
+ /**
1070
+ * Event type: {@link OnDifficultySettingsChangedEvent}
1071
+ */
1072
+ const on_difficulty_settings_changed: EventId<OnDifficultySettingsChangedEvent>
1073
+ /**
1074
+ * Event type: {@link OnSurfaceCreatedEvent}
1075
+ */
1076
+ const on_surface_created: EventId<OnSurfaceCreatedEvent>
1077
+ /**
1078
+ * Event type: {@link OnSurfaceDeletedEvent}
1079
+ */
1080
+ const on_surface_deleted: EventId<OnSurfaceDeletedEvent>
1081
+ /**
1082
+ * Event type: {@link OnPreSurfaceDeletedEvent}
1083
+ */
1084
+ const on_pre_surface_deleted: EventId<OnPreSurfaceDeletedEvent>
1085
+ /**
1086
+ * Event type: {@link OnPlayerMinedEntityEvent}
1087
+ *
1088
+ * Event filter: {@link LuaPlayerMinedEntityEventFilter}
1089
+ */
1090
+ const on_player_mined_entity: EventId<OnPlayerMinedEntityEvent, LuaPlayerMinedEntityEventFilter>
1091
+ /**
1092
+ * Event type: {@link OnRobotMinedEntityEvent}
1093
+ *
1094
+ * Event filter: {@link LuaRobotMinedEntityEventFilter}
1095
+ */
1096
+ const on_robot_mined_entity: EventId<OnRobotMinedEntityEvent, LuaRobotMinedEntityEventFilter>
1097
+ /**
1098
+ * Event type: {@link OnTrainCreatedEvent}
1099
+ */
1100
+ const on_train_created: EventId<OnTrainCreatedEvent>
1101
+ /**
1102
+ * Event type: {@link OnGuiElemChangedEvent}
1103
+ */
1104
+ const on_gui_elem_changed: EventId<OnGuiElemChangedEvent>
1105
+ /**
1106
+ * Event type: {@link OnPlayerSetupBlueprintEvent}
1107
+ */
1108
+ const on_player_setup_blueprint: EventId<OnPlayerSetupBlueprintEvent>
1109
+ /**
1110
+ * Event type: {@link OnPlayerDeconstructedAreaEvent}
1111
+ */
1112
+ const on_player_deconstructed_area: EventId<OnPlayerDeconstructedAreaEvent>
1113
+ /**
1114
+ * Event type: {@link OnPlayerConfiguredBlueprintEvent}
1115
+ */
1116
+ const on_player_configured_blueprint: EventId<OnPlayerConfiguredBlueprintEvent>
1117
+ /**
1118
+ * Event type: {@link OnConsoleChatEvent}
1119
+ */
1120
+ const on_console_chat: EventId<OnConsoleChatEvent>
1121
+ /**
1122
+ * Event type: {@link OnConsoleCommandEvent}
1123
+ */
1124
+ const on_console_command: EventId<OnConsoleCommandEvent>
1125
+ /**
1126
+ * Event type: {@link OnPlayerRemovedEvent}
1127
+ */
1128
+ const on_player_removed: EventId<OnPlayerRemovedEvent>
1129
+ /**
1130
+ * Event type: {@link OnPrePlayerRemovedEvent}
1131
+ */
1132
+ const on_pre_player_removed: EventId<OnPrePlayerRemovedEvent>
1133
+ /**
1134
+ * Event type: {@link OnPlayerUsedCapsuleEvent}
1135
+ */
1136
+ const on_player_used_capsule: EventId<OnPlayerUsedCapsuleEvent>
1137
+ /**
1138
+ * Event type: {@link ScriptRaisedBuiltEvent}
1139
+ *
1140
+ * Event filter: {@link LuaScriptRaisedBuiltEventFilter}
1141
+ */
1142
+ const script_raised_built: EventId<ScriptRaisedBuiltEvent, LuaScriptRaisedBuiltEventFilter>
1143
+ /**
1144
+ * Event type: {@link ScriptRaisedDestroyEvent}
1145
+ *
1146
+ * Event filter: {@link LuaScriptRaisedDestroyEventFilter}
1147
+ */
1148
+ const script_raised_destroy: EventId<ScriptRaisedDestroyEvent, LuaScriptRaisedDestroyEventFilter>
1149
+ /**
1150
+ * Event type: {@link ScriptRaisedReviveEvent}
1151
+ *
1152
+ * Event filter: {@link LuaScriptRaisedReviveEventFilter}
1153
+ */
1154
+ const script_raised_revive: EventId<ScriptRaisedReviveEvent, LuaScriptRaisedReviveEventFilter>
1155
+ /**
1156
+ * Event type: {@link ScriptRaisedTeleportedEvent}
1157
+ *
1158
+ * Event filter: {@link LuaScriptRaisedTeleportedEventFilter}
1159
+ */
1160
+ const script_raised_teleported: EventId<ScriptRaisedTeleportedEvent, LuaScriptRaisedTeleportedEventFilter>
1161
+ /**
1162
+ * Event type: {@link ScriptRaisedSetTilesEvent}
1163
+ */
1164
+ const script_raised_set_tiles: EventId<ScriptRaisedSetTilesEvent>
1165
+ /**
1166
+ * Event type: {@link OnPlayerPromotedEvent}
1167
+ */
1168
+ const on_player_promoted: EventId<OnPlayerPromotedEvent>
1169
+ /**
1170
+ * Event type: {@link OnPlayerDemotedEvent}
1171
+ */
1172
+ const on_player_demoted: EventId<OnPlayerDemotedEvent>
1173
+ /**
1174
+ * Event type: {@link OnCombatRobotExpiredEvent}
1175
+ */
1176
+ const on_combat_robot_expired: EventId<OnCombatRobotExpiredEvent>
1177
+ /**
1178
+ * Event type: {@link OnWorkerRobotExpiredEvent}
1179
+ */
1180
+ const on_worker_robot_expired: EventId<OnWorkerRobotExpiredEvent>
1181
+ /**
1182
+ * Event type: {@link OnPlayerChangedPositionEvent}
1183
+ */
1184
+ const on_player_changed_position: EventId<OnPlayerChangedPositionEvent>
1185
+ /**
1186
+ * Event type: {@link OnModItemOpenedEvent}
1187
+ */
1188
+ const on_mod_item_opened: EventId<OnModItemOpenedEvent>
1189
+ /**
1190
+ * Event type: {@link OnGuiOpenedEvent}
1191
+ */
1192
+ const on_gui_opened: EventId<OnGuiOpenedEvent>
1193
+ /**
1194
+ * Event type: {@link OnGuiClosedEvent}
1195
+ */
1196
+ const on_gui_closed: EventId<OnGuiClosedEvent>
1197
+ /**
1198
+ * Event type: {@link OnGuiValueChangedEvent}
1199
+ */
1200
+ const on_gui_value_changed: EventId<OnGuiValueChangedEvent>
1201
+ /**
1202
+ * Event type: {@link OnPlayerMutedEvent}
1203
+ */
1204
+ const on_player_muted: EventId<OnPlayerMutedEvent>
1205
+ /**
1206
+ * Event type: {@link OnPlayerUnmutedEvent}
1207
+ */
1208
+ const on_player_unmuted: EventId<OnPlayerUnmutedEvent>
1209
+ /**
1210
+ * Event type: {@link OnPlayerCheatModeEnabledEvent}
1211
+ */
1212
+ const on_player_cheat_mode_enabled: EventId<OnPlayerCheatModeEnabledEvent>
1213
+ /**
1214
+ * Event type: {@link OnPlayerCheatModeDisabledEvent}
1215
+ */
1216
+ const on_player_cheat_mode_disabled: EventId<OnPlayerCheatModeDisabledEvent>
1217
+ /**
1218
+ * Event type: {@link OnCharacterCorpseExpiredEvent}
1219
+ */
1220
+ const on_character_corpse_expired: EventId<OnCharacterCorpseExpiredEvent>
1221
+ /**
1222
+ * Event type: {@link OnPreGhostDeconstructedEvent}
1223
+ *
1224
+ * Event filter: {@link LuaPreGhostDeconstructedEventFilter}
1225
+ */
1226
+ const on_pre_ghost_deconstructed: EventId<OnPreGhostDeconstructedEvent, LuaPreGhostDeconstructedEventFilter>
1227
+ /**
1228
+ * Event type: {@link OnPreGhostUpgradedEvent}
1229
+ *
1230
+ * Event filter: {@link LuaPreGhostUpgradedEventFilter}
1231
+ */
1232
+ const on_pre_ghost_upgraded: EventId<OnPreGhostUpgradedEvent, LuaPreGhostUpgradedEventFilter>
1233
+ /**
1234
+ * Event type: {@link OnPlayerPipetteEvent}
1235
+ */
1236
+ const on_player_pipette: EventId<OnPlayerPipetteEvent>
1237
+ /**
1238
+ * Event type: {@link OnPlayerDisplayResolutionChangedEvent}
1239
+ */
1240
+ const on_player_display_resolution_changed: EventId<OnPlayerDisplayResolutionChangedEvent>
1241
+ /**
1242
+ * Event type: {@link OnPlayerDisplayScaleChangedEvent}
1243
+ */
1244
+ const on_player_display_scale_changed: EventId<OnPlayerDisplayScaleChangedEvent>
1245
+ /**
1246
+ * Event type: {@link OnPrePlayerCraftedItemEvent}
1247
+ */
1248
+ const on_pre_player_crafted_item: EventId<OnPrePlayerCraftedItemEvent>
1249
+ /**
1250
+ * Event type: {@link OnPlayerCancelledCraftingEvent}
1251
+ */
1252
+ const on_player_cancelled_crafting: EventId<OnPlayerCancelledCraftingEvent>
1253
+ /**
1254
+ * Event type: {@link OnChunkChartedEvent}
1255
+ */
1256
+ const on_chunk_charted: EventId<OnChunkChartedEvent>
1257
+ /**
1258
+ * Event type: {@link OnTechnologyEffectsResetEvent}
1259
+ */
1260
+ const on_technology_effects_reset: EventId<OnTechnologyEffectsResetEvent>
1261
+ /**
1262
+ * Event type: {@link OnForceResetEvent}
1263
+ */
1264
+ const on_force_reset: EventId<OnForceResetEvent>
1265
+ /**
1266
+ * Event type: {@link OnLandMineArmedEvent}
1267
+ */
1268
+ const on_land_mine_armed: EventId<OnLandMineArmedEvent>
1269
+ /**
1270
+ * Event type: {@link OnForcesMergedEvent}
1271
+ */
1272
+ const on_forces_merged: EventId<OnForcesMergedEvent>
1273
+ /**
1274
+ * Event type: {@link OnPlayerTrashInventoryChangedEvent}
1275
+ */
1276
+ const on_player_trash_inventory_changed: EventId<OnPlayerTrashInventoryChangedEvent>
1277
+ /**
1278
+ * Event type: {@link OnPrePlayerLeftGameEvent}
1279
+ */
1280
+ const on_pre_player_left_game: EventId<OnPrePlayerLeftGameEvent>
1281
+ /**
1282
+ * Event type: {@link OnPreSurfaceClearedEvent}
1283
+ */
1284
+ const on_pre_surface_cleared: EventId<OnPreSurfaceClearedEvent>
1285
+ /**
1286
+ * Event type: {@link OnSurfaceClearedEvent}
1287
+ */
1288
+ const on_surface_cleared: EventId<OnSurfaceClearedEvent>
1289
+ /**
1290
+ * Event type: {@link OnChunkDeletedEvent}
1291
+ */
1292
+ const on_chunk_deleted: EventId<OnChunkDeletedEvent>
1293
+ /**
1294
+ * Event type: {@link OnPreChunkDeletedEvent}
1295
+ */
1296
+ const on_pre_chunk_deleted: EventId<OnPreChunkDeletedEvent>
1297
+ /**
1298
+ * Event type: {@link OnTrainScheduleChangedEvent}
1299
+ */
1300
+ const on_train_schedule_changed: EventId<OnTrainScheduleChangedEvent>
1301
+ /**
1302
+ * Event type: {@link OnPlayerBannedEvent}
1303
+ */
1304
+ const on_player_banned: EventId<OnPlayerBannedEvent>
1305
+ /**
1306
+ * Event type: {@link OnPlayerKickedEvent}
1307
+ */
1308
+ const on_player_kicked: EventId<OnPlayerKickedEvent>
1309
+ /**
1310
+ * Event type: {@link OnPlayerUnbannedEvent}
1311
+ */
1312
+ const on_player_unbanned: EventId<OnPlayerUnbannedEvent>
1313
+ /**
1314
+ * Event type: {@link OnRocketLaunchOrderedEvent}
1315
+ */
1316
+ const on_rocket_launch_ordered: EventId<OnRocketLaunchOrderedEvent>
1317
+ /**
1318
+ * Event type: {@link OnScriptPathRequestFinishedEvent}
1319
+ */
1320
+ const on_script_path_request_finished: EventId<OnScriptPathRequestFinishedEvent>
1321
+ /**
1322
+ * Event type: {@link OnAiCommandCompletedEvent}
1323
+ */
1324
+ const on_ai_command_completed: EventId<OnAiCommandCompletedEvent>
1325
+ /**
1326
+ * Event type: {@link OnMarkedForUpgradeEvent}
1327
+ *
1328
+ * Event filter: {@link LuaEntityMarkedForUpgradeEventFilter}
1329
+ */
1330
+ const on_marked_for_upgrade: EventId<OnMarkedForUpgradeEvent, LuaEntityMarkedForUpgradeEventFilter>
1331
+ /**
1332
+ * Event type: {@link OnCancelledUpgradeEvent}
1333
+ *
1334
+ * Event filter: {@link LuaUpgradeCancelledEventFilter}
1335
+ */
1336
+ const on_cancelled_upgrade: EventId<OnCancelledUpgradeEvent, LuaUpgradeCancelledEventFilter>
1337
+ /**
1338
+ * Event type: {@link OnPlayerToggledMapEditorEvent}
1339
+ */
1340
+ const on_player_toggled_map_editor: EventId<OnPlayerToggledMapEditorEvent>
1341
+ /**
1342
+ * Event type: {@link OnEntityClonedEvent}
1343
+ *
1344
+ * Event filter: {@link LuaEntityClonedEventFilter}
1345
+ */
1346
+ const on_entity_cloned: EventId<OnEntityClonedEvent, LuaEntityClonedEventFilter>
1347
+ /**
1348
+ * Event type: {@link OnAreaClonedEvent}
1349
+ */
1350
+ const on_area_cloned: EventId<OnAreaClonedEvent>
1351
+ /**
1352
+ * Event type: {@link OnBrushClonedEvent}
1353
+ */
1354
+ const on_brush_cloned: EventId<OnBrushClonedEvent>
1355
+ /**
1356
+ * Event type: {@link OnGameCreatedFromScenarioEvent}
1357
+ */
1358
+ const on_game_created_from_scenario: EventId<OnGameCreatedFromScenarioEvent>
1359
+ /**
1360
+ * Event type: {@link OnSurfaceImportedEvent}
1361
+ */
1362
+ const on_surface_imported: EventId<OnSurfaceImportedEvent>
1363
+ /**
1364
+ * Event type: {@link OnSurfaceRenamedEvent}
1365
+ */
1366
+ const on_surface_renamed: EventId<OnSurfaceRenamedEvent>
1367
+ /**
1368
+ * Event type: {@link OnPlayerToggledAltModeEvent}
1369
+ */
1370
+ const on_player_toggled_alt_mode: EventId<OnPlayerToggledAltModeEvent>
1371
+ /**
1372
+ * Event type: {@link OnPlayerRepairedEntityEvent}
1373
+ *
1374
+ * Event filter: {@link LuaPlayerRepairedEntityEventFilter}
1375
+ */
1376
+ const on_player_repaired_entity: EventId<OnPlayerRepairedEntityEvent, LuaPlayerRepairedEntityEventFilter>
1377
+ /**
1378
+ * Event type: {@link OnPlayerFastTransferredEvent}
1379
+ */
1380
+ const on_player_fast_transferred: EventId<OnPlayerFastTransferredEvent>
1381
+ /**
1382
+ * Event type: {@link OnPreRobotExplodedCliffEvent}
1383
+ */
1384
+ const on_pre_robot_exploded_cliff: EventId<OnPreRobotExplodedCliffEvent>
1385
+ /**
1386
+ * Event type: {@link OnRobotExplodedCliffEvent}
1387
+ */
1388
+ const on_robot_exploded_cliff: EventId<OnRobotExplodedCliffEvent>
1389
+ /**
1390
+ * Event type: {@link OnEntitySpawnedEvent}
1391
+ */
1392
+ const on_entity_spawned: EventId<OnEntitySpawnedEvent>
1393
+ /**
1394
+ * Event type: {@link OnCutsceneWaypointReachedEvent}
1395
+ */
1396
+ const on_cutscene_waypoint_reached: EventId<OnCutsceneWaypointReachedEvent>
1397
+ /**
1398
+ * Event type: {@link OnUnitGroupCreatedEvent}
1399
+ */
1400
+ const on_unit_group_created: EventId<OnUnitGroupCreatedEvent>
1401
+ /**
1402
+ * Event type: {@link OnUnitAddedToGroupEvent}
1403
+ */
1404
+ const on_unit_added_to_group: EventId<OnUnitAddedToGroupEvent>
1405
+ /**
1406
+ * Event type: {@link OnUnitRemovedFromGroupEvent}
1407
+ */
1408
+ const on_unit_removed_from_group: EventId<OnUnitRemovedFromGroupEvent>
1409
+ /**
1410
+ * Event type: {@link OnUnitGroupFinishedGatheringEvent}
1411
+ */
1412
+ const on_unit_group_finished_gathering: EventId<OnUnitGroupFinishedGatheringEvent>
1413
+ /**
1414
+ * Event type: {@link OnBuildBaseArrivedEvent}
1415
+ */
1416
+ const on_build_base_arrived: EventId<OnBuildBaseArrivedEvent>
1417
+ /**
1418
+ * Event type: {@link OnChartTagAddedEvent}
1419
+ */
1420
+ const on_chart_tag_added: EventId<OnChartTagAddedEvent>
1421
+ /**
1422
+ * Event type: {@link OnChartTagModifiedEvent}
1423
+ */
1424
+ const on_chart_tag_modified: EventId<OnChartTagModifiedEvent>
1425
+ /**
1426
+ * Event type: {@link OnChartTagRemovedEvent}
1427
+ */
1428
+ const on_chart_tag_removed: EventId<OnChartTagRemovedEvent>
1429
+ /**
1430
+ * Event type: {@link OnLuaShortcutEvent}
1431
+ */
1432
+ const on_lua_shortcut: EventId<OnLuaShortcutEvent>
1433
+ /**
1434
+ * Event type: {@link OnGuiLocationChangedEvent}
1435
+ */
1436
+ const on_gui_location_changed: EventId<OnGuiLocationChangedEvent>
1437
+ /**
1438
+ * Event type: {@link OnGuiSelectedTabChangedEvent}
1439
+ */
1440
+ const on_gui_selected_tab_changed: EventId<OnGuiSelectedTabChangedEvent>
1441
+ /**
1442
+ * Event type: {@link OnGuiSwitchStateChangedEvent}
1443
+ */
1444
+ const on_gui_switch_state_changed: EventId<OnGuiSwitchStateChangedEvent>
1445
+ /**
1446
+ * Event type: {@link OnForceCeaseFireChangedEvent}
1447
+ */
1448
+ const on_force_cease_fire_changed: EventId<OnForceCeaseFireChangedEvent>
1449
+ /**
1450
+ * Event type: {@link OnForceFriendsChangedEvent}
1451
+ */
1452
+ const on_force_friends_changed: EventId<OnForceFriendsChangedEvent>
1453
+ /**
1454
+ * Event type: {@link OnStringTranslatedEvent}
1455
+ */
1456
+ const on_string_translated: EventId<OnStringTranslatedEvent>
1457
+ /**
1458
+ * Event type: {@link OnScriptTriggerEffectEvent}
1459
+ */
1460
+ const on_script_trigger_effect: EventId<OnScriptTriggerEffectEvent>
1461
+ /**
1462
+ * Event type: {@link OnPlayerSetQuickBarSlotEvent}
1463
+ */
1464
+ const on_player_set_quick_bar_slot: EventId<OnPlayerSetQuickBarSlotEvent>
1465
+ /**
1466
+ * Event type: {@link OnPrePlayerToggledMapEditorEvent}
1467
+ */
1468
+ const on_pre_player_toggled_map_editor: EventId<OnPrePlayerToggledMapEditorEvent>
1469
+ /**
1470
+ * Event type: {@link OnPreScriptInventoryResizedEvent}
1471
+ */
1472
+ const on_pre_script_inventory_resized: EventId<OnPreScriptInventoryResizedEvent>
1473
+ /**
1474
+ * Event type: {@link OnScriptInventoryResizedEvent}
1475
+ */
1476
+ const on_script_inventory_resized: EventId<OnScriptInventoryResizedEvent>
1477
+ /**
1478
+ * Event type: {@link OnEntityDestroyedEvent}
1479
+ */
1480
+ const on_entity_destroyed: EventId<OnEntityDestroyedEvent>
1481
+ /**
1482
+ * Event type: {@link OnPlayerClickedGpsTagEvent}
1483
+ */
1484
+ const on_player_clicked_gps_tag: EventId<OnPlayerClickedGpsTagEvent>
1485
+ /**
1486
+ * Event type: {@link OnPlayerFlushedFluidEvent}
1487
+ */
1488
+ const on_player_flushed_fluid: EventId<OnPlayerFlushedFluidEvent>
1489
+ /**
1490
+ * Event type: {@link OnPermissionGroupEditedEvent}
1491
+ */
1492
+ const on_permission_group_edited: EventId<OnPermissionGroupEditedEvent>
1493
+ /**
1494
+ * Event type: {@link OnPrePermissionStringImportedEvent}
1495
+ */
1496
+ const on_pre_permission_string_imported: EventId<OnPrePermissionStringImportedEvent>
1497
+ /**
1498
+ * Event type: {@link OnPermissionStringImportedEvent}
1499
+ */
1500
+ const on_permission_string_imported: EventId<OnPermissionStringImportedEvent>
1501
+ /**
1502
+ * Event type: {@link OnPrePermissionGroupDeletedEvent}
1503
+ */
1504
+ const on_pre_permission_group_deleted: EventId<OnPrePermissionGroupDeletedEvent>
1505
+ /**
1506
+ * Event type: {@link OnPermissionGroupDeletedEvent}
1507
+ */
1508
+ const on_permission_group_deleted: EventId<OnPermissionGroupDeletedEvent>
1509
+ /**
1510
+ * Event type: {@link OnPermissionGroupAddedEvent}
1511
+ */
1512
+ const on_permission_group_added: EventId<OnPermissionGroupAddedEvent>
1513
+ /**
1514
+ * Event type: {@link OnCutsceneCancelledEvent}
1515
+ */
1516
+ const on_cutscene_cancelled: EventId<OnCutsceneCancelledEvent>
1517
+ /**
1518
+ * Event type: {@link OnPlayerConfiguredSpiderRemoteEvent}
1519
+ */
1520
+ const on_player_configured_spider_remote: EventId<OnPlayerConfiguredSpiderRemoteEvent>
1521
+ /**
1522
+ * Event type: {@link OnPlayerUsedSpiderRemoteEvent}
1523
+ */
1524
+ const on_player_used_spider_remote: EventId<OnPlayerUsedSpiderRemoteEvent>
1525
+ /**
1526
+ * Event type: {@link OnSpiderCommandCompletedEvent}
1527
+ */
1528
+ const on_spider_command_completed: EventId<OnSpiderCommandCompletedEvent>
1529
+ /**
1530
+ * Event type: {@link OnEntityLogisticSlotChangedEvent}
1531
+ */
1532
+ const on_entity_logistic_slot_changed: EventId<OnEntityLogisticSlotChangedEvent>
1533
+ /**
1534
+ * Event type: {@link OnEquipmentInsertedEvent}
1535
+ */
1536
+ const on_equipment_inserted: EventId<OnEquipmentInsertedEvent>
1537
+ /**
1538
+ * Event type: {@link OnEquipmentRemovedEvent}
1539
+ */
1540
+ const on_equipment_removed: EventId<OnEquipmentRemovedEvent>
1541
+ /**
1542
+ * Event type: {@link OnPlayerReverseSelectedAreaEvent}
1543
+ */
1544
+ const on_player_reverse_selected_area: EventId<OnPlayerReverseSelectedAreaEvent>
1545
+ /**
1546
+ * Event type: {@link OnPlayerAltReverseSelectedAreaEvent}
1547
+ */
1548
+ const on_player_alt_reverse_selected_area: EventId<OnPlayerAltReverseSelectedAreaEvent>
1549
+ /**
1550
+ * Event type: {@link OnGuiHoverEvent}
1551
+ */
1552
+ const on_gui_hover: EventId<OnGuiHoverEvent>
1553
+ /**
1554
+ * Event type: {@link OnGuiLeaveEvent}
1555
+ */
1556
+ const on_gui_leave: EventId<OnGuiLeaveEvent>
1557
+ /**
1558
+ * Event type: {@link OnEntityColorChangedEvent}
1559
+ */
1560
+ const on_entity_color_changed: EventId<OnEntityColorChangedEvent>
1561
+ /**
1562
+ * Event type: {@link OnCutsceneStartedEvent}
1563
+ */
1564
+ const on_cutscene_started: EventId<OnCutsceneStartedEvent>
1565
+ /**
1566
+ * Event type: {@link OnCutsceneFinishedEvent}
1567
+ */
1568
+ const on_cutscene_finished: EventId<OnCutsceneFinishedEvent>
1569
+ /**
1570
+ * Event type: {@link OnPlayerInputMethodChangedEvent}
1571
+ */
1572
+ const on_player_input_method_changed: EventId<OnPlayerInputMethodChangedEvent>
1573
+ }
1382
1574
  /**
1383
- * Hover according to the element type and implementation.
1384
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.game_controller_interaction.never Online documentation}
1385
- */
1386
- never,
1575
+ * See the {@linkplain https://lua-api.factorio.com/1.1.89/events.html events page} for more info on what events contain and when they get raised.
1576
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.events Online documentation}
1577
+ */
1578
+ type events = (typeof events)[keyof typeof events]
1579
+ enum flow_precision_index {
1580
+ five_seconds,
1581
+ one_minute,
1582
+ ten_minutes,
1583
+ one_hour,
1584
+ ten_hours,
1585
+ fifty_hours,
1586
+ two_hundred_fifty_hours,
1587
+ one_thousand_hours,
1588
+ }
1589
+ enum game_controller_interaction {
1590
+ /**
1591
+ * Game controller will always hover this element regardless of type or state.
1592
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.game_controller_interaction.always Online documentation}
1593
+ */
1594
+ always,
1595
+ /**
1596
+ * Hover according to the element type and implementation.
1597
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.game_controller_interaction.never Online documentation}
1598
+ */
1599
+ never,
1600
+ /**
1601
+ * Never hover this element with a game controller.
1602
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.game_controller_interaction.normal Online documentation}
1603
+ */
1604
+ normal,
1605
+ }
1606
+ enum group_state {
1607
+ gathering,
1608
+ moving,
1609
+ attacking_distraction,
1610
+ attacking_target,
1611
+ finished,
1612
+ pathfinding,
1613
+ wander_in_group,
1614
+ }
1615
+ enum gui_type {
1616
+ none,
1617
+ entity,
1618
+ research,
1619
+ controller,
1620
+ production,
1621
+ item,
1622
+ bonus,
1623
+ trains,
1624
+ achievement,
1625
+ blueprint_library,
1626
+ equipment,
1627
+ logistic,
1628
+ other_player,
1629
+ permissions,
1630
+ tutorials,
1631
+ custom,
1632
+ server_management,
1633
+ player_management,
1634
+ tile,
1635
+ script_inventory,
1636
+ }
1637
+ enum input_action {
1638
+ activate_copy,
1639
+ activate_cut,
1640
+ activate_paste,
1641
+ add_permission_group,
1642
+ add_train_station,
1643
+ admin_action,
1644
+ alt_reverse_select_area,
1645
+ alt_select_area,
1646
+ alt_select_blueprint_entities,
1647
+ alternative_copy,
1648
+ begin_mining,
1649
+ begin_mining_terrain,
1650
+ build,
1651
+ build_rail,
1652
+ build_terrain,
1653
+ cancel_craft,
1654
+ cancel_deconstruct,
1655
+ cancel_new_blueprint,
1656
+ cancel_research,
1657
+ cancel_upgrade,
1658
+ change_active_character_tab,
1659
+ change_active_item_group_for_crafting,
1660
+ change_active_item_group_for_filters,
1661
+ change_active_quick_bar,
1662
+ change_arithmetic_combinator_parameters,
1663
+ change_decider_combinator_parameters,
1664
+ change_entity_label,
1665
+ change_item_description,
1666
+ change_item_label,
1667
+ change_multiplayer_config,
1668
+ change_picking_state,
1669
+ change_programmable_speaker_alert_parameters,
1670
+ change_programmable_speaker_circuit_parameters,
1671
+ change_programmable_speaker_parameters,
1672
+ change_riding_state,
1673
+ change_shooting_state,
1674
+ change_train_stop_station,
1675
+ change_train_wait_condition,
1676
+ change_train_wait_condition_data,
1677
+ clear_cursor,
1678
+ connect_rolling_stock,
1679
+ copy,
1680
+ copy_entity_settings,
1681
+ copy_opened_blueprint,
1682
+ copy_opened_item,
1683
+ craft,
1684
+ cursor_split,
1685
+ cursor_transfer,
1686
+ custom_input,
1687
+ cycle_blueprint_book_backwards,
1688
+ cycle_blueprint_book_forwards,
1689
+ deconstruct,
1690
+ delete_blueprint_library,
1691
+ delete_blueprint_record,
1692
+ delete_custom_tag,
1693
+ delete_permission_group,
1694
+ destroy_item,
1695
+ destroy_opened_item,
1696
+ disconnect_rolling_stock,
1697
+ drag_train_schedule,
1698
+ drag_train_wait_condition,
1699
+ drop_blueprint_record,
1700
+ drop_item,
1701
+ edit_blueprint_tool_preview,
1702
+ edit_custom_tag,
1703
+ edit_permission_group,
1704
+ export_blueprint,
1705
+ fast_entity_split,
1706
+ fast_entity_transfer,
1707
+ flush_opened_entity_fluid,
1708
+ flush_opened_entity_specific_fluid,
1709
+ go_to_train_station,
1710
+ grab_blueprint_record,
1711
+ gui_checked_state_changed,
1712
+ gui_click,
1713
+ gui_confirmed,
1714
+ gui_elem_changed,
1715
+ gui_hover,
1716
+ gui_leave,
1717
+ gui_location_changed,
1718
+ gui_selected_tab_changed,
1719
+ gui_selection_state_changed,
1720
+ gui_switch_state_changed,
1721
+ gui_text_changed,
1722
+ gui_value_changed,
1723
+ import_blueprint,
1724
+ import_blueprint_string,
1725
+ import_blueprints_filtered,
1726
+ import_permissions_string,
1727
+ inventory_split,
1728
+ inventory_transfer,
1729
+ launch_rocket,
1730
+ lua_shortcut,
1731
+ map_editor_action,
1732
+ market_offer,
1733
+ mod_settings_changed,
1734
+ open_achievements_gui,
1735
+ open_blueprint_library_gui,
1736
+ open_blueprint_record,
1737
+ open_bonus_gui,
1738
+ open_character_gui,
1739
+ open_current_vehicle_gui,
1740
+ open_equipment,
1741
+ open_gui,
1742
+ open_item,
1743
+ open_logistic_gui,
1744
+ open_mod_item,
1745
+ open_parent_of_opened_item,
1746
+ open_production_gui,
1747
+ open_technology_gui,
1748
+ open_tips_and_tricks_gui,
1749
+ open_train_gui,
1750
+ open_train_station_gui,
1751
+ open_trains_gui,
1752
+ paste_entity_settings,
1753
+ place_equipment,
1754
+ quick_bar_pick_slot,
1755
+ quick_bar_set_selected_page,
1756
+ quick_bar_set_slot,
1757
+ reassign_blueprint,
1758
+ remove_cables,
1759
+ remove_train_station,
1760
+ reset_assembling_machine,
1761
+ reset_item,
1762
+ reverse_select_area,
1763
+ rotate_entity,
1764
+ select_area,
1765
+ select_blueprint_entities,
1766
+ select_entity_slot,
1767
+ select_item,
1768
+ select_mapper_slot,
1769
+ select_next_valid_gun,
1770
+ select_tile_slot,
1771
+ send_spidertron,
1772
+ set_auto_launch_rocket,
1773
+ set_autosort_inventory,
1774
+ set_behavior_mode,
1775
+ set_car_weapons_control,
1776
+ set_circuit_condition,
1777
+ set_circuit_mode_of_operation,
1778
+ set_controller_logistic_trash_filter_item,
1779
+ set_deconstruction_item_tile_selection_mode,
1780
+ set_deconstruction_item_trees_and_rocks_only,
1781
+ set_entity_color,
1782
+ set_entity_energy_property,
1783
+ set_entity_logistic_trash_filter_item,
1784
+ set_filter,
1785
+ set_flat_controller_gui,
1786
+ set_heat_interface_mode,
1787
+ set_heat_interface_temperature,
1788
+ set_infinity_container_filter_item,
1789
+ set_infinity_container_remove_unfiltered_items,
1790
+ set_infinity_pipe_filter,
1791
+ set_inserter_max_stack_size,
1792
+ set_inventory_bar,
1793
+ set_linked_container_link_i_d,
1794
+ set_logistic_filter_item,
1795
+ set_logistic_filter_signal,
1796
+ set_player_color,
1797
+ set_recipe_notifications,
1798
+ set_request_from_buffers,
1799
+ set_research_finished_stops_game,
1800
+ set_signal,
1801
+ set_splitter_priority,
1802
+ set_train_stopped,
1803
+ set_trains_limit,
1804
+ set_vehicle_automatic_targeting_parameters,
1805
+ setup_assembling_machine,
1806
+ setup_blueprint,
1807
+ setup_single_blueprint_record,
1808
+ smart_pipette,
1809
+ spawn_item,
1810
+ stack_split,
1811
+ stack_transfer,
1812
+ start_repair,
1813
+ start_research,
1814
+ start_walking,
1815
+ stop_building_by_moving,
1816
+ switch_connect_to_logistic_network,
1817
+ switch_constant_combinator_state,
1818
+ switch_inserter_filter_mode_state,
1819
+ switch_power_switch_state,
1820
+ switch_to_rename_stop_gui,
1821
+ take_equipment,
1822
+ toggle_deconstruction_item_entity_filter_mode,
1823
+ toggle_deconstruction_item_tile_filter_mode,
1824
+ toggle_driving,
1825
+ toggle_enable_vehicle_logistics_while_moving,
1826
+ toggle_entity_logistic_requests,
1827
+ toggle_equipment_movement_bonus,
1828
+ toggle_map_editor,
1829
+ toggle_personal_logistic_requests,
1830
+ toggle_personal_roboport,
1831
+ toggle_show_entity_info,
1832
+ translate_string,
1833
+ undo,
1834
+ upgrade,
1835
+ upgrade_opened_blueprint_by_item,
1836
+ upgrade_opened_blueprint_by_record,
1837
+ use_artillery_remote,
1838
+ use_item,
1839
+ wire_dragging,
1840
+ write_to_console,
1841
+ }
1842
+ enum input_method {
1843
+ keyboard_and_mouse,
1844
+ game_controller,
1845
+ }
1846
+ enum inventory {
1847
+ fuel,
1848
+ burnt_result,
1849
+ chest,
1850
+ furnace_source,
1851
+ furnace_result,
1852
+ furnace_modules,
1853
+ character_main,
1854
+ character_guns,
1855
+ character_ammo,
1856
+ character_armor,
1857
+ character_vehicle,
1858
+ character_trash,
1859
+ god_main,
1860
+ editor_main,
1861
+ editor_guns,
1862
+ editor_ammo,
1863
+ editor_armor,
1864
+ roboport_robot,
1865
+ roboport_material,
1866
+ robot_cargo,
1867
+ robot_repair,
1868
+ assembling_machine_input,
1869
+ assembling_machine_output,
1870
+ assembling_machine_modules,
1871
+ lab_input,
1872
+ lab_modules,
1873
+ mining_drill_modules,
1874
+ item_main,
1875
+ rocket_silo_rocket,
1876
+ rocket_silo_result,
1877
+ rocket_silo_input,
1878
+ rocket_silo_output,
1879
+ rocket_silo_modules,
1880
+ rocket,
1881
+ car_trunk,
1882
+ car_ammo,
1883
+ cargo_wagon,
1884
+ turret_ammo,
1885
+ beacon_modules,
1886
+ character_corpse,
1887
+ artillery_turret_ammo,
1888
+ artillery_wagon_ammo,
1889
+ spider_trunk,
1890
+ spider_ammo,
1891
+ spider_trash,
1892
+ }
1893
+ enum logistic_member_index {
1894
+ logistic_container,
1895
+ vehicle_storage,
1896
+ character_requester,
1897
+ character_storage,
1898
+ character_provider,
1899
+ generic_on_off_behavior,
1900
+ }
1901
+ enum logistic_mode {
1902
+ none,
1903
+ active_provider,
1904
+ storage,
1905
+ requester,
1906
+ passive_provider,
1907
+ buffer,
1908
+ }
1909
+ enum mouse_button_type {
1910
+ none,
1911
+ left,
1912
+ right,
1913
+ middle,
1914
+ }
1387
1915
  /**
1388
- * Never hover this element with a game controller.
1389
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.game_controller_interaction.normal Online documentation}
1916
+ * A dictionary mapping all top-level prototypes by name to a list of their associated subtypes. This list is organized as a lookup table, meaning it maps the sub-prototype names to `0`. As an example, `defines.prototypes['entity']` looks like this: `{furnace=0, inserter=0, container=0, ...}`.
1917
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.prototypes Online documentation}
1390
1918
  */
1391
- normal,
1392
- }
1393
- enum group_state {
1394
- gathering,
1395
- moving,
1396
- attacking_distraction,
1397
- attacking_target,
1398
- finished,
1399
- pathfinding,
1400
- wander_in_group,
1401
- }
1402
- enum gui_type {
1403
- none,
1404
- entity,
1405
- research,
1406
- controller,
1407
- production,
1408
- item,
1409
- bonus,
1410
- trains,
1411
- achievement,
1412
- blueprint_library,
1413
- equipment,
1414
- logistic,
1415
- other_player,
1416
- permissions,
1417
- tutorials,
1418
- custom,
1419
- server_management,
1420
- player_management,
1421
- tile,
1422
- script_inventory,
1423
- }
1424
- enum input_action {
1425
- activate_copy,
1426
- activate_cut,
1427
- activate_paste,
1428
- add_permission_group,
1429
- add_train_station,
1430
- admin_action,
1431
- alt_reverse_select_area,
1432
- alt_select_area,
1433
- alt_select_blueprint_entities,
1434
- alternative_copy,
1435
- begin_mining,
1436
- begin_mining_terrain,
1437
- build,
1438
- build_rail,
1439
- build_terrain,
1440
- cancel_craft,
1441
- cancel_deconstruct,
1442
- cancel_new_blueprint,
1443
- cancel_research,
1444
- cancel_upgrade,
1445
- change_active_character_tab,
1446
- change_active_item_group_for_crafting,
1447
- change_active_item_group_for_filters,
1448
- change_active_quick_bar,
1449
- change_arithmetic_combinator_parameters,
1450
- change_decider_combinator_parameters,
1451
- change_entity_label,
1452
- change_item_description,
1453
- change_item_label,
1454
- change_multiplayer_config,
1455
- change_picking_state,
1456
- change_programmable_speaker_alert_parameters,
1457
- change_programmable_speaker_circuit_parameters,
1458
- change_programmable_speaker_parameters,
1459
- change_riding_state,
1460
- change_shooting_state,
1461
- change_train_stop_station,
1462
- change_train_wait_condition,
1463
- change_train_wait_condition_data,
1464
- clear_cursor,
1465
- connect_rolling_stock,
1466
- copy,
1467
- copy_entity_settings,
1468
- copy_opened_blueprint,
1469
- copy_opened_item,
1470
- craft,
1471
- cursor_split,
1472
- cursor_transfer,
1473
- custom_input,
1474
- cycle_blueprint_book_backwards,
1475
- cycle_blueprint_book_forwards,
1476
- deconstruct,
1477
- delete_blueprint_library,
1478
- delete_blueprint_record,
1479
- delete_custom_tag,
1480
- delete_permission_group,
1481
- destroy_item,
1482
- destroy_opened_item,
1483
- disconnect_rolling_stock,
1484
- drag_train_schedule,
1485
- drag_train_wait_condition,
1486
- drop_blueprint_record,
1487
- drop_item,
1488
- edit_blueprint_tool_preview,
1489
- edit_custom_tag,
1490
- edit_permission_group,
1491
- export_blueprint,
1492
- fast_entity_split,
1493
- fast_entity_transfer,
1494
- flush_opened_entity_fluid,
1495
- flush_opened_entity_specific_fluid,
1496
- go_to_train_station,
1497
- grab_blueprint_record,
1498
- gui_checked_state_changed,
1499
- gui_click,
1500
- gui_confirmed,
1501
- gui_elem_changed,
1502
- gui_hover,
1503
- gui_leave,
1504
- gui_location_changed,
1505
- gui_selected_tab_changed,
1506
- gui_selection_state_changed,
1507
- gui_switch_state_changed,
1508
- gui_text_changed,
1509
- gui_value_changed,
1510
- import_blueprint,
1511
- import_blueprint_string,
1512
- import_blueprints_filtered,
1513
- import_permissions_string,
1514
- inventory_split,
1515
- inventory_transfer,
1516
- launch_rocket,
1517
- lua_shortcut,
1518
- map_editor_action,
1519
- market_offer,
1520
- mod_settings_changed,
1521
- open_achievements_gui,
1522
- open_blueprint_library_gui,
1523
- open_blueprint_record,
1524
- open_bonus_gui,
1525
- open_character_gui,
1526
- open_current_vehicle_gui,
1527
- open_equipment,
1528
- open_gui,
1529
- open_item,
1530
- open_logistic_gui,
1531
- open_mod_item,
1532
- open_parent_of_opened_item,
1533
- open_production_gui,
1534
- open_technology_gui,
1535
- open_tips_and_tricks_gui,
1536
- open_train_gui,
1537
- open_train_station_gui,
1538
- open_trains_gui,
1539
- paste_entity_settings,
1540
- place_equipment,
1541
- quick_bar_pick_slot,
1542
- quick_bar_set_selected_page,
1543
- quick_bar_set_slot,
1544
- reassign_blueprint,
1545
- remove_cables,
1546
- remove_train_station,
1547
- reset_assembling_machine,
1548
- reset_item,
1549
- reverse_select_area,
1550
- rotate_entity,
1551
- select_area,
1552
- select_blueprint_entities,
1553
- select_entity_slot,
1554
- select_item,
1555
- select_mapper_slot,
1556
- select_next_valid_gun,
1557
- select_tile_slot,
1558
- send_spidertron,
1559
- set_auto_launch_rocket,
1560
- set_autosort_inventory,
1561
- set_behavior_mode,
1562
- set_car_weapons_control,
1563
- set_circuit_condition,
1564
- set_circuit_mode_of_operation,
1565
- set_controller_logistic_trash_filter_item,
1566
- set_deconstruction_item_tile_selection_mode,
1567
- set_deconstruction_item_trees_and_rocks_only,
1568
- set_entity_color,
1569
- set_entity_energy_property,
1570
- set_entity_logistic_trash_filter_item,
1571
- set_filter,
1572
- set_flat_controller_gui,
1573
- set_heat_interface_mode,
1574
- set_heat_interface_temperature,
1575
- set_infinity_container_filter_item,
1576
- set_infinity_container_remove_unfiltered_items,
1577
- set_infinity_pipe_filter,
1578
- set_inserter_max_stack_size,
1579
- set_inventory_bar,
1580
- set_linked_container_link_i_d,
1581
- set_logistic_filter_item,
1582
- set_logistic_filter_signal,
1583
- set_player_color,
1584
- set_recipe_notifications,
1585
- set_request_from_buffers,
1586
- set_research_finished_stops_game,
1587
- set_signal,
1588
- set_splitter_priority,
1589
- set_train_stopped,
1590
- set_trains_limit,
1591
- set_vehicle_automatic_targeting_parameters,
1592
- setup_assembling_machine,
1593
- setup_blueprint,
1594
- setup_single_blueprint_record,
1595
- smart_pipette,
1596
- spawn_item,
1597
- stack_split,
1598
- stack_transfer,
1599
- start_repair,
1600
- start_research,
1601
- start_walking,
1602
- stop_building_by_moving,
1603
- switch_connect_to_logistic_network,
1604
- switch_constant_combinator_state,
1605
- switch_inserter_filter_mode_state,
1606
- switch_power_switch_state,
1607
- switch_to_rename_stop_gui,
1608
- take_equipment,
1609
- toggle_deconstruction_item_entity_filter_mode,
1610
- toggle_deconstruction_item_tile_filter_mode,
1611
- toggle_driving,
1612
- toggle_enable_vehicle_logistics_while_moving,
1613
- toggle_entity_logistic_requests,
1614
- toggle_equipment_movement_bonus,
1615
- toggle_map_editor,
1616
- toggle_personal_logistic_requests,
1617
- toggle_personal_roboport,
1618
- toggle_show_entity_info,
1619
- translate_string,
1620
- undo,
1621
- upgrade,
1622
- upgrade_opened_blueprint_by_item,
1623
- upgrade_opened_blueprint_by_record,
1624
- use_artillery_remote,
1625
- use_item,
1626
- wire_dragging,
1627
- write_to_console,
1628
- }
1629
- enum input_method {
1630
- keyboard_and_mouse,
1631
- game_controller,
1632
- }
1633
- enum inventory {
1634
- fuel,
1635
- burnt_result,
1636
- chest,
1637
- furnace_source,
1638
- furnace_result,
1639
- furnace_modules,
1640
- character_main,
1641
- character_guns,
1642
- character_ammo,
1643
- character_armor,
1644
- character_vehicle,
1645
- character_trash,
1646
- god_main,
1647
- editor_main,
1648
- editor_guns,
1649
- editor_ammo,
1650
- editor_armor,
1651
- roboport_robot,
1652
- roboport_material,
1653
- robot_cargo,
1654
- robot_repair,
1655
- assembling_machine_input,
1656
- assembling_machine_output,
1657
- assembling_machine_modules,
1658
- lab_input,
1659
- lab_modules,
1660
- mining_drill_modules,
1661
- item_main,
1662
- rocket_silo_rocket,
1663
- rocket_silo_result,
1664
- rocket_silo_input,
1665
- rocket_silo_output,
1666
- rocket_silo_modules,
1667
- rocket,
1668
- car_trunk,
1669
- car_ammo,
1670
- cargo_wagon,
1671
- turret_ammo,
1672
- beacon_modules,
1673
- character_corpse,
1674
- artillery_turret_ammo,
1675
- artillery_wagon_ammo,
1676
- spider_trunk,
1677
- spider_ammo,
1678
- spider_trash,
1679
- }
1680
- enum logistic_member_index {
1681
- logistic_container,
1682
- vehicle_storage,
1683
- character_requester,
1684
- character_storage,
1685
- character_provider,
1686
- generic_on_off_behavior,
1687
- }
1688
- enum logistic_mode {
1689
- none,
1690
- active_provider,
1691
- storage,
1692
- requester,
1693
- passive_provider,
1694
- buffer,
1695
- }
1696
- enum mouse_button_type {
1697
- none,
1698
- left,
1699
- right,
1700
- middle,
1701
- }
1702
- /**
1703
- * A dictionary mapping all top-level prototypes by name to a list of their associated subtypes. This list is organized as a lookup table, meaning it maps the sub-prototype names to `0`. As an example, `defines.prototypes['entity']` looks like this: `{furnace=0, inserter=0, container=0, ...}`.
1704
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.prototypes Online documentation}
1705
- */
1706
- const prototypes: {
1707
- readonly [Type in string]?: {
1708
- readonly [Name in string]?: 0 & {
1709
- _notFalsyBrand: any
1919
+ const prototypes: {
1920
+ [type in keyof PrototypeMap]: {
1921
+ readonly [subtype in string]?: 0
1710
1922
  }
1711
1923
  }
1712
- }
1713
- enum rail_connection_direction {
1714
- left,
1715
- straight,
1716
- right,
1717
- none,
1718
- }
1719
- enum rail_direction {
1720
- front,
1721
- back,
1722
- }
1723
- enum relative_gui_position {
1724
- top,
1725
- bottom,
1726
- left,
1727
- right,
1728
- }
1729
- enum relative_gui_type {
1730
- accumulator_gui,
1731
- achievement_gui,
1732
- additional_entity_info_gui,
1733
- admin_gui,
1734
- arithmetic_combinator_gui,
1735
- armor_gui,
1736
- assembling_machine_gui,
1737
- assembling_machine_select_recipe_gui,
1738
- beacon_gui,
1739
- blueprint_book_gui,
1740
- blueprint_library_gui,
1741
- blueprint_setup_gui,
1742
- bonus_gui,
1743
- burner_equipment_gui,
1744
- car_gui,
1745
- constant_combinator_gui,
1746
- container_gui,
1747
- controller_gui,
1748
- decider_combinator_gui,
1749
- deconstruction_item_gui,
1750
- electric_energy_interface_gui,
1751
- electric_network_gui,
1752
- entity_variations_gui,
1753
- entity_with_energy_source_gui,
1754
- equipment_grid_gui,
1755
- furnace_gui,
1756
- generic_on_off_entity_gui,
1757
- heat_interface_gui,
1758
- infinity_pipe_gui,
1759
- inserter_gui,
1760
- item_with_inventory_gui,
1761
- lab_gui,
1762
- lamp_gui,
1763
- linked_container_gui,
1764
- loader_gui,
1765
- logistic_gui,
1766
- market_gui,
1767
- mining_drill_gui,
1768
- other_player_gui,
1769
- permissions_gui,
1770
- pipe_gui,
1771
- power_switch_gui,
1772
- production_gui,
1773
- programmable_speaker_gui,
1774
- rail_chain_signal_gui,
1775
- rail_signal_gui,
1776
- reactor_gui,
1777
- rename_stop_gui,
1778
- resource_entity_gui,
1779
- roboport_gui,
1780
- rocket_silo_gui,
1781
- script_inventory_gui,
1782
- server_config_gui,
1783
- spider_vehicle_gui,
1784
- splitter_gui,
1785
- standalone_character_gui,
1786
- storage_tank_gui,
1787
- tile_variations_gui,
1788
- train_gui,
1789
- train_stop_gui,
1790
- trains_gui,
1791
- transport_belt_gui,
1792
- upgrade_item_gui,
1793
- wall_gui,
1794
- }
1795
- enum render_mode {
1796
- game,
1797
- chart,
1798
- chart_zoomed_in,
1799
- }
1800
- enum rich_text_setting {
1801
- enabled,
1802
- disabled,
1803
- highlight,
1804
- }
1805
- namespace riding {
1806
- enum acceleration {
1807
- nothing,
1808
- accelerating,
1809
- braking,
1810
- reversing,
1811
- }
1812
- enum direction {
1924
+ enum rail_connection_direction {
1813
1925
  left,
1814
1926
  straight,
1815
1927
  right,
1928
+ none,
1929
+ }
1930
+ enum rail_direction {
1931
+ front,
1932
+ back,
1933
+ }
1934
+ enum relative_gui_position {
1935
+ top,
1936
+ bottom,
1937
+ left,
1938
+ right,
1939
+ }
1940
+ enum relative_gui_type {
1941
+ accumulator_gui,
1942
+ achievement_gui,
1943
+ additional_entity_info_gui,
1944
+ admin_gui,
1945
+ arithmetic_combinator_gui,
1946
+ armor_gui,
1947
+ assembling_machine_gui,
1948
+ assembling_machine_select_recipe_gui,
1949
+ beacon_gui,
1950
+ blueprint_book_gui,
1951
+ blueprint_library_gui,
1952
+ blueprint_setup_gui,
1953
+ bonus_gui,
1954
+ burner_equipment_gui,
1955
+ car_gui,
1956
+ constant_combinator_gui,
1957
+ container_gui,
1958
+ controller_gui,
1959
+ decider_combinator_gui,
1960
+ deconstruction_item_gui,
1961
+ electric_energy_interface_gui,
1962
+ electric_network_gui,
1963
+ entity_variations_gui,
1964
+ entity_with_energy_source_gui,
1965
+ equipment_grid_gui,
1966
+ furnace_gui,
1967
+ generic_on_off_entity_gui,
1968
+ heat_interface_gui,
1969
+ infinity_pipe_gui,
1970
+ inserter_gui,
1971
+ item_with_inventory_gui,
1972
+ lab_gui,
1973
+ lamp_gui,
1974
+ linked_container_gui,
1975
+ loader_gui,
1976
+ logistic_gui,
1977
+ market_gui,
1978
+ mining_drill_gui,
1979
+ other_player_gui,
1980
+ permissions_gui,
1981
+ pipe_gui,
1982
+ power_switch_gui,
1983
+ production_gui,
1984
+ programmable_speaker_gui,
1985
+ rail_chain_signal_gui,
1986
+ rail_signal_gui,
1987
+ reactor_gui,
1988
+ rename_stop_gui,
1989
+ resource_entity_gui,
1990
+ roboport_gui,
1991
+ rocket_silo_gui,
1992
+ script_inventory_gui,
1993
+ server_config_gui,
1994
+ spider_vehicle_gui,
1995
+ splitter_gui,
1996
+ standalone_character_gui,
1997
+ storage_tank_gui,
1998
+ tile_variations_gui,
1999
+ train_gui,
2000
+ train_stop_gui,
2001
+ trains_gui,
2002
+ transport_belt_gui,
2003
+ upgrade_item_gui,
2004
+ wall_gui,
2005
+ }
2006
+ enum render_mode {
2007
+ game,
2008
+ chart,
2009
+ chart_zoomed_in,
2010
+ }
2011
+ enum rich_text_setting {
2012
+ enabled,
2013
+ disabled,
2014
+ highlight,
2015
+ }
2016
+ namespace riding {
2017
+ enum acceleration {
2018
+ nothing,
2019
+ accelerating,
2020
+ braking,
2021
+ reversing,
2022
+ }
2023
+ enum direction {
2024
+ left,
2025
+ straight,
2026
+ right,
2027
+ }
2028
+ }
2029
+ enum rocket_silo_status {
2030
+ building_rocket,
2031
+ create_rocket,
2032
+ lights_blinking_open,
2033
+ doors_opening,
2034
+ doors_opened,
2035
+ rocket_rising,
2036
+ arms_advance,
2037
+ rocket_ready,
2038
+ launch_starting,
2039
+ engine_starting,
2040
+ arms_retract,
2041
+ rocket_flying,
2042
+ lights_blinking_close,
2043
+ doors_closing,
2044
+ launch_started,
2045
+ }
2046
+ enum shooting {
2047
+ not_shooting,
2048
+ shooting_enemies,
2049
+ shooting_selected,
1816
2050
  }
1817
- }
1818
- enum rocket_silo_status {
1819
- building_rocket,
1820
- create_rocket,
1821
- lights_blinking_open,
1822
- doors_opening,
1823
- doors_opened,
1824
- rocket_rising,
1825
- arms_advance,
1826
- rocket_ready,
1827
- launch_starting,
1828
- engine_starting,
1829
- arms_retract,
1830
- rocket_flying,
1831
- lights_blinking_close,
1832
- doors_closing,
1833
- launch_started,
1834
- }
1835
- enum shooting {
1836
- not_shooting,
1837
- shooting_enemies,
1838
- shooting_selected,
1839
- }
1840
- /**
1841
- * State of an ordinary rail signal.
1842
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.signal_state Online documentation}
1843
- */
1844
- enum signal_state {
1845
- /**
1846
- * Green.
1847
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.signal_state.open Online documentation}
1848
- */
1849
- open,
1850
- /**
1851
- * Red.
1852
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.signal_state.closed Online documentation}
1853
- */
1854
- closed,
1855
- /**
1856
- * Orange.
1857
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.signal_state.reserved Online documentation}
1858
- */
1859
- reserved,
1860
- /**
1861
- * Red - From circuit network.
1862
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.signal_state.reserved_by_circuit_network Online documentation}
1863
- */
1864
- reserved_by_circuit_network,
1865
- }
1866
- enum train_state {
1867
- /**
1868
- * Normal state -- following the path.
1869
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.on_the_path Online documentation}
1870
- */
1871
- on_the_path,
1872
- /**
1873
- * Had path and lost it -- must stop.
1874
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.path_lost Online documentation}
1875
- */
1876
- path_lost,
1877
- /**
1878
- * Doesn't have anywhere to go.
1879
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.no_schedule Online documentation}
1880
- */
1881
- no_schedule,
1882
- /**
1883
- * Has no path and is stopped.
1884
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.no_path Online documentation}
1885
- */
1886
- no_path,
1887
- /**
1888
- * Braking before a rail signal.
1889
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.arrive_signal Online documentation}
1890
- */
1891
- arrive_signal,
1892
- /**
1893
- * Waiting at a signal.
1894
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.wait_signal Online documentation}
1895
- */
1896
- wait_signal,
1897
- /**
1898
- * Braking before a station.
1899
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.arrive_station Online documentation}
1900
- */
1901
- arrive_station,
1902
- /**
1903
- * Waiting at a station.
1904
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.wait_station Online documentation}
1905
- */
1906
- wait_station,
1907
- /**
1908
- * Switched to manual control and has to stop.
1909
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.manual_control_stop Online documentation}
1910
- */
1911
- manual_control_stop,
1912
- /**
1913
- * Can move if user explicitly sits in and rides the train.
1914
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.manual_control Online documentation}
1915
- */
1916
- manual_control,
1917
2051
  /**
1918
- * Same as no_path but all candidate train stops are full
1919
- * @see {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.destination_full Online documentation}
2052
+ * State of an ordinary rail signal.
2053
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.signal_state Online documentation}
1920
2054
  */
1921
- destination_full,
1922
- }
1923
- enum transport_line {
1924
- left_line,
1925
- right_line,
1926
- left_underground_line,
1927
- right_underground_line,
1928
- secondary_left_line,
1929
- secondary_right_line,
1930
- left_split_line,
1931
- right_split_line,
1932
- secondary_left_split_line,
1933
- secondary_right_split_line,
1934
- }
1935
- enum wire_connection_id {
1936
- electric_pole,
1937
- power_switch_left,
1938
- power_switch_right,
1939
- }
1940
- enum wire_type {
1941
- red,
1942
- green,
1943
- copper,
2055
+ enum signal_state {
2056
+ /**
2057
+ * Green.
2058
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.signal_state.open Online documentation}
2059
+ */
2060
+ open,
2061
+ /**
2062
+ * Red.
2063
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.signal_state.closed Online documentation}
2064
+ */
2065
+ closed,
2066
+ /**
2067
+ * Orange.
2068
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.signal_state.reserved Online documentation}
2069
+ */
2070
+ reserved,
2071
+ /**
2072
+ * Red - From circuit network.
2073
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.signal_state.reserved_by_circuit_network Online documentation}
2074
+ */
2075
+ reserved_by_circuit_network,
2076
+ }
2077
+ enum train_state {
2078
+ /**
2079
+ * Normal state -- following the path.
2080
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.train_state.on_the_path Online documentation}
2081
+ */
2082
+ on_the_path,
2083
+ /**
2084
+ * Had path and lost it -- must stop.
2085
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.train_state.path_lost Online documentation}
2086
+ */
2087
+ path_lost,
2088
+ /**
2089
+ * Doesn't have anywhere to go.
2090
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.train_state.no_schedule Online documentation}
2091
+ */
2092
+ no_schedule,
2093
+ /**
2094
+ * Has no path and is stopped.
2095
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.train_state.no_path Online documentation}
2096
+ */
2097
+ no_path,
2098
+ /**
2099
+ * Braking before a rail signal.
2100
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.train_state.arrive_signal Online documentation}
2101
+ */
2102
+ arrive_signal,
2103
+ /**
2104
+ * Waiting at a signal.
2105
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.train_state.wait_signal Online documentation}
2106
+ */
2107
+ wait_signal,
2108
+ /**
2109
+ * Braking before a station.
2110
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.train_state.arrive_station Online documentation}
2111
+ */
2112
+ arrive_station,
2113
+ /**
2114
+ * Waiting at a station.
2115
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.train_state.wait_station Online documentation}
2116
+ */
2117
+ wait_station,
2118
+ /**
2119
+ * Switched to manual control and has to stop.
2120
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.train_state.manual_control_stop Online documentation}
2121
+ */
2122
+ manual_control_stop,
2123
+ /**
2124
+ * Can move if user explicitly sits in and rides the train.
2125
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.train_state.manual_control Online documentation}
2126
+ */
2127
+ manual_control,
2128
+ /**
2129
+ * Same as no_path but all candidate train stops are full
2130
+ * @see {@link https://lua-api.factorio.com/1.1.89/defines.html#defines.train_state.destination_full Online documentation}
2131
+ */
2132
+ destination_full,
2133
+ }
2134
+ enum transport_line {
2135
+ left_line,
2136
+ right_line,
2137
+ left_underground_line,
2138
+ right_underground_line,
2139
+ secondary_left_line,
2140
+ secondary_right_line,
2141
+ left_split_line,
2142
+ right_split_line,
2143
+ secondary_left_split_line,
2144
+ secondary_right_split_line,
2145
+ }
2146
+ enum wire_connection_id {
2147
+ electric_pole,
2148
+ power_switch_left,
2149
+ power_switch_right,
2150
+ }
2151
+ enum wire_type {
2152
+ red,
2153
+ green,
2154
+ copper,
2155
+ }
1944
2156
  }
1945
2157
  }