factorio-types 1.2.3 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -60
- package/dist/classes.d.ts +4879 -3481
- package/dist/concepts.d.ts +2267 -645
- package/dist/datacollection.d.ts +223 -31
- package/dist/defines.d.ts +1500 -603
- package/dist/events.d.ts +511 -107
- package/dist/global.d.ts +10 -2
- package/dist/prototypes.d.ts +3294 -1987
- package/dist/types.d.ts +6283 -3018
- package/index.d.ts +0 -1
- package/package.json +3 -3
- package/src/lualib/noise.d.ts +0 -194
package/dist/defines.d.ts
CHANGED
|
@@ -2,20 +2,28 @@
|
|
|
2
2
|
// Factorio API reference https://lua-api.factorio.com/latest/index.html
|
|
3
3
|
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version
|
|
6
|
-
// API version
|
|
5
|
+
// Factorio version 2.0.11
|
|
6
|
+
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace defines {
|
|
9
9
|
enum alert_type {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
collector_path_blocked = 0,
|
|
11
|
+
custom = 1,
|
|
12
|
+
entity_destroyed = 2,
|
|
13
|
+
entity_under_attack = 3,
|
|
14
|
+
no_material_for_construction = 4,
|
|
15
|
+
no_platform_storage = 5,
|
|
16
|
+
no_roboport_storage = 6,
|
|
17
|
+
no_storage = 7,
|
|
18
|
+
not_enough_construction_robots = 8,
|
|
19
|
+
not_enough_repair_packs = 9,
|
|
20
|
+
pipeline_overextended = 10,
|
|
21
|
+
platform_tile_building_blocked = 11,
|
|
22
|
+
train_no_path = 12,
|
|
23
|
+
train_out_of_fuel = 13,
|
|
24
|
+
turret_fire = 14,
|
|
25
|
+
turret_out_of_ammo = 15,
|
|
26
|
+
unclaimed_cargo = 16
|
|
19
27
|
}
|
|
20
28
|
/**
|
|
21
29
|
* AI command exit status. See {@link LuaEntity::set_command | runtime:LuaEntity::set_command}
|
|
@@ -34,6 +42,11 @@ enum build_check_type {
|
|
|
34
42
|
script = 0,
|
|
35
43
|
script_ghost = 3
|
|
36
44
|
}
|
|
45
|
+
enum build_mode {
|
|
46
|
+
forced = 1,
|
|
47
|
+
normal = 0,
|
|
48
|
+
superforced = 2
|
|
49
|
+
}
|
|
37
50
|
/**
|
|
38
51
|
* State of a chain signal.
|
|
39
52
|
*/
|
|
@@ -51,35 +64,6 @@ enum chunk_generated_status {
|
|
|
51
64
|
nothing = 0,
|
|
52
65
|
tiles = 4
|
|
53
66
|
}
|
|
54
|
-
enum circuit_condition_index {
|
|
55
|
-
arithmetic_combinator = 3,
|
|
56
|
-
constant_combinator = 5,
|
|
57
|
-
decider_combinator = 4,
|
|
58
|
-
inserter_circuit = 0,
|
|
59
|
-
inserter_logistic = 1,
|
|
60
|
-
lamp = 2,
|
|
61
|
-
offshore_pump = 6,
|
|
62
|
-
pump = 7
|
|
63
|
-
}
|
|
64
|
-
enum circuit_connector_id {
|
|
65
|
-
accumulator = 0,
|
|
66
|
-
combinator_input = 13,
|
|
67
|
-
combinator_output = 14,
|
|
68
|
-
constant_combinator = 1,
|
|
69
|
-
container = 2,
|
|
70
|
-
electric_pole = 10,
|
|
71
|
-
inserter = 11,
|
|
72
|
-
lamp = 12,
|
|
73
|
-
linked_container = 3,
|
|
74
|
-
offshore_pump = 15,
|
|
75
|
-
programmable_speaker = 4,
|
|
76
|
-
pump = 16,
|
|
77
|
-
rail_chain_signal = 6,
|
|
78
|
-
rail_signal = 5,
|
|
79
|
-
roboport = 7,
|
|
80
|
-
storage_tank = 8,
|
|
81
|
-
wall = 9
|
|
82
|
-
}
|
|
83
67
|
/**
|
|
84
68
|
* Command given to units describing what they should do.
|
|
85
69
|
*/
|
|
@@ -139,26 +123,29 @@ enum compound_command {
|
|
|
139
123
|
return_last = 2
|
|
140
124
|
}
|
|
141
125
|
namespace control_behavior {
|
|
142
|
-
namespace
|
|
143
|
-
enum
|
|
144
|
-
enable_disable = 1,
|
|
126
|
+
namespace cargo_landing_pad {
|
|
127
|
+
enum exclusive_mode {
|
|
145
128
|
none = 0,
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
set_stack_size = 4
|
|
129
|
+
send_contents = 1,
|
|
130
|
+
set_requests = 2
|
|
149
131
|
}
|
|
132
|
+
}
|
|
133
|
+
namespace inserter {
|
|
150
134
|
enum hand_read_mode {
|
|
151
135
|
hold = 0,
|
|
152
136
|
pulse = 1
|
|
153
137
|
}
|
|
154
138
|
}
|
|
155
139
|
namespace lamp {
|
|
156
|
-
enum
|
|
157
|
-
|
|
140
|
+
enum color_mode {
|
|
141
|
+
color_mapping = 0,
|
|
142
|
+
components = 1,
|
|
143
|
+
packed_rgb = 2
|
|
158
144
|
}
|
|
159
145
|
}
|
|
160
146
|
namespace logistic_container {
|
|
161
|
-
enum
|
|
147
|
+
enum exclusive_mode {
|
|
148
|
+
none = 2,
|
|
162
149
|
send_contents = 0,
|
|
163
150
|
set_requests = 1
|
|
164
151
|
}
|
|
@@ -169,8 +156,23 @@ namespace control_behavior {
|
|
|
169
156
|
this_miner = 0
|
|
170
157
|
}
|
|
171
158
|
}
|
|
159
|
+
namespace roboport {
|
|
160
|
+
enum read_items_mode {
|
|
161
|
+
logistics = 1,
|
|
162
|
+
missing_requests = 2,
|
|
163
|
+
none = 0
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
namespace rocket_silo {
|
|
167
|
+
enum read_mode {
|
|
168
|
+
logistic_inventory = 1,
|
|
169
|
+
none = 0,
|
|
170
|
+
orbital_requests = 2
|
|
171
|
+
}
|
|
172
|
+
}
|
|
172
173
|
namespace transport_belt {
|
|
173
174
|
enum content_read_mode {
|
|
175
|
+
entire_belt_hold = 2,
|
|
174
176
|
hold = 1,
|
|
175
177
|
pulse = 0
|
|
176
178
|
}
|
|
@@ -180,10 +182,30 @@ namespace control_behavior {
|
|
|
180
182
|
* {@link LuaAccumulatorControlBehavior | runtime:LuaAccumulatorControlBehavior}
|
|
181
183
|
*/
|
|
182
184
|
accumulator = 12,
|
|
185
|
+
/**
|
|
186
|
+
* {@link LuaAgriculturalTowerControlBehavior | runtime:LuaAgriculturalTowerControlBehavior}
|
|
187
|
+
*/
|
|
188
|
+
agricultural_tower = 31,
|
|
183
189
|
/**
|
|
184
190
|
* {@link LuaArithmeticCombinatorControlBehavior | runtime:LuaArithmeticCombinatorControlBehavior}
|
|
185
191
|
*/
|
|
186
192
|
arithmetic_combinator = 9,
|
|
193
|
+
/**
|
|
194
|
+
* {@link LuaArtilleryTurretControlBehavior | runtime:LuaArtilleryTurretControlBehavior}
|
|
195
|
+
*/
|
|
196
|
+
artillery_turret = 25,
|
|
197
|
+
/**
|
|
198
|
+
* {@link LuaAssemblingMachineControlBehavior | runtime:LuaAssemblingMachineControlBehavior}
|
|
199
|
+
*/
|
|
200
|
+
assembling_machine = 18,
|
|
201
|
+
/**
|
|
202
|
+
* {@link LuaAsteroidCollectorControlBehavior | runtime:LuaAsteroidCollectorControlBehavior}
|
|
203
|
+
*/
|
|
204
|
+
asteroid_collector = 26,
|
|
205
|
+
/**
|
|
206
|
+
* {@link LuaCargoLandingPadControlBehavior | runtime:LuaCargoLandingPadControlBehavior}
|
|
207
|
+
*/
|
|
208
|
+
cargo_landing_pad = 30,
|
|
187
209
|
/**
|
|
188
210
|
* {@link LuaConstantCombinatorControlBehavior | runtime:LuaConstantCombinatorControlBehavior}
|
|
189
211
|
*/
|
|
@@ -196,6 +218,10 @@ namespace control_behavior {
|
|
|
196
218
|
* {@link LuaDeciderCombinatorControlBehavior | runtime:LuaDeciderCombinatorControlBehavior}
|
|
197
219
|
*/
|
|
198
220
|
decider_combinator = 8,
|
|
221
|
+
/**
|
|
222
|
+
* {@link LuaDisplayPanelControlBehavior | runtime:LuaDisplayPanelControlBehavior}
|
|
223
|
+
*/
|
|
224
|
+
display_panel = 28,
|
|
199
225
|
/**
|
|
200
226
|
* {@link LuaGenericOnOffControlBehavior | runtime:LuaGenericOnOffControlBehavior}
|
|
201
227
|
*/
|
|
@@ -208,6 +234,10 @@ namespace control_behavior {
|
|
|
208
234
|
* {@link LuaLampControlBehavior | runtime:LuaLampControlBehavior}
|
|
209
235
|
*/
|
|
210
236
|
lamp = 3,
|
|
237
|
+
/**
|
|
238
|
+
* {@link LuaLoaderControlBehavior | runtime:LuaLoaderControlBehavior}
|
|
239
|
+
*/
|
|
240
|
+
loader = 29,
|
|
211
241
|
/**
|
|
212
242
|
* {@link LuaLogisticContainerControlBehavior | runtime:LuaLogisticContainerControlBehavior}
|
|
213
243
|
*/
|
|
@@ -221,17 +251,41 @@ namespace control_behavior {
|
|
|
221
251
|
*/
|
|
222
252
|
programmable_speaker = 17,
|
|
223
253
|
/**
|
|
224
|
-
* {@link
|
|
254
|
+
* {@link LuaPumpControlBehavior | runtime:LuaPumpControlBehavior}
|
|
255
|
+
*/
|
|
256
|
+
pump = 19,
|
|
257
|
+
/**
|
|
258
|
+
* {@link LuaRadarControlBehavior | runtime:LuaRadarControlBehavior}
|
|
259
|
+
*/
|
|
260
|
+
radar = 27,
|
|
261
|
+
/**
|
|
262
|
+
* {@link LuaRailSignalBaseControlBehavior | runtime:LuaRailSignalBaseControlBehavior}
|
|
225
263
|
*/
|
|
226
264
|
rail_chain_signal = 14,
|
|
227
265
|
/**
|
|
228
|
-
* {@link
|
|
266
|
+
* {@link LuaRailSignalBaseControlBehavior | runtime:LuaRailSignalBaseControlBehavior}
|
|
229
267
|
*/
|
|
230
268
|
rail_signal = 13,
|
|
269
|
+
/**
|
|
270
|
+
* {@link LuaReactorControlBehavior | runtime:LuaReactorControlBehavior}
|
|
271
|
+
*/
|
|
272
|
+
reactor = 23,
|
|
231
273
|
/**
|
|
232
274
|
* {@link LuaRoboportControlBehavior | runtime:LuaRoboportControlBehavior}
|
|
233
275
|
*/
|
|
234
276
|
roboport = 5,
|
|
277
|
+
/**
|
|
278
|
+
* {@link LuaRocketSiloControlBehavior | runtime:LuaRocketSiloControlBehavior}
|
|
279
|
+
*/
|
|
280
|
+
rocket_silo = 21,
|
|
281
|
+
/**
|
|
282
|
+
* {@link LuaSelectorCombinatorControlBehavior | runtime:LuaSelectorCombinatorControlBehavior}
|
|
283
|
+
*/
|
|
284
|
+
selector_combinator = 20,
|
|
285
|
+
/**
|
|
286
|
+
* {@link LuaSpacePlatformHubControlBehavior | runtime:LuaSpacePlatformHubControlBehavior}
|
|
287
|
+
*/
|
|
288
|
+
space_platform_hub = 24,
|
|
235
289
|
/**
|
|
236
290
|
* {@link LuaStorageTankControlBehavior | runtime:LuaStorageTankControlBehavior}
|
|
237
291
|
*/
|
|
@@ -244,6 +298,10 @@ namespace control_behavior {
|
|
|
244
298
|
* {@link LuaTransportBeltControlBehavior | runtime:LuaTransportBeltControlBehavior}
|
|
245
299
|
*/
|
|
246
300
|
transport_belt = 11,
|
|
301
|
+
/**
|
|
302
|
+
* {@link LuaTurretControlBehavior | runtime:LuaTurretControlBehavior}
|
|
303
|
+
*/
|
|
304
|
+
turret = 22,
|
|
247
305
|
/**
|
|
248
306
|
* {@link LuaWallControlBehavior | runtime:LuaWallControlBehavior}
|
|
249
307
|
*/
|
|
@@ -271,6 +329,10 @@ enum controllers {
|
|
|
271
329
|
* The controller isn't tied to a character. This is the default controller in sandbox.
|
|
272
330
|
*/
|
|
273
331
|
god = 2,
|
|
332
|
+
/**
|
|
333
|
+
* Can't move/change items but can build ghosts/change settings.
|
|
334
|
+
*/
|
|
335
|
+
remote = 6,
|
|
274
336
|
/**
|
|
275
337
|
* Can't change anything in the world but can view anything.
|
|
276
338
|
*/
|
|
@@ -292,30 +354,30 @@ namespace deconstruction_item {
|
|
|
292
354
|
only = 3
|
|
293
355
|
}
|
|
294
356
|
}
|
|
357
|
+
enum default_icon_size {
|
|
358
|
+
}
|
|
295
359
|
enum difficulty {
|
|
296
360
|
easy = 0,
|
|
297
361
|
hard = 2,
|
|
298
362
|
normal = 1
|
|
299
363
|
}
|
|
300
|
-
namespace difficulty_settings {
|
|
301
|
-
enum recipe_difficulty {
|
|
302
|
-
expensive = 1,
|
|
303
|
-
normal = 0
|
|
304
|
-
}
|
|
305
|
-
enum technology_difficulty {
|
|
306
|
-
expensive = 1,
|
|
307
|
-
normal = 0
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
364
|
enum direction {
|
|
311
|
-
east =
|
|
365
|
+
east = 4,
|
|
366
|
+
eastnortheast = 3,
|
|
367
|
+
eastsoutheast = 5,
|
|
312
368
|
north = 0,
|
|
313
|
-
northeast =
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
369
|
+
northeast = 2,
|
|
370
|
+
northnortheast = 1,
|
|
371
|
+
northnorthwest = 15,
|
|
372
|
+
northwest = 14,
|
|
373
|
+
south = 8,
|
|
374
|
+
southeast = 6,
|
|
375
|
+
southsoutheast = 7,
|
|
376
|
+
southsouthwest = 9,
|
|
377
|
+
southwest = 10,
|
|
378
|
+
west = 12,
|
|
379
|
+
westnorthwest = 13,
|
|
380
|
+
westsouthwest = 11
|
|
319
381
|
}
|
|
320
382
|
enum disconnect_reason {
|
|
321
383
|
afk = 6,
|
|
@@ -349,218 +411,308 @@ enum distraction {
|
|
|
349
411
|
none = 0
|
|
350
412
|
}
|
|
351
413
|
enum entity_status {
|
|
414
|
+
/**
|
|
415
|
+
* Only used if set through {@link LuaEntity::status | runtime:LuaEntity::status} or {@link ContainerPrototype::default_status | prototype:ContainerPrototype::default_status}.
|
|
416
|
+
*/
|
|
417
|
+
broken = 3,
|
|
352
418
|
/**
|
|
353
419
|
* Used by rail signals.
|
|
354
420
|
*/
|
|
355
|
-
cant_divide_segments =
|
|
421
|
+
cant_divide_segments = 59,
|
|
356
422
|
/**
|
|
357
423
|
* Used by accumulators.
|
|
358
424
|
*/
|
|
359
|
-
charging =
|
|
360
|
-
closed_by_circuit_network =
|
|
425
|
+
charging = 17,
|
|
426
|
+
closed_by_circuit_network = 10,
|
|
427
|
+
/**
|
|
428
|
+
* Used by asteroid collectors.
|
|
429
|
+
*/
|
|
430
|
+
computing_navigation = 63,
|
|
431
|
+
/**
|
|
432
|
+
* Used by trains.
|
|
433
|
+
*/
|
|
434
|
+
destination_stop_full = 48,
|
|
361
435
|
/**
|
|
362
436
|
* Used by constant combinators: Combinator is turned off via switch in GUI.
|
|
363
437
|
*/
|
|
364
|
-
disabled =
|
|
365
|
-
disabled_by_control_behavior =
|
|
366
|
-
disabled_by_script =
|
|
438
|
+
disabled = 56,
|
|
439
|
+
disabled_by_control_behavior = 8,
|
|
440
|
+
disabled_by_script = 11,
|
|
367
441
|
/**
|
|
368
442
|
* Used by accumulators.
|
|
369
443
|
*/
|
|
370
|
-
discharging =
|
|
444
|
+
discharging = 18,
|
|
371
445
|
/**
|
|
372
446
|
* Used by crafting machines.
|
|
373
447
|
*/
|
|
374
|
-
fluid_ingredient_shortage =
|
|
448
|
+
fluid_ingredient_shortage = 28,
|
|
449
|
+
frozen = 7,
|
|
375
450
|
/**
|
|
376
451
|
* Used by burner energy sources.
|
|
377
452
|
*/
|
|
378
|
-
full_burnt_result_output =
|
|
453
|
+
full_burnt_result_output = 31,
|
|
379
454
|
/**
|
|
380
455
|
* Used by crafting machines, boilers, burner energy sources and reactors: Reactor/burner has full burnt result inventory, boiler has full output fluidbox.
|
|
381
456
|
*/
|
|
382
|
-
full_output =
|
|
457
|
+
full_output = 29,
|
|
383
458
|
/**
|
|
384
459
|
* Used by accumulators.
|
|
385
460
|
*/
|
|
386
|
-
fully_charged =
|
|
461
|
+
fully_charged = 19,
|
|
462
|
+
/**
|
|
463
|
+
* Used by ghosts.
|
|
464
|
+
*/
|
|
465
|
+
ghost = 2,
|
|
387
466
|
/**
|
|
388
467
|
* Used by crafting machines.
|
|
389
468
|
*/
|
|
390
|
-
item_ingredient_shortage =
|
|
469
|
+
item_ingredient_shortage = 32,
|
|
391
470
|
/**
|
|
392
471
|
* Used by the rocket silo.
|
|
393
472
|
*/
|
|
394
|
-
launching_rocket =
|
|
473
|
+
launching_rocket = 41,
|
|
395
474
|
/**
|
|
396
475
|
* Used by boilers and fluid turrets: Boiler still has some fluid but is about to run out.
|
|
397
476
|
*/
|
|
398
|
-
low_input_fluid =
|
|
399
|
-
low_power =
|
|
477
|
+
low_input_fluid = 27,
|
|
478
|
+
low_power = 5,
|
|
400
479
|
/**
|
|
401
480
|
* Used by heat energy sources.
|
|
402
481
|
*/
|
|
403
|
-
low_temperature =
|
|
404
|
-
marked_for_deconstruction =
|
|
482
|
+
low_temperature = 55,
|
|
483
|
+
marked_for_deconstruction = 12,
|
|
405
484
|
/**
|
|
406
485
|
* Used by mining drills when the mining fluid is missing.
|
|
407
486
|
*/
|
|
408
|
-
missing_required_fluid =
|
|
487
|
+
missing_required_fluid = 33,
|
|
409
488
|
/**
|
|
410
489
|
* Used by labs.
|
|
411
490
|
*/
|
|
412
|
-
missing_science_packs =
|
|
491
|
+
missing_science_packs = 34,
|
|
413
492
|
/**
|
|
414
493
|
* Used by power switches.
|
|
415
494
|
*/
|
|
416
|
-
networks_connected =
|
|
495
|
+
networks_connected = 15,
|
|
417
496
|
/**
|
|
418
497
|
* Used by power switches.
|
|
419
498
|
*/
|
|
420
|
-
networks_disconnected =
|
|
499
|
+
networks_disconnected = 16,
|
|
421
500
|
/**
|
|
422
501
|
* Used by ammo turrets.
|
|
423
502
|
*/
|
|
424
|
-
no_ammo =
|
|
425
|
-
|
|
503
|
+
no_ammo = 54,
|
|
504
|
+
/**
|
|
505
|
+
* Used by filter inserters.
|
|
506
|
+
*/
|
|
507
|
+
no_filter = 60,
|
|
508
|
+
no_fuel = 6,
|
|
426
509
|
/**
|
|
427
510
|
* Used by furnaces.
|
|
428
511
|
*/
|
|
429
|
-
no_ingredients =
|
|
512
|
+
no_ingredients = 22,
|
|
430
513
|
/**
|
|
431
514
|
* Used by boilers, fluid turrets and fluid energy sources: Boiler has no fluid to work with.
|
|
432
515
|
*/
|
|
433
|
-
no_input_fluid =
|
|
516
|
+
no_input_fluid = 23,
|
|
434
517
|
/**
|
|
435
518
|
* Used by mining drills.
|
|
436
519
|
*/
|
|
437
|
-
no_minable_resources =
|
|
520
|
+
no_minable_resources = 25,
|
|
438
521
|
/**
|
|
439
522
|
* Used by beacons.
|
|
440
523
|
*/
|
|
441
|
-
no_modules_to_transmit =
|
|
442
|
-
|
|
524
|
+
no_modules_to_transmit = 50,
|
|
525
|
+
/**
|
|
526
|
+
* Used by trains and space platform hubs.
|
|
527
|
+
*/
|
|
528
|
+
no_path = 49,
|
|
529
|
+
no_power = 4,
|
|
443
530
|
/**
|
|
444
531
|
* Used by assembling machines.
|
|
445
532
|
*/
|
|
446
|
-
no_recipe =
|
|
533
|
+
no_recipe = 21,
|
|
447
534
|
/**
|
|
448
535
|
* Used by labs.
|
|
449
536
|
*/
|
|
450
|
-
no_research_in_progress =
|
|
537
|
+
no_research_in_progress = 24,
|
|
538
|
+
/**
|
|
539
|
+
* Used by agricultural towers.
|
|
540
|
+
*/
|
|
541
|
+
no_spot_seedable_by_inputs = 61,
|
|
451
542
|
normal = 1,
|
|
543
|
+
/**
|
|
544
|
+
* Used by cargo bays.
|
|
545
|
+
*/
|
|
546
|
+
not_connected_to_hub_or_pad = 26,
|
|
452
547
|
/**
|
|
453
548
|
* Used by rail signals.
|
|
454
549
|
*/
|
|
455
|
-
not_connected_to_rail =
|
|
550
|
+
not_connected_to_rail = 58,
|
|
551
|
+
/**
|
|
552
|
+
* Used by agricultural towers.
|
|
553
|
+
*/
|
|
554
|
+
not_enough_space_in_output = 30,
|
|
555
|
+
/**
|
|
556
|
+
* Used by space platform hubs.
|
|
557
|
+
*/
|
|
558
|
+
not_enough_thrust = 47,
|
|
456
559
|
/**
|
|
457
560
|
* Used by generators and solar panels.
|
|
458
561
|
*/
|
|
459
|
-
not_plugged_in_electric_network =
|
|
460
|
-
|
|
562
|
+
not_plugged_in_electric_network = 14,
|
|
563
|
+
/**
|
|
564
|
+
* Used by space platform hubs.
|
|
565
|
+
*/
|
|
566
|
+
on_the_way = 43,
|
|
567
|
+
opened_by_circuit_network = 9,
|
|
461
568
|
/**
|
|
462
569
|
* Used by logistic containers.
|
|
463
570
|
*/
|
|
464
|
-
out_of_logistic_network =
|
|
571
|
+
out_of_logistic_network = 20,
|
|
572
|
+
/**
|
|
573
|
+
* Used by space platform hubs.
|
|
574
|
+
*/
|
|
575
|
+
paused = 13,
|
|
576
|
+
/**
|
|
577
|
+
* Used by pipes, pipes to ground and storage tanks.
|
|
578
|
+
*/
|
|
579
|
+
pipeline_overextended = 64,
|
|
465
580
|
/**
|
|
466
581
|
* Used by the rocket silo.
|
|
467
582
|
*/
|
|
468
|
-
preparing_rocket_for_launch =
|
|
583
|
+
preparing_rocket_for_launch = 38,
|
|
469
584
|
/**
|
|
470
585
|
* Used by roboports.
|
|
471
586
|
*/
|
|
472
|
-
recharging_after_power_outage =
|
|
587
|
+
recharging_after_power_outage = 51,
|
|
588
|
+
/**
|
|
589
|
+
* Used by assembling machines.
|
|
590
|
+
*/
|
|
591
|
+
recipe_not_researched = 65,
|
|
592
|
+
/**
|
|
593
|
+
* Used by thrusters.
|
|
594
|
+
*/
|
|
595
|
+
thrust_not_required = 42,
|
|
473
596
|
/**
|
|
474
597
|
* Used by lamps.
|
|
475
598
|
*/
|
|
476
|
-
turned_off_during_daytime =
|
|
599
|
+
turned_off_during_daytime = 57,
|
|
600
|
+
/**
|
|
601
|
+
* Used by trains.
|
|
602
|
+
*/
|
|
603
|
+
waiting_at_stop = 45,
|
|
604
|
+
/**
|
|
605
|
+
* Used by inserters when wait_for_full_hand is set.
|
|
606
|
+
*/
|
|
607
|
+
waiting_for_more_items = 36,
|
|
608
|
+
/**
|
|
609
|
+
* Used by agricultural towers.
|
|
610
|
+
*/
|
|
611
|
+
waiting_for_plants_to_grow = 62,
|
|
612
|
+
/**
|
|
613
|
+
* Used by space platform hubs.
|
|
614
|
+
*/
|
|
615
|
+
waiting_for_rockets_to_arrive = 46,
|
|
477
616
|
/**
|
|
478
617
|
* Used by inserters.
|
|
479
618
|
*/
|
|
480
|
-
waiting_for_source_items =
|
|
619
|
+
waiting_for_source_items = 35,
|
|
481
620
|
/**
|
|
482
621
|
* Used by inserters and mining drills.
|
|
483
622
|
*/
|
|
484
|
-
waiting_for_space_in_destination =
|
|
623
|
+
waiting_for_space_in_destination = 37,
|
|
624
|
+
/**
|
|
625
|
+
* Used by the rocket silo.
|
|
626
|
+
*/
|
|
627
|
+
waiting_for_space_in_platform_hub = 40,
|
|
485
628
|
/**
|
|
486
629
|
* Used by inserters targeting entity ghosts.
|
|
487
630
|
*/
|
|
488
|
-
waiting_for_target_to_be_built =
|
|
631
|
+
waiting_for_target_to_be_built = 52,
|
|
489
632
|
/**
|
|
490
633
|
* Used by inserters targeting rails.
|
|
491
634
|
*/
|
|
492
|
-
waiting_for_train =
|
|
635
|
+
waiting_for_train = 53,
|
|
636
|
+
/**
|
|
637
|
+
* Used by space platform hubs.
|
|
638
|
+
*/
|
|
639
|
+
waiting_in_orbit = 44,
|
|
493
640
|
/**
|
|
494
641
|
* Used by the rocket silo.
|
|
495
642
|
*/
|
|
496
|
-
waiting_to_launch_rocket =
|
|
643
|
+
waiting_to_launch_rocket = 39,
|
|
497
644
|
working = 0
|
|
498
645
|
}
|
|
646
|
+
enum entity_status_diode {
|
|
647
|
+
green = 0,
|
|
648
|
+
red = 1,
|
|
649
|
+
yellow = 2
|
|
650
|
+
}
|
|
499
651
|
/**
|
|
500
652
|
* See the {@link events page | runtime:events} for more info on what events contain and when they get raised.
|
|
501
653
|
*/
|
|
502
654
|
enum events {
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
655
|
+
on_achievement_gained = 0,
|
|
656
|
+
on_ai_command_completed = 1,
|
|
657
|
+
on_area_cloned = 2,
|
|
658
|
+
on_biter_base_built = 3,
|
|
659
|
+
on_brush_cloned = 4,
|
|
660
|
+
on_build_base_arrived = 5,
|
|
661
|
+
on_built_entity = 6,
|
|
662
|
+
on_cancelled_deconstruction = 7,
|
|
663
|
+
on_cancelled_upgrade = 8,
|
|
664
|
+
on_character_corpse_expired = 9,
|
|
665
|
+
on_chart_tag_added = 10,
|
|
666
|
+
on_chart_tag_modified = 11,
|
|
667
|
+
on_chart_tag_removed = 12,
|
|
668
|
+
on_chunk_charted = 13,
|
|
669
|
+
on_chunk_deleted = 14,
|
|
670
|
+
on_chunk_generated = 15,
|
|
671
|
+
on_combat_robot_expired = 16,
|
|
672
|
+
on_console_chat = 17,
|
|
673
|
+
on_console_command = 18,
|
|
674
|
+
on_cutscene_cancelled = 19,
|
|
675
|
+
on_cutscene_finished = 20,
|
|
676
|
+
on_cutscene_started = 21,
|
|
677
|
+
on_cutscene_waypoint_reached = 22,
|
|
526
678
|
on_entity_cloned = 23,
|
|
527
679
|
on_entity_color_changed = 24,
|
|
528
680
|
on_entity_damaged = 25,
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
681
|
+
on_entity_died = 26,
|
|
682
|
+
on_entity_logistic_slot_changed = 27,
|
|
683
|
+
on_entity_renamed = 28,
|
|
684
|
+
on_entity_settings_pasted = 29,
|
|
685
|
+
on_entity_spawned = 30,
|
|
686
|
+
on_equipment_inserted = 31,
|
|
687
|
+
on_equipment_removed = 32,
|
|
688
|
+
on_force_cease_fire_changed = 33,
|
|
689
|
+
on_force_created = 34,
|
|
690
|
+
on_force_friends_changed = 35,
|
|
691
|
+
on_force_reset = 36,
|
|
692
|
+
on_forces_merged = 37,
|
|
693
|
+
on_forces_merging = 38,
|
|
694
|
+
on_game_created_from_scenario = 39,
|
|
695
|
+
on_gui_checked_state_changed = 40,
|
|
696
|
+
on_gui_click = 41,
|
|
697
|
+
on_gui_closed = 42,
|
|
698
|
+
on_gui_confirmed = 43,
|
|
699
|
+
on_gui_elem_changed = 44,
|
|
700
|
+
on_gui_hover = 45,
|
|
701
|
+
on_gui_leave = 46,
|
|
702
|
+
on_gui_location_changed = 47,
|
|
703
|
+
on_gui_opened = 48,
|
|
704
|
+
on_gui_selected_tab_changed = 49,
|
|
705
|
+
on_gui_selection_state_changed = 50,
|
|
706
|
+
on_gui_switch_state_changed = 51,
|
|
707
|
+
on_gui_text_changed = 52,
|
|
708
|
+
on_gui_value_changed = 53,
|
|
709
|
+
on_land_mine_armed = 54,
|
|
710
|
+
on_lua_shortcut = 55,
|
|
711
|
+
on_marked_for_deconstruction = 56,
|
|
712
|
+
on_marked_for_upgrade = 57,
|
|
713
|
+
on_market_item_purchased = 58,
|
|
714
|
+
on_mod_item_opened = 59,
|
|
715
|
+
on_object_destroyed = 60,
|
|
564
716
|
on_permission_group_added = 61,
|
|
565
717
|
on_permission_group_deleted = 62,
|
|
566
718
|
on_permission_group_edited = 63,
|
|
@@ -580,110 +732,125 @@ enum events {
|
|
|
580
732
|
on_player_cheat_mode_enabled = 77,
|
|
581
733
|
on_player_clicked_gps_tag = 78,
|
|
582
734
|
on_player_configured_blueprint = 79,
|
|
583
|
-
|
|
735
|
+
on_player_controller_changed = 80,
|
|
584
736
|
on_player_crafted_item = 81,
|
|
585
737
|
on_player_created = 82,
|
|
586
738
|
on_player_cursor_stack_changed = 83,
|
|
587
739
|
on_player_deconstructed_area = 84,
|
|
588
740
|
on_player_demoted = 85,
|
|
589
741
|
on_player_died = 86,
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
742
|
+
on_player_display_density_scale_changed = 87,
|
|
743
|
+
on_player_display_resolution_changed = 88,
|
|
744
|
+
on_player_display_scale_changed = 89,
|
|
745
|
+
on_player_driving_changed_state = 90,
|
|
746
|
+
on_player_dropped_item = 91,
|
|
747
|
+
on_player_fast_transferred = 92,
|
|
748
|
+
on_player_flipped_entity = 93,
|
|
749
|
+
on_player_flushed_fluid = 94,
|
|
750
|
+
on_player_gun_inventory_changed = 95,
|
|
751
|
+
on_player_input_method_changed = 96,
|
|
752
|
+
on_player_joined_game = 97,
|
|
753
|
+
on_player_kicked = 98,
|
|
754
|
+
on_player_left_game = 99,
|
|
755
|
+
on_player_locale_changed = 100,
|
|
756
|
+
on_player_main_inventory_changed = 101,
|
|
757
|
+
on_player_mined_entity = 102,
|
|
758
|
+
on_player_mined_item = 103,
|
|
759
|
+
on_player_mined_tile = 104,
|
|
760
|
+
on_player_muted = 105,
|
|
761
|
+
on_player_pipette = 106,
|
|
762
|
+
on_player_placed_equipment = 107,
|
|
763
|
+
on_player_promoted = 108,
|
|
764
|
+
on_player_removed = 109,
|
|
765
|
+
on_player_removed_equipment = 110,
|
|
766
|
+
on_player_repaired_entity = 111,
|
|
767
|
+
on_player_respawned = 112,
|
|
768
|
+
on_player_reverse_selected_area = 113,
|
|
769
|
+
on_player_rotated_entity = 114,
|
|
770
|
+
on_player_selected_area = 115,
|
|
771
|
+
on_player_set_quick_bar_slot = 116,
|
|
772
|
+
on_player_setup_blueprint = 117,
|
|
773
|
+
on_player_toggled_alt_mode = 118,
|
|
774
|
+
on_player_toggled_map_editor = 119,
|
|
775
|
+
on_player_trash_inventory_changed = 120,
|
|
776
|
+
on_player_unbanned = 121,
|
|
777
|
+
on_player_unmuted = 122,
|
|
778
|
+
on_player_used_capsule = 123,
|
|
779
|
+
on_player_used_spidertron_remote = 124,
|
|
780
|
+
on_post_entity_died = 125,
|
|
781
|
+
on_pre_build = 126,
|
|
782
|
+
on_pre_chunk_deleted = 127,
|
|
783
|
+
on_pre_entity_settings_pasted = 128,
|
|
784
|
+
on_pre_ghost_deconstructed = 129,
|
|
785
|
+
on_pre_ghost_upgraded = 130,
|
|
786
|
+
on_pre_permission_group_deleted = 131,
|
|
787
|
+
on_pre_permission_string_imported = 132,
|
|
788
|
+
on_pre_player_crafted_item = 133,
|
|
789
|
+
on_pre_player_died = 134,
|
|
790
|
+
on_pre_player_left_game = 135,
|
|
791
|
+
on_pre_player_mined_item = 136,
|
|
792
|
+
on_pre_player_removed = 137,
|
|
793
|
+
on_pre_player_toggled_map_editor = 138,
|
|
794
|
+
on_pre_robot_exploded_cliff = 139,
|
|
795
|
+
on_pre_scenario_finished = 140,
|
|
796
|
+
on_pre_script_inventory_resized = 141,
|
|
797
|
+
on_pre_surface_cleared = 142,
|
|
798
|
+
on_pre_surface_deleted = 143,
|
|
799
|
+
on_redo_applied = 144,
|
|
800
|
+
on_research_cancelled = 145,
|
|
801
|
+
on_research_finished = 146,
|
|
802
|
+
on_research_moved = 147,
|
|
803
|
+
on_research_reversed = 148,
|
|
804
|
+
on_research_started = 149,
|
|
805
|
+
on_resource_depleted = 150,
|
|
806
|
+
on_robot_built_entity = 151,
|
|
807
|
+
on_robot_built_tile = 152,
|
|
808
|
+
on_robot_exploded_cliff = 153,
|
|
809
|
+
on_robot_mined = 154,
|
|
810
|
+
on_robot_mined_entity = 155,
|
|
811
|
+
on_robot_mined_tile = 156,
|
|
812
|
+
on_robot_pre_mined = 157,
|
|
813
|
+
on_rocket_launch_ordered = 158,
|
|
814
|
+
on_rocket_launched = 159,
|
|
815
|
+
on_runtime_mod_setting_changed = 160,
|
|
816
|
+
on_script_inventory_resized = 161,
|
|
817
|
+
on_script_path_request_finished = 162,
|
|
818
|
+
on_script_trigger_effect = 163,
|
|
819
|
+
on_sector_scanned = 164,
|
|
820
|
+
on_segment_entity_created = 165,
|
|
821
|
+
on_selected_entity_changed = 166,
|
|
822
|
+
on_space_platform_built_entity = 167,
|
|
823
|
+
on_space_platform_built_tile = 168,
|
|
824
|
+
on_space_platform_changed_state = 169,
|
|
825
|
+
on_space_platform_mined_entity = 170,
|
|
826
|
+
on_space_platform_mined_item = 171,
|
|
827
|
+
on_space_platform_mined_tile = 172,
|
|
828
|
+
on_space_platform_pre_mined = 173,
|
|
829
|
+
on_spider_command_completed = 174,
|
|
830
|
+
on_string_translated = 175,
|
|
831
|
+
on_surface_cleared = 176,
|
|
832
|
+
on_surface_created = 177,
|
|
833
|
+
on_surface_deleted = 178,
|
|
834
|
+
on_surface_imported = 179,
|
|
835
|
+
on_surface_renamed = 180,
|
|
836
|
+
on_technology_effects_reset = 181,
|
|
837
|
+
on_tick = 182,
|
|
838
|
+
on_train_changed_state = 183,
|
|
839
|
+
on_train_created = 184,
|
|
840
|
+
on_train_schedule_changed = 185,
|
|
841
|
+
on_trigger_created_entity = 186,
|
|
842
|
+
on_trigger_fired_artillery = 187,
|
|
843
|
+
on_undo_applied = 188,
|
|
844
|
+
on_unit_added_to_group = 189,
|
|
845
|
+
on_unit_group_created = 190,
|
|
846
|
+
on_unit_group_finished_gathering = 191,
|
|
847
|
+
on_unit_removed_from_group = 192,
|
|
848
|
+
on_worker_robot_expired = 193,
|
|
849
|
+
script_raised_built = 194,
|
|
850
|
+
script_raised_destroy = 195,
|
|
851
|
+
script_raised_revive = 196,
|
|
852
|
+
script_raised_set_tiles = 197,
|
|
853
|
+
script_raised_teleported = 198
|
|
687
854
|
}
|
|
688
855
|
enum flow_precision_index {
|
|
689
856
|
fifty_hours = 5,
|
|
@@ -726,275 +893,345 @@ enum gui_type {
|
|
|
726
893
|
custom = 4,
|
|
727
894
|
entity = 5,
|
|
728
895
|
equipment = 6,
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
896
|
+
global_electric_network = 7,
|
|
897
|
+
item = 8,
|
|
898
|
+
logistic = 9,
|
|
899
|
+
none = 10,
|
|
900
|
+
opened_entity_grid = 11,
|
|
901
|
+
other_player = 12,
|
|
902
|
+
permissions = 13,
|
|
903
|
+
player_management = 14,
|
|
904
|
+
production = 15,
|
|
905
|
+
script_inventory = 16,
|
|
906
|
+
server_management = 17,
|
|
907
|
+
tile = 18,
|
|
908
|
+
trains = 19
|
|
742
909
|
}
|
|
743
910
|
enum input_action {
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
911
|
+
activate_interrupt = 0,
|
|
912
|
+
activate_paste = 1,
|
|
913
|
+
add_decider_combinator_condition = 2,
|
|
914
|
+
add_decider_combinator_output = 3,
|
|
915
|
+
add_logistic_section = 4,
|
|
916
|
+
add_permission_group = 5,
|
|
917
|
+
add_pin = 6,
|
|
918
|
+
add_train_interrupt = 7,
|
|
919
|
+
add_train_station = 8,
|
|
920
|
+
adjust_blueprint_snapping = 9,
|
|
921
|
+
admin_action = 10,
|
|
922
|
+
alt_reverse_select_area = 11,
|
|
923
|
+
alt_select_area = 12,
|
|
924
|
+
alt_select_blueprint_entities = 13,
|
|
925
|
+
alternative_copy = 14,
|
|
926
|
+
begin_mining = 15,
|
|
927
|
+
begin_mining_terrain = 16,
|
|
928
|
+
build = 17,
|
|
929
|
+
build_rail = 18,
|
|
930
|
+
build_terrain = 19,
|
|
931
|
+
cancel_craft = 20,
|
|
932
|
+
cancel_deconstruct = 21,
|
|
933
|
+
cancel_delete_space_platform = 22,
|
|
934
|
+
cancel_new_blueprint = 23,
|
|
935
|
+
cancel_research = 24,
|
|
936
|
+
cancel_upgrade = 25,
|
|
937
|
+
change_active_character_tab = 26,
|
|
938
|
+
change_active_item_group_for_crafting = 27,
|
|
939
|
+
change_active_item_group_for_filters = 28,
|
|
940
|
+
change_active_quick_bar = 29,
|
|
941
|
+
change_arithmetic_combinator_parameters = 30,
|
|
942
|
+
change_entity_label = 31,
|
|
943
|
+
change_item_label = 32,
|
|
944
|
+
change_logistic_point_group = 33,
|
|
945
|
+
change_multiplayer_config = 34,
|
|
946
|
+
change_picking_state = 35,
|
|
947
|
+
change_programmable_speaker_alert_parameters = 36,
|
|
948
|
+
change_programmable_speaker_circuit_parameters = 37,
|
|
949
|
+
change_programmable_speaker_parameters = 38,
|
|
950
|
+
change_riding_state = 39,
|
|
951
|
+
change_selector_combinator_parameters = 40,
|
|
952
|
+
change_shooting_state = 41,
|
|
953
|
+
change_train_name = 42,
|
|
954
|
+
change_train_stop_station = 43,
|
|
955
|
+
change_train_wait_condition = 44,
|
|
956
|
+
change_train_wait_condition_data = 45,
|
|
957
|
+
clear_cursor = 46,
|
|
958
|
+
connect_rolling_stock = 47,
|
|
959
|
+
copy = 48,
|
|
960
|
+
copy_entity_settings = 49,
|
|
961
|
+
copy_large_opened_blueprint = 50,
|
|
962
|
+
copy_large_opened_item = 51,
|
|
963
|
+
copy_opened_blueprint = 52,
|
|
964
|
+
copy_opened_item = 53,
|
|
965
|
+
craft = 54,
|
|
966
|
+
create_space_platform = 55,
|
|
967
|
+
cursor_split = 56,
|
|
968
|
+
cursor_transfer = 57,
|
|
969
|
+
custom_input = 58,
|
|
970
|
+
cycle_blueprint_book_backwards = 59,
|
|
971
|
+
cycle_blueprint_book_forwards = 60,
|
|
972
|
+
cycle_quality_down = 61,
|
|
973
|
+
cycle_quality_up = 62,
|
|
974
|
+
deconstruct = 63,
|
|
975
|
+
delete_blueprint_library = 64,
|
|
976
|
+
delete_blueprint_record = 65,
|
|
977
|
+
delete_custom_tag = 66,
|
|
978
|
+
delete_logistic_group = 67,
|
|
979
|
+
delete_permission_group = 68,
|
|
980
|
+
delete_space_platform = 69,
|
|
981
|
+
destroy_item = 70,
|
|
982
|
+
destroy_opened_item = 71,
|
|
983
|
+
disconnect_rolling_stock = 72,
|
|
984
|
+
drag_decider_combinator_condition = 73,
|
|
985
|
+
drag_decider_combinator_output = 74,
|
|
986
|
+
drag_train_schedule = 75,
|
|
987
|
+
drag_train_schedule_interrupt = 76,
|
|
988
|
+
drag_train_wait_condition = 77,
|
|
989
|
+
drop_blueprint_record = 78,
|
|
990
|
+
drop_item = 79,
|
|
991
|
+
edit_blueprint_tool_preview = 80,
|
|
992
|
+
edit_custom_tag = 81,
|
|
993
|
+
edit_display_panel = 82,
|
|
994
|
+
edit_display_panel_always_show = 83,
|
|
995
|
+
edit_display_panel_icon = 84,
|
|
996
|
+
edit_display_panel_parameters = 85,
|
|
997
|
+
edit_display_panel_show_in_chart = 86,
|
|
998
|
+
edit_interrupt = 87,
|
|
999
|
+
edit_permission_group = 88,
|
|
1000
|
+
edit_pin = 89,
|
|
1001
|
+
enable_transitional_requests = 90,
|
|
1002
|
+
export_blueprint = 91,
|
|
1003
|
+
fast_entity_split = 92,
|
|
1004
|
+
fast_entity_transfer = 93,
|
|
1005
|
+
flip_entity = 94,
|
|
1006
|
+
flush_opened_entity_fluid = 95,
|
|
1007
|
+
flush_opened_entity_specific_fluid = 96,
|
|
1008
|
+
go_to_train_station = 97,
|
|
1009
|
+
grab_blueprint_record = 98,
|
|
1010
|
+
gui_checked_state_changed = 99,
|
|
1011
|
+
gui_click = 100,
|
|
1012
|
+
gui_confirmed = 101,
|
|
1013
|
+
gui_elem_changed = 102,
|
|
1014
|
+
gui_hover = 103,
|
|
1015
|
+
gui_leave = 104,
|
|
1016
|
+
gui_location_changed = 105,
|
|
1017
|
+
gui_selected_tab_changed = 106,
|
|
1018
|
+
gui_selection_state_changed = 107,
|
|
1019
|
+
gui_switch_state_changed = 108,
|
|
1020
|
+
gui_text_changed = 109,
|
|
1021
|
+
gui_value_changed = 110,
|
|
1022
|
+
import_blueprint = 111,
|
|
1023
|
+
import_blueprint_string = 112,
|
|
1024
|
+
import_blueprints_filtered = 113,
|
|
1025
|
+
import_permissions_string = 114,
|
|
1026
|
+
instantly_create_space_platform = 115,
|
|
1027
|
+
inventory_split = 116,
|
|
1028
|
+
inventory_transfer = 117,
|
|
1029
|
+
land_at_planet = 118,
|
|
1030
|
+
launch_rocket = 119,
|
|
1031
|
+
lua_shortcut = 120,
|
|
1032
|
+
map_editor_action = 121,
|
|
1033
|
+
market_offer = 122,
|
|
1034
|
+
mod_settings_changed = 123,
|
|
1035
|
+
modify_decider_combinator_condition = 124,
|
|
1036
|
+
modify_decider_combinator_output = 125,
|
|
1037
|
+
move_research = 126,
|
|
1038
|
+
open_achievements_gui = 127,
|
|
1039
|
+
open_blueprint_library_gui = 128,
|
|
1040
|
+
open_blueprint_record = 129,
|
|
1041
|
+
open_bonus_gui = 130,
|
|
1042
|
+
open_character_gui = 131,
|
|
1043
|
+
open_current_vehicle_gui = 132,
|
|
1044
|
+
open_equipment = 133,
|
|
1045
|
+
open_global_electric_network_gui = 134,
|
|
1046
|
+
open_gui = 135,
|
|
1047
|
+
open_item = 136,
|
|
1048
|
+
open_logistics_gui = 137,
|
|
1049
|
+
open_mod_item = 138,
|
|
1050
|
+
open_new_platform_button_from_rocket_silo = 139,
|
|
1051
|
+
open_opened_entity_grid = 140,
|
|
1052
|
+
open_parent_of_opened_item = 141,
|
|
1053
|
+
open_production_gui = 142,
|
|
1054
|
+
open_train_gui = 143,
|
|
1055
|
+
open_train_station_gui = 144,
|
|
1056
|
+
open_trains_gui = 145,
|
|
1057
|
+
parametrise_blueprint = 146,
|
|
1058
|
+
paste_entity_settings = 147,
|
|
1059
|
+
pin_alert_group = 148,
|
|
1060
|
+
pin_custom_alert = 149,
|
|
1061
|
+
pin_search_result = 150,
|
|
1062
|
+
pipette = 151,
|
|
1063
|
+
place_equipment = 152,
|
|
1064
|
+
quick_bar_pick_slot = 153,
|
|
1065
|
+
quick_bar_set_selected_page = 154,
|
|
1066
|
+
quick_bar_set_slot = 155,
|
|
1067
|
+
reassign_blueprint = 156,
|
|
1068
|
+
redo = 157,
|
|
1069
|
+
remote_view_entity = 158,
|
|
1070
|
+
remote_view_surface = 159,
|
|
1071
|
+
remove_cables = 160,
|
|
1072
|
+
remove_decider_combinator_condition = 161,
|
|
1073
|
+
remove_decider_combinator_output = 162,
|
|
1074
|
+
remove_logistic_section = 163,
|
|
1075
|
+
remove_pin = 164,
|
|
1076
|
+
remove_train_interrupt = 165,
|
|
1077
|
+
remove_train_station = 166,
|
|
1078
|
+
rename_interrupt = 167,
|
|
1079
|
+
rename_space_platform = 168,
|
|
1080
|
+
reorder_logistic_section = 169,
|
|
1081
|
+
request_missing_construction_materials = 170,
|
|
1082
|
+
reset_assembling_machine = 171,
|
|
1083
|
+
reverse_select_area = 172,
|
|
1084
|
+
rotate_entity = 173,
|
|
1085
|
+
select_area = 174,
|
|
1086
|
+
select_asteroid_chunk_slot = 175,
|
|
1087
|
+
select_blueprint_entities = 176,
|
|
1088
|
+
select_entity_filter_slot = 177,
|
|
1089
|
+
select_entity_slot = 178,
|
|
1090
|
+
select_item_filter = 179,
|
|
1091
|
+
select_mapper_slot_from = 180,
|
|
1092
|
+
select_mapper_slot_to = 181,
|
|
1093
|
+
select_next_valid_gun = 182,
|
|
1094
|
+
select_tile_slot = 183,
|
|
1095
|
+
send_spidertron = 184,
|
|
1096
|
+
send_stack_to_trash = 185,
|
|
1097
|
+
send_stacks_to_trash = 186,
|
|
1098
|
+
send_train_to_pin_target = 187,
|
|
1099
|
+
set_behavior_mode = 188,
|
|
1100
|
+
set_car_weapons_control = 189,
|
|
1101
|
+
set_cheat_mode_quality = 190,
|
|
1102
|
+
set_circuit_condition = 191,
|
|
1103
|
+
set_circuit_mode_of_operation = 192,
|
|
1104
|
+
set_combinator_description = 193,
|
|
1105
|
+
set_copy_color_from_train_stop = 194,
|
|
1106
|
+
set_deconstruction_item_tile_selection_mode = 195,
|
|
1107
|
+
set_deconstruction_item_trees_and_rocks_only = 196,
|
|
1108
|
+
set_entity_color = 197,
|
|
1109
|
+
set_entity_energy_property = 198,
|
|
1110
|
+
set_filter = 199,
|
|
1111
|
+
set_ghost_cursor = 200,
|
|
1112
|
+
set_heat_interface_mode = 201,
|
|
1113
|
+
set_heat_interface_temperature = 202,
|
|
1114
|
+
set_infinity_container_filter_item = 203,
|
|
1115
|
+
set_infinity_container_remove_unfiltered_items = 204,
|
|
1116
|
+
set_infinity_pipe_filter = 205,
|
|
1117
|
+
set_inserter_max_stack_size = 206,
|
|
1118
|
+
set_inventory_bar = 207,
|
|
1119
|
+
set_lamp_always_on = 208,
|
|
1120
|
+
set_linked_container_link_i_d = 209,
|
|
1121
|
+
set_logistic_filter_item = 210,
|
|
1122
|
+
set_logistic_network_name = 211,
|
|
1123
|
+
set_logistic_section_active = 212,
|
|
1124
|
+
set_player_color = 213,
|
|
1125
|
+
set_pump_fluid_filter = 214,
|
|
1126
|
+
set_request_from_buffers = 215,
|
|
1127
|
+
set_research_finished_stops_game = 216,
|
|
1128
|
+
set_rocket_silo_send_to_orbit_automated_mode = 217,
|
|
1129
|
+
set_schedule_record_allow_unloading = 218,
|
|
1130
|
+
set_signal = 219,
|
|
1131
|
+
set_splitter_priority = 220,
|
|
1132
|
+
set_spoil_priority = 221,
|
|
1133
|
+
set_train_stop_priority = 222,
|
|
1134
|
+
set_train_stopped = 223,
|
|
1135
|
+
set_trains_limit = 224,
|
|
1136
|
+
set_turret_ignore_unlisted = 225,
|
|
1137
|
+
set_use_inserter_filters = 226,
|
|
1138
|
+
set_vehicle_automatic_targeting_parameters = 227,
|
|
1139
|
+
setup_assembling_machine = 228,
|
|
1140
|
+
setup_blueprint = 229,
|
|
1141
|
+
setup_single_blueprint_record = 230,
|
|
1142
|
+
spawn_item = 231,
|
|
1143
|
+
spectator_change_surface = 232,
|
|
1144
|
+
stack_split = 233,
|
|
1145
|
+
stack_transfer = 234,
|
|
1146
|
+
start_repair = 235,
|
|
1147
|
+
start_research = 236,
|
|
1148
|
+
start_walking = 237,
|
|
1149
|
+
stop_drag_build = 238,
|
|
1150
|
+
swap_logistic_filter_items = 239,
|
|
1151
|
+
switch_connect_to_logistic_network = 240,
|
|
1152
|
+
switch_constant_combinator_state = 241,
|
|
1153
|
+
switch_inserter_filter_mode_state = 242,
|
|
1154
|
+
switch_mining_drill_filter_mode_state = 243,
|
|
1155
|
+
switch_power_switch_state = 244,
|
|
1156
|
+
take_equipment = 245,
|
|
1157
|
+
toggle_artillery_auto_targeting = 246,
|
|
1158
|
+
toggle_deconstruction_item_entity_filter_mode = 247,
|
|
1159
|
+
toggle_deconstruction_item_tile_filter_mode = 248,
|
|
1160
|
+
toggle_driving = 249,
|
|
1161
|
+
toggle_enable_vehicle_logistics_while_moving = 250,
|
|
1162
|
+
toggle_entity_logistic_requests = 251,
|
|
1163
|
+
toggle_equipment_movement_bonus = 252,
|
|
1164
|
+
toggle_map_editor = 253,
|
|
1165
|
+
toggle_personal_logistic_requests = 254,
|
|
1166
|
+
toggle_personal_roboport = 255,
|
|
1167
|
+
toggle_selected_entity = 256,
|
|
1168
|
+
toggle_show_entity_info = 257,
|
|
1169
|
+
translate_string = 258,
|
|
1170
|
+
trash_not_requested_items = 259,
|
|
1171
|
+
undo = 260,
|
|
1172
|
+
upgrade = 261,
|
|
1173
|
+
upgrade_opened_blueprint_by_item = 262,
|
|
1174
|
+
upgrade_opened_blueprint_by_record = 263,
|
|
1175
|
+
use_item = 264,
|
|
1176
|
+
wire_dragging = 265,
|
|
1177
|
+
write_to_console = 266
|
|
947
1178
|
}
|
|
948
1179
|
enum input_method {
|
|
949
1180
|
game_controller = 1,
|
|
950
1181
|
keyboard_and_mouse = 0
|
|
951
1182
|
}
|
|
952
1183
|
enum inventory {
|
|
953
|
-
artillery_turret_ammo =
|
|
954
|
-
artillery_wagon_ammo =
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
1184
|
+
artillery_turret_ammo = 42,
|
|
1185
|
+
artillery_wagon_ammo = 43,
|
|
1186
|
+
assembling_machine_dump = 25,
|
|
1187
|
+
assembling_machine_input = 22,
|
|
1188
|
+
assembling_machine_modules = 24,
|
|
1189
|
+
assembling_machine_output = 23,
|
|
1190
|
+
beacon_modules = 40,
|
|
959
1191
|
burnt_result = 1,
|
|
960
|
-
car_ammo =
|
|
961
|
-
car_trunk =
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
1192
|
+
car_ammo = 37,
|
|
1193
|
+
car_trunk = 36,
|
|
1194
|
+
cargo_landing_pad_main = 49,
|
|
1195
|
+
cargo_landing_pad_trash = 50,
|
|
1196
|
+
cargo_unit = 35,
|
|
1197
|
+
cargo_wagon = 38,
|
|
1198
|
+
character_ammo = 9,
|
|
1199
|
+
character_armor = 10,
|
|
1200
|
+
character_corpse = 41,
|
|
1201
|
+
character_guns = 8,
|
|
1202
|
+
character_main = 7,
|
|
1203
|
+
character_trash = 12,
|
|
1204
|
+
character_vehicle = 11,
|
|
970
1205
|
chest = 2,
|
|
971
|
-
editor_ammo =
|
|
972
|
-
editor_armor =
|
|
973
|
-
editor_guns =
|
|
974
|
-
editor_main =
|
|
1206
|
+
editor_ammo = 16,
|
|
1207
|
+
editor_armor = 17,
|
|
1208
|
+
editor_guns = 15,
|
|
1209
|
+
editor_main = 14,
|
|
975
1210
|
fuel = 0,
|
|
976
|
-
furnace_modules =
|
|
977
|
-
furnace_result =
|
|
978
|
-
furnace_source =
|
|
979
|
-
god_main =
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
1211
|
+
furnace_modules = 6,
|
|
1212
|
+
furnace_result = 5,
|
|
1213
|
+
furnace_source = 4,
|
|
1214
|
+
god_main = 13,
|
|
1215
|
+
hub_main = 47,
|
|
1216
|
+
hub_trash = 48,
|
|
1217
|
+
item_main = 29,
|
|
1218
|
+
lab_input = 26,
|
|
1219
|
+
lab_modules = 27,
|
|
1220
|
+
logistic_container_trash = 3,
|
|
1221
|
+
mining_drill_modules = 28,
|
|
1222
|
+
roboport_material = 19,
|
|
1223
|
+
roboport_robot = 18,
|
|
1224
|
+
robot_cargo = 20,
|
|
1225
|
+
robot_repair = 21,
|
|
1226
|
+
rocket_silo_input = 32,
|
|
1227
|
+
rocket_silo_modules = 34,
|
|
1228
|
+
rocket_silo_output = 33,
|
|
1229
|
+
rocket_silo_rocket = 30,
|
|
1230
|
+
rocket_silo_trash = 31,
|
|
1231
|
+
spider_ammo = 45,
|
|
1232
|
+
spider_trash = 46,
|
|
1233
|
+
spider_trunk = 44,
|
|
1234
|
+
turret_ammo = 39
|
|
998
1235
|
}
|
|
999
1236
|
enum logistic_member_index {
|
|
1000
1237
|
character_provider = 4,
|
|
@@ -1002,6 +1239,7 @@ enum logistic_member_index {
|
|
|
1002
1239
|
character_storage = 3,
|
|
1003
1240
|
generic_on_off_behavior = 5,
|
|
1004
1241
|
logistic_container = 0,
|
|
1242
|
+
spidertron_requester = 6,
|
|
1005
1243
|
vehicle_storage = 1
|
|
1006
1244
|
}
|
|
1007
1245
|
enum logistic_mode {
|
|
@@ -1012,12 +1250,30 @@ enum logistic_mode {
|
|
|
1012
1250
|
requester = 3,
|
|
1013
1251
|
storage = 2
|
|
1014
1252
|
}
|
|
1253
|
+
enum logistic_section_type {
|
|
1254
|
+
circuit_controlled = 1,
|
|
1255
|
+
manual = 0,
|
|
1256
|
+
/**
|
|
1257
|
+
* Used by space platform hubs.
|
|
1258
|
+
*/
|
|
1259
|
+
request_missing_materials_controlled = 3,
|
|
1260
|
+
/**
|
|
1261
|
+
* Used by rocket silos.
|
|
1262
|
+
*/
|
|
1263
|
+
transitional_request_controlled = 2
|
|
1264
|
+
}
|
|
1015
1265
|
enum mouse_button_type {
|
|
1016
1266
|
left = 1,
|
|
1017
1267
|
middle = 3,
|
|
1018
1268
|
none = 0,
|
|
1019
1269
|
right = 2
|
|
1020
1270
|
}
|
|
1271
|
+
enum moving_state {
|
|
1272
|
+
adaptive = 2,
|
|
1273
|
+
moving = 1,
|
|
1274
|
+
stale = 0,
|
|
1275
|
+
stuck = 3
|
|
1276
|
+
}
|
|
1021
1277
|
enum print_skip {
|
|
1022
1278
|
/**
|
|
1023
1279
|
* Print will be skipped if same text was recently printed (within last 60 ticks). Used by most game messages.
|
|
@@ -1038,9 +1294,531 @@ enum print_sound {
|
|
|
1038
1294
|
use_player_settings = 2
|
|
1039
1295
|
}
|
|
1040
1296
|
/**
|
|
1041
|
-
*
|
|
1297
|
+
* This define describes all top-level prototypes and their associated subtypes. It is organized as a lookup table, meaning the values of all the defines is `0`. As an example, `defines.prototypes['entity']` looks like `{furnace=0, inserter=0, container=0, ...}`.
|
|
1042
1298
|
*/
|
|
1043
|
-
|
|
1299
|
+
namespace prototypes {
|
|
1300
|
+
enum achievement {
|
|
1301
|
+
achievement = 0,
|
|
1302
|
+
'build-entity-achievement' = 1,
|
|
1303
|
+
'change-surface-achievement' = 2,
|
|
1304
|
+
'combat-robot-count-achievement' = 3,
|
|
1305
|
+
'complete-objective-achievement' = 4,
|
|
1306
|
+
'construct-with-robots-achievement' = 5,
|
|
1307
|
+
'create-platform-achievement' = 6,
|
|
1308
|
+
'deconstruct-with-robots-achievement' = 7,
|
|
1309
|
+
'deliver-by-robots-achievement' = 8,
|
|
1310
|
+
'deplete-resource-achievement' = 9,
|
|
1311
|
+
'destroy-cliff-achievement' = 10,
|
|
1312
|
+
'dont-build-entity-achievement' = 11,
|
|
1313
|
+
'dont-craft-manually-achievement' = 12,
|
|
1314
|
+
'dont-kill-manually-achievement' = 13,
|
|
1315
|
+
'dont-research-before-researching-achievement' = 14,
|
|
1316
|
+
'dont-use-entity-in-energy-production-achievement' = 15,
|
|
1317
|
+
'equip-armor-achievement' = 16,
|
|
1318
|
+
'group-attack-achievement' = 17,
|
|
1319
|
+
'kill-achievement' = 18,
|
|
1320
|
+
'module-transfer-achievement' = 19,
|
|
1321
|
+
'place-equipment-achievement' = 20,
|
|
1322
|
+
'player-damaged-achievement' = 21,
|
|
1323
|
+
'produce-achievement' = 22,
|
|
1324
|
+
'produce-per-hour-achievement' = 23,
|
|
1325
|
+
'research-achievement' = 24,
|
|
1326
|
+
'research-with-science-pack-achievement' = 25,
|
|
1327
|
+
'shoot-achievement' = 26,
|
|
1328
|
+
'space-connection-distance-traveled-achievement' = 27,
|
|
1329
|
+
'train-path-achievement' = 28,
|
|
1330
|
+
'use-item-achievement' = 29
|
|
1331
|
+
}
|
|
1332
|
+
/**
|
|
1333
|
+
* @customName active-trigger
|
|
1334
|
+
*/
|
|
1335
|
+
enum active_trigger {
|
|
1336
|
+
'chain-active-trigger' = 0,
|
|
1337
|
+
'delayed-active-trigger' = 1
|
|
1338
|
+
}
|
|
1339
|
+
/**
|
|
1340
|
+
* @customName airborne-pollutant
|
|
1341
|
+
*/
|
|
1342
|
+
enum airborne_pollutant {
|
|
1343
|
+
'airborne-pollutant' = 0
|
|
1344
|
+
}
|
|
1345
|
+
/**
|
|
1346
|
+
* @customName ambient-sound
|
|
1347
|
+
*/
|
|
1348
|
+
enum ambient_sound {
|
|
1349
|
+
'ambient-sound' = 0
|
|
1350
|
+
}
|
|
1351
|
+
/**
|
|
1352
|
+
* @customName ammo-category
|
|
1353
|
+
*/
|
|
1354
|
+
enum ammo_category {
|
|
1355
|
+
'ammo-category' = 0
|
|
1356
|
+
}
|
|
1357
|
+
enum animation {
|
|
1358
|
+
animation = 0
|
|
1359
|
+
}
|
|
1360
|
+
/**
|
|
1361
|
+
* @customName asteroid-chunk
|
|
1362
|
+
*/
|
|
1363
|
+
enum asteroid_chunk {
|
|
1364
|
+
'asteroid-chunk' = 0
|
|
1365
|
+
}
|
|
1366
|
+
/**
|
|
1367
|
+
* @customName autoplace-control
|
|
1368
|
+
*/
|
|
1369
|
+
enum autoplace_control {
|
|
1370
|
+
'autoplace-control' = 0
|
|
1371
|
+
}
|
|
1372
|
+
/**
|
|
1373
|
+
* @customName burner-usage
|
|
1374
|
+
*/
|
|
1375
|
+
enum burner_usage {
|
|
1376
|
+
'burner-usage' = 0
|
|
1377
|
+
}
|
|
1378
|
+
/**
|
|
1379
|
+
* @customName collision-layer
|
|
1380
|
+
*/
|
|
1381
|
+
enum collision_layer {
|
|
1382
|
+
'collision-layer' = 0
|
|
1383
|
+
}
|
|
1384
|
+
/**
|
|
1385
|
+
* @customName custom-event
|
|
1386
|
+
*/
|
|
1387
|
+
enum custom_event {
|
|
1388
|
+
'custom-event' = 0
|
|
1389
|
+
}
|
|
1390
|
+
/**
|
|
1391
|
+
* @customName custom-input
|
|
1392
|
+
*/
|
|
1393
|
+
enum custom_input {
|
|
1394
|
+
'custom-input' = 0
|
|
1395
|
+
}
|
|
1396
|
+
/**
|
|
1397
|
+
* @customName damage-type
|
|
1398
|
+
*/
|
|
1399
|
+
enum damage_type {
|
|
1400
|
+
'damage-type' = 0
|
|
1401
|
+
}
|
|
1402
|
+
enum decorative {
|
|
1403
|
+
'optimized-decorative' = 0
|
|
1404
|
+
}
|
|
1405
|
+
/**
|
|
1406
|
+
* @customName deliver-category
|
|
1407
|
+
*/
|
|
1408
|
+
enum deliver_category {
|
|
1409
|
+
'deliver-category' = 0
|
|
1410
|
+
}
|
|
1411
|
+
/**
|
|
1412
|
+
* @customName deliver-impact-combination
|
|
1413
|
+
*/
|
|
1414
|
+
enum deliver_impact_combination {
|
|
1415
|
+
'deliver-impact-combination' = 0
|
|
1416
|
+
}
|
|
1417
|
+
/**
|
|
1418
|
+
* @customName editor-controller
|
|
1419
|
+
*/
|
|
1420
|
+
enum editor_controller {
|
|
1421
|
+
'editor-controller' = 0
|
|
1422
|
+
}
|
|
1423
|
+
enum entity {
|
|
1424
|
+
accumulator = 0,
|
|
1425
|
+
'agricultural-tower' = 1,
|
|
1426
|
+
'ammo-turret' = 2,
|
|
1427
|
+
'arithmetic-combinator' = 3,
|
|
1428
|
+
arrow = 4,
|
|
1429
|
+
'artillery-flare' = 5,
|
|
1430
|
+
'artillery-projectile' = 6,
|
|
1431
|
+
'artillery-turret' = 7,
|
|
1432
|
+
'artillery-wagon' = 8,
|
|
1433
|
+
'assembling-machine' = 9,
|
|
1434
|
+
asteroid = 10,
|
|
1435
|
+
'asteroid-collector' = 11,
|
|
1436
|
+
beacon = 12,
|
|
1437
|
+
beam = 13,
|
|
1438
|
+
boiler = 14,
|
|
1439
|
+
'burner-generator' = 15,
|
|
1440
|
+
'capture-robot' = 16,
|
|
1441
|
+
car = 17,
|
|
1442
|
+
'cargo-bay' = 18,
|
|
1443
|
+
'cargo-landing-pad' = 19,
|
|
1444
|
+
'cargo-pod' = 20,
|
|
1445
|
+
'cargo-wagon' = 21,
|
|
1446
|
+
character = 22,
|
|
1447
|
+
'character-corpse' = 23,
|
|
1448
|
+
cliff = 24,
|
|
1449
|
+
'combat-robot' = 25,
|
|
1450
|
+
'constant-combinator' = 26,
|
|
1451
|
+
'construction-robot' = 27,
|
|
1452
|
+
container = 28,
|
|
1453
|
+
corpse = 29,
|
|
1454
|
+
'crafting-machine' = 30,
|
|
1455
|
+
'curved-rail-a' = 31,
|
|
1456
|
+
'curved-rail-b' = 32,
|
|
1457
|
+
'decider-combinator' = 33,
|
|
1458
|
+
'deconstructible-tile-proxy' = 34,
|
|
1459
|
+
'display-panel' = 35,
|
|
1460
|
+
'electric-energy-interface' = 36,
|
|
1461
|
+
'electric-pole' = 37,
|
|
1462
|
+
'electric-turret' = 38,
|
|
1463
|
+
'elevated-curved-rail-a' = 39,
|
|
1464
|
+
'elevated-curved-rail-b' = 40,
|
|
1465
|
+
'elevated-half-diagonal-rail' = 41,
|
|
1466
|
+
'elevated-straight-rail' = 42,
|
|
1467
|
+
'entity-ghost' = 43,
|
|
1468
|
+
explosion = 44,
|
|
1469
|
+
fire = 45,
|
|
1470
|
+
fish = 46,
|
|
1471
|
+
'fluid-turret' = 47,
|
|
1472
|
+
'fluid-wagon' = 48,
|
|
1473
|
+
furnace = 49,
|
|
1474
|
+
'fusion-generator' = 50,
|
|
1475
|
+
'fusion-reactor' = 51,
|
|
1476
|
+
gate = 52,
|
|
1477
|
+
generator = 53,
|
|
1478
|
+
'half-diagonal-rail' = 54,
|
|
1479
|
+
'heat-interface' = 55,
|
|
1480
|
+
'heat-pipe' = 56,
|
|
1481
|
+
'highlight-box' = 57,
|
|
1482
|
+
'infinity-container' = 58,
|
|
1483
|
+
'infinity-pipe' = 59,
|
|
1484
|
+
inserter = 60,
|
|
1485
|
+
'item-entity' = 61,
|
|
1486
|
+
'item-request-proxy' = 62,
|
|
1487
|
+
lab = 63,
|
|
1488
|
+
lamp = 64,
|
|
1489
|
+
'land-mine' = 65,
|
|
1490
|
+
'lane-splitter' = 66,
|
|
1491
|
+
'legacy-curved-rail' = 67,
|
|
1492
|
+
'legacy-straight-rail' = 68,
|
|
1493
|
+
lightning = 69,
|
|
1494
|
+
'lightning-attractor' = 70,
|
|
1495
|
+
'linked-belt' = 71,
|
|
1496
|
+
'linked-container' = 72,
|
|
1497
|
+
loader = 73,
|
|
1498
|
+
'loader-1x1' = 74,
|
|
1499
|
+
locomotive = 75,
|
|
1500
|
+
'logistic-container' = 76,
|
|
1501
|
+
'logistic-robot' = 77,
|
|
1502
|
+
market = 78,
|
|
1503
|
+
'mining-drill' = 79,
|
|
1504
|
+
'offshore-pump' = 80,
|
|
1505
|
+
'particle-source' = 81,
|
|
1506
|
+
pipe = 82,
|
|
1507
|
+
'pipe-to-ground' = 83,
|
|
1508
|
+
plant = 84,
|
|
1509
|
+
'player-port' = 85,
|
|
1510
|
+
'power-switch' = 86,
|
|
1511
|
+
'programmable-speaker' = 87,
|
|
1512
|
+
projectile = 88,
|
|
1513
|
+
pump = 89,
|
|
1514
|
+
radar = 90,
|
|
1515
|
+
rail = 91,
|
|
1516
|
+
'rail-chain-signal' = 92,
|
|
1517
|
+
'rail-ramp' = 93,
|
|
1518
|
+
'rail-remnants' = 94,
|
|
1519
|
+
'rail-signal' = 95,
|
|
1520
|
+
'rail-support' = 96,
|
|
1521
|
+
reactor = 97,
|
|
1522
|
+
resource = 98,
|
|
1523
|
+
roboport = 99,
|
|
1524
|
+
'rocket-silo' = 100,
|
|
1525
|
+
'rocket-silo-rocket' = 101,
|
|
1526
|
+
'rocket-silo-rocket-shadow' = 102,
|
|
1527
|
+
'rolling-stock' = 103,
|
|
1528
|
+
segment = 104,
|
|
1529
|
+
'segmented-unit' = 105,
|
|
1530
|
+
'selector-combinator' = 106,
|
|
1531
|
+
'simple-entity' = 107,
|
|
1532
|
+
'simple-entity-with-force' = 108,
|
|
1533
|
+
'simple-entity-with-owner' = 109,
|
|
1534
|
+
'smoke-with-trigger' = 110,
|
|
1535
|
+
'solar-panel' = 111,
|
|
1536
|
+
'space-platform-hub' = 112,
|
|
1537
|
+
'speech-bubble' = 113,
|
|
1538
|
+
'spider-leg' = 114,
|
|
1539
|
+
'spider-unit' = 115,
|
|
1540
|
+
'spider-vehicle' = 116,
|
|
1541
|
+
splitter = 117,
|
|
1542
|
+
sticker = 118,
|
|
1543
|
+
'storage-tank' = 119,
|
|
1544
|
+
'straight-rail' = 120,
|
|
1545
|
+
stream = 121,
|
|
1546
|
+
'temporary-container' = 122,
|
|
1547
|
+
thruster = 123,
|
|
1548
|
+
'tile-ghost' = 124,
|
|
1549
|
+
'train-stop' = 125,
|
|
1550
|
+
'transport-belt' = 126,
|
|
1551
|
+
'transport-belt-connectable' = 127,
|
|
1552
|
+
tree = 128,
|
|
1553
|
+
turret = 129,
|
|
1554
|
+
'underground-belt' = 130,
|
|
1555
|
+
unit = 131,
|
|
1556
|
+
'unit-spawner' = 132,
|
|
1557
|
+
vehicle = 133,
|
|
1558
|
+
wall = 134
|
|
1559
|
+
}
|
|
1560
|
+
enum equipment {
|
|
1561
|
+
'active-defense-equipment' = 0,
|
|
1562
|
+
'battery-equipment' = 1,
|
|
1563
|
+
'belt-immunity-equipment' = 2,
|
|
1564
|
+
'energy-shield-equipment' = 3,
|
|
1565
|
+
'equipment-ghost' = 4,
|
|
1566
|
+
'generator-equipment' = 5,
|
|
1567
|
+
'inventory-bonus-equipment' = 6,
|
|
1568
|
+
'movement-bonus-equipment' = 7,
|
|
1569
|
+
'night-vision-equipment' = 8,
|
|
1570
|
+
'roboport-equipment' = 9,
|
|
1571
|
+
'solar-panel-equipment' = 10
|
|
1572
|
+
}
|
|
1573
|
+
/**
|
|
1574
|
+
* @customName equipment-category
|
|
1575
|
+
*/
|
|
1576
|
+
enum equipment_category {
|
|
1577
|
+
'equipment-category' = 0
|
|
1578
|
+
}
|
|
1579
|
+
/**
|
|
1580
|
+
* @customName equipment-grid
|
|
1581
|
+
*/
|
|
1582
|
+
enum equipment_grid {
|
|
1583
|
+
'equipment-grid' = 0
|
|
1584
|
+
}
|
|
1585
|
+
enum fluid {
|
|
1586
|
+
fluid = 0
|
|
1587
|
+
}
|
|
1588
|
+
enum font {
|
|
1589
|
+
font = 0
|
|
1590
|
+
}
|
|
1591
|
+
/**
|
|
1592
|
+
* @customName fuel-category
|
|
1593
|
+
*/
|
|
1594
|
+
enum fuel_category {
|
|
1595
|
+
'fuel-category' = 0
|
|
1596
|
+
}
|
|
1597
|
+
/**
|
|
1598
|
+
* @customName god-controller
|
|
1599
|
+
*/
|
|
1600
|
+
enum god_controller {
|
|
1601
|
+
'god-controller' = 0
|
|
1602
|
+
}
|
|
1603
|
+
/**
|
|
1604
|
+
* @customName gui-style
|
|
1605
|
+
*/
|
|
1606
|
+
enum gui_style {
|
|
1607
|
+
'gui-style' = 0
|
|
1608
|
+
}
|
|
1609
|
+
/**
|
|
1610
|
+
* @customName impact-category
|
|
1611
|
+
*/
|
|
1612
|
+
enum impact_category {
|
|
1613
|
+
'impact-category' = 0
|
|
1614
|
+
}
|
|
1615
|
+
enum item {
|
|
1616
|
+
ammo = 0,
|
|
1617
|
+
armor = 1,
|
|
1618
|
+
blueprint = 2,
|
|
1619
|
+
'blueprint-book' = 3,
|
|
1620
|
+
capsule = 4,
|
|
1621
|
+
'copy-paste-tool' = 5,
|
|
1622
|
+
'deconstruction-item' = 6,
|
|
1623
|
+
gun = 7,
|
|
1624
|
+
item = 8,
|
|
1625
|
+
'item-with-entity-data' = 9,
|
|
1626
|
+
'item-with-inventory' = 10,
|
|
1627
|
+
'item-with-label' = 11,
|
|
1628
|
+
'item-with-tags' = 12,
|
|
1629
|
+
module = 13,
|
|
1630
|
+
'rail-planner' = 14,
|
|
1631
|
+
'repair-tool' = 15,
|
|
1632
|
+
'selection-tool' = 16,
|
|
1633
|
+
'space-platform-starter-pack' = 17,
|
|
1634
|
+
'spidertron-remote' = 18,
|
|
1635
|
+
tool = 19,
|
|
1636
|
+
'upgrade-item' = 20
|
|
1637
|
+
}
|
|
1638
|
+
/**
|
|
1639
|
+
* @customName item-group
|
|
1640
|
+
*/
|
|
1641
|
+
enum item_group {
|
|
1642
|
+
'item-group' = 0
|
|
1643
|
+
}
|
|
1644
|
+
/**
|
|
1645
|
+
* @customName item-subgroup
|
|
1646
|
+
*/
|
|
1647
|
+
enum item_subgroup {
|
|
1648
|
+
'item-subgroup' = 0
|
|
1649
|
+
}
|
|
1650
|
+
/**
|
|
1651
|
+
* @customName map-gen-presets
|
|
1652
|
+
*/
|
|
1653
|
+
enum map_gen_presets {
|
|
1654
|
+
'map-gen-presets' = 0
|
|
1655
|
+
}
|
|
1656
|
+
/**
|
|
1657
|
+
* @customName map-settings
|
|
1658
|
+
*/
|
|
1659
|
+
enum map_settings {
|
|
1660
|
+
'map-settings' = 0
|
|
1661
|
+
}
|
|
1662
|
+
/**
|
|
1663
|
+
* @customName module-category
|
|
1664
|
+
*/
|
|
1665
|
+
enum module_category {
|
|
1666
|
+
'module-category' = 0
|
|
1667
|
+
}
|
|
1668
|
+
/**
|
|
1669
|
+
* @customName mouse-cursor
|
|
1670
|
+
*/
|
|
1671
|
+
enum mouse_cursor {
|
|
1672
|
+
'mouse-cursor' = 0
|
|
1673
|
+
}
|
|
1674
|
+
/**
|
|
1675
|
+
* @customName noise-expression
|
|
1676
|
+
*/
|
|
1677
|
+
enum noise_expression {
|
|
1678
|
+
'noise-expression' = 0
|
|
1679
|
+
}
|
|
1680
|
+
/**
|
|
1681
|
+
* @customName noise-function
|
|
1682
|
+
*/
|
|
1683
|
+
enum noise_function {
|
|
1684
|
+
'noise-function' = 0
|
|
1685
|
+
}
|
|
1686
|
+
enum particle {
|
|
1687
|
+
'optimized-particle' = 0
|
|
1688
|
+
}
|
|
1689
|
+
enum procession {
|
|
1690
|
+
procession = 0
|
|
1691
|
+
}
|
|
1692
|
+
/**
|
|
1693
|
+
* @customName procession-layer-inheritance-group
|
|
1694
|
+
*/
|
|
1695
|
+
enum procession_layer_inheritance_group {
|
|
1696
|
+
'procession-layer-inheritance-group' = 0
|
|
1697
|
+
}
|
|
1698
|
+
enum quality {
|
|
1699
|
+
quality = 0
|
|
1700
|
+
}
|
|
1701
|
+
enum recipe {
|
|
1702
|
+
recipe = 0
|
|
1703
|
+
}
|
|
1704
|
+
/**
|
|
1705
|
+
* @customName recipe-category
|
|
1706
|
+
*/
|
|
1707
|
+
enum recipe_category {
|
|
1708
|
+
'recipe-category' = 0
|
|
1709
|
+
}
|
|
1710
|
+
/**
|
|
1711
|
+
* @customName remote-controller
|
|
1712
|
+
*/
|
|
1713
|
+
enum remote_controller {
|
|
1714
|
+
'remote-controller' = 0
|
|
1715
|
+
}
|
|
1716
|
+
/**
|
|
1717
|
+
* @customName resource-category
|
|
1718
|
+
*/
|
|
1719
|
+
enum resource_category {
|
|
1720
|
+
'resource-category' = 0
|
|
1721
|
+
}
|
|
1722
|
+
enum shortcut {
|
|
1723
|
+
shortcut = 0
|
|
1724
|
+
}
|
|
1725
|
+
enum sound {
|
|
1726
|
+
sound = 0
|
|
1727
|
+
}
|
|
1728
|
+
/**
|
|
1729
|
+
* @customName space-connection
|
|
1730
|
+
*/
|
|
1731
|
+
enum space_connection {
|
|
1732
|
+
'space-connection' = 0
|
|
1733
|
+
}
|
|
1734
|
+
/**
|
|
1735
|
+
* @customName space-location
|
|
1736
|
+
*/
|
|
1737
|
+
enum space_location {
|
|
1738
|
+
planet = 0,
|
|
1739
|
+
'space-location' = 1
|
|
1740
|
+
}
|
|
1741
|
+
/**
|
|
1742
|
+
* @customName spectator-controller
|
|
1743
|
+
*/
|
|
1744
|
+
enum spectator_controller {
|
|
1745
|
+
'spectator-controller' = 0
|
|
1746
|
+
}
|
|
1747
|
+
enum sprite {
|
|
1748
|
+
sprite = 0
|
|
1749
|
+
}
|
|
1750
|
+
enum surface {
|
|
1751
|
+
surface = 0
|
|
1752
|
+
}
|
|
1753
|
+
/**
|
|
1754
|
+
* @customName surface-property
|
|
1755
|
+
*/
|
|
1756
|
+
enum surface_property {
|
|
1757
|
+
'surface-property' = 0
|
|
1758
|
+
}
|
|
1759
|
+
enum technology {
|
|
1760
|
+
technology = 0
|
|
1761
|
+
}
|
|
1762
|
+
enum tile {
|
|
1763
|
+
tile = 0
|
|
1764
|
+
}
|
|
1765
|
+
/**
|
|
1766
|
+
* @customName tile-effect
|
|
1767
|
+
*/
|
|
1768
|
+
enum tile_effect {
|
|
1769
|
+
'tile-effect' = 0
|
|
1770
|
+
}
|
|
1771
|
+
/**
|
|
1772
|
+
* @customName tips-and-tricks-item
|
|
1773
|
+
*/
|
|
1774
|
+
enum tips_and_tricks_item {
|
|
1775
|
+
'tips-and-tricks-item' = 0
|
|
1776
|
+
}
|
|
1777
|
+
/**
|
|
1778
|
+
* @customName tips-and-tricks-item-category
|
|
1779
|
+
*/
|
|
1780
|
+
enum tips_and_tricks_item_category {
|
|
1781
|
+
'tips-and-tricks-item-category' = 0
|
|
1782
|
+
}
|
|
1783
|
+
/**
|
|
1784
|
+
* @customName trigger-target-type
|
|
1785
|
+
*/
|
|
1786
|
+
enum trigger_target_type {
|
|
1787
|
+
'trigger-target-type' = 0
|
|
1788
|
+
}
|
|
1789
|
+
/**
|
|
1790
|
+
* @customName trivial-smoke
|
|
1791
|
+
*/
|
|
1792
|
+
enum trivial_smoke {
|
|
1793
|
+
'trivial-smoke' = 0
|
|
1794
|
+
}
|
|
1795
|
+
enum tutorial {
|
|
1796
|
+
tutorial = 0
|
|
1797
|
+
}
|
|
1798
|
+
/**
|
|
1799
|
+
* @customName utility-constants
|
|
1800
|
+
*/
|
|
1801
|
+
enum utility_constants {
|
|
1802
|
+
'utility-constants' = 0
|
|
1803
|
+
}
|
|
1804
|
+
/**
|
|
1805
|
+
* @customName utility-sounds
|
|
1806
|
+
*/
|
|
1807
|
+
enum utility_sounds {
|
|
1808
|
+
'utility-sounds' = 0
|
|
1809
|
+
}
|
|
1810
|
+
/**
|
|
1811
|
+
* @customName utility-sprites
|
|
1812
|
+
*/
|
|
1813
|
+
enum utility_sprites {
|
|
1814
|
+
'utility-sprites' = 0
|
|
1815
|
+
}
|
|
1816
|
+
/**
|
|
1817
|
+
* @customName virtual-signal
|
|
1818
|
+
*/
|
|
1819
|
+
enum virtual_signal {
|
|
1820
|
+
'virtual-signal' = 0
|
|
1821
|
+
}
|
|
1044
1822
|
}
|
|
1045
1823
|
enum rail_connection_direction {
|
|
1046
1824
|
left = 0,
|
|
@@ -1052,6 +1830,10 @@ enum rail_direction {
|
|
|
1052
1830
|
back = 1,
|
|
1053
1831
|
front = 0
|
|
1054
1832
|
}
|
|
1833
|
+
enum rail_layer {
|
|
1834
|
+
elevated = 1,
|
|
1835
|
+
ground = 0
|
|
1836
|
+
}
|
|
1055
1837
|
enum relative_gui_position {
|
|
1056
1838
|
bottom = 1,
|
|
1057
1839
|
left = 2,
|
|
@@ -1063,66 +1845,76 @@ enum relative_gui_type {
|
|
|
1063
1845
|
achievement_gui = 1,
|
|
1064
1846
|
additional_entity_info_gui = 2,
|
|
1065
1847
|
admin_gui = 3,
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1848
|
+
agriculture_tower_gui = 4,
|
|
1849
|
+
arithmetic_combinator_gui = 5,
|
|
1850
|
+
armor_gui = 6,
|
|
1851
|
+
assembling_machine_gui = 7,
|
|
1852
|
+
assembling_machine_select_recipe_gui = 8,
|
|
1853
|
+
asteroid_collector_gui = 9,
|
|
1854
|
+
beacon_gui = 10,
|
|
1855
|
+
blueprint_book_gui = 11,
|
|
1856
|
+
blueprint_library_gui = 12,
|
|
1857
|
+
blueprint_setup_gui = 13,
|
|
1858
|
+
bonus_gui = 14,
|
|
1859
|
+
burner_equipment_gui = 15,
|
|
1860
|
+
car_gui = 16,
|
|
1861
|
+
cargo_landing_pad_gui = 17,
|
|
1862
|
+
constant_combinator_gui = 18,
|
|
1863
|
+
container_gui = 19,
|
|
1864
|
+
controller_gui = 20,
|
|
1865
|
+
decider_combinator_gui = 21,
|
|
1866
|
+
deconstruction_item_gui = 22,
|
|
1867
|
+
display_panel_gui = 23,
|
|
1868
|
+
electric_energy_interface_gui = 24,
|
|
1869
|
+
electric_network_gui = 25,
|
|
1870
|
+
entity_variations_gui = 26,
|
|
1871
|
+
entity_with_energy_source_gui = 27,
|
|
1872
|
+
equipment_grid_gui = 28,
|
|
1873
|
+
furnace_gui = 29,
|
|
1874
|
+
generic_on_off_entity_gui = 30,
|
|
1875
|
+
ghost_picker_gui = 31,
|
|
1876
|
+
global_electric_network_gui = 32,
|
|
1877
|
+
heat_interface_gui = 33,
|
|
1878
|
+
infinity_pipe_gui = 34,
|
|
1879
|
+
inserter_gui = 35,
|
|
1880
|
+
item_with_inventory_gui = 36,
|
|
1881
|
+
lab_gui = 37,
|
|
1882
|
+
lamp_gui = 38,
|
|
1883
|
+
linked_container_gui = 39,
|
|
1884
|
+
loader_gui = 40,
|
|
1885
|
+
logistic_gui = 41,
|
|
1886
|
+
market_gui = 42,
|
|
1887
|
+
mining_drill_gui = 43,
|
|
1888
|
+
other_player_gui = 44,
|
|
1889
|
+
permissions_gui = 45,
|
|
1890
|
+
pick_stop_gui = 46,
|
|
1891
|
+
pipe_gui = 47,
|
|
1892
|
+
power_switch_gui = 48,
|
|
1893
|
+
production_gui = 49,
|
|
1894
|
+
programmable_speaker_gui = 50,
|
|
1895
|
+
pump_gui = 51,
|
|
1896
|
+
rail_signal_base_gui = 52,
|
|
1897
|
+
reactor_gui = 53,
|
|
1898
|
+
resource_entity_gui = 54,
|
|
1899
|
+
roboport_gui = 55,
|
|
1900
|
+
rocket_silo_gui = 56,
|
|
1901
|
+
script_inventory_gui = 57,
|
|
1902
|
+
selector_combinator_gui = 58,
|
|
1903
|
+
server_config_gui = 59,
|
|
1904
|
+
space_platform_hub_gui = 60,
|
|
1905
|
+
spider_vehicle_gui = 61,
|
|
1906
|
+
splitter_gui = 62,
|
|
1907
|
+
standalone_character_gui = 63,
|
|
1908
|
+
storage_tank_gui = 64,
|
|
1909
|
+
tile_variations_gui = 65,
|
|
1910
|
+
tips_and_tricks_gui = 66,
|
|
1911
|
+
train_gui = 67,
|
|
1912
|
+
train_stop_gui = 68,
|
|
1913
|
+
trains_gui = 69,
|
|
1914
|
+
transport_belt_gui = 70,
|
|
1915
|
+
turret_gui = 71,
|
|
1916
|
+
upgrade_item_gui = 72,
|
|
1917
|
+
wall_gui = 73
|
|
1126
1918
|
}
|
|
1127
1919
|
enum render_mode {
|
|
1128
1920
|
chart = 1,
|
|
@@ -1147,6 +1939,44 @@ namespace riding {
|
|
|
1147
1939
|
straight = 1
|
|
1148
1940
|
}
|
|
1149
1941
|
}
|
|
1942
|
+
enum robot_order_type {
|
|
1943
|
+
/**
|
|
1944
|
+
* Construct a ghost.
|
|
1945
|
+
*/
|
|
1946
|
+
construct = 0,
|
|
1947
|
+
/**
|
|
1948
|
+
* Deconstruct an entity.
|
|
1949
|
+
*/
|
|
1950
|
+
deconstruct = 4,
|
|
1951
|
+
/**
|
|
1952
|
+
* Deliver an item.
|
|
1953
|
+
*/
|
|
1954
|
+
deliver = 2,
|
|
1955
|
+
/**
|
|
1956
|
+
* Deliver specific items to an entity (item request proxy).
|
|
1957
|
+
*/
|
|
1958
|
+
deliver_items = 5,
|
|
1959
|
+
/**
|
|
1960
|
+
* Explode a cliff.
|
|
1961
|
+
*/
|
|
1962
|
+
explode_cliff = 7,
|
|
1963
|
+
/**
|
|
1964
|
+
* Pickup an item.
|
|
1965
|
+
*/
|
|
1966
|
+
pickup = 1,
|
|
1967
|
+
/**
|
|
1968
|
+
* Pickup items from an entity (item request proxy).
|
|
1969
|
+
*/
|
|
1970
|
+
pickup_items = 8,
|
|
1971
|
+
/**
|
|
1972
|
+
* Repair an entity.
|
|
1973
|
+
*/
|
|
1974
|
+
repair = 3,
|
|
1975
|
+
/**
|
|
1976
|
+
* Upgrade an entity.
|
|
1977
|
+
*/
|
|
1978
|
+
upgrade = 6
|
|
1979
|
+
}
|
|
1150
1980
|
/**
|
|
1151
1981
|
* The various parts of the launch sequence of the rocket silo.
|
|
1152
1982
|
*/
|
|
@@ -1212,6 +2042,12 @@ enum rocket_silo_status {
|
|
|
1212
2042
|
*/
|
|
1213
2043
|
rocket_rising = 5
|
|
1214
2044
|
}
|
|
2045
|
+
enum selection_mode {
|
|
2046
|
+
alt_reverse_select = 3,
|
|
2047
|
+
alt_select = 1,
|
|
2048
|
+
reverse_select = 2,
|
|
2049
|
+
select = 0
|
|
2050
|
+
}
|
|
1215
2051
|
enum shooting {
|
|
1216
2052
|
not_shooting = 0,
|
|
1217
2053
|
shooting_enemies = 1,
|
|
@@ -1238,51 +2074,101 @@ enum signal_state {
|
|
|
1238
2074
|
*/
|
|
1239
2075
|
reserved_by_circuit_network = 3
|
|
1240
2076
|
}
|
|
2077
|
+
enum space_platform_state {
|
|
2078
|
+
/**
|
|
2079
|
+
* Doesn't have anywhere to go.
|
|
2080
|
+
*/
|
|
2081
|
+
no_path = 6,
|
|
2082
|
+
/**
|
|
2083
|
+
* Waiting for a starter pack
|
|
2084
|
+
*/
|
|
2085
|
+
no_schedule = 5,
|
|
2086
|
+
/**
|
|
2087
|
+
* Following the path.
|
|
2088
|
+
*/
|
|
2089
|
+
on_the_path = 3,
|
|
2090
|
+
/**
|
|
2091
|
+
* Starter pack is on the way.
|
|
2092
|
+
*/
|
|
2093
|
+
starter_pack_on_the_way = 2,
|
|
2094
|
+
/**
|
|
2095
|
+
* Starter pack was requested from the logistics system.
|
|
2096
|
+
*/
|
|
2097
|
+
starter_pack_requested = 1,
|
|
2098
|
+
/**
|
|
2099
|
+
* Waiting at a station.
|
|
2100
|
+
*/
|
|
2101
|
+
waiting_at_station = 7,
|
|
2102
|
+
/**
|
|
2103
|
+
* Platform is ready to leave this planet and does not accept deliveries.
|
|
2104
|
+
*/
|
|
2105
|
+
waiting_for_departure = 4,
|
|
2106
|
+
/**
|
|
2107
|
+
* Waiting for a starter pack.
|
|
2108
|
+
*/
|
|
2109
|
+
waiting_for_starter_pack = 0
|
|
2110
|
+
}
|
|
2111
|
+
enum target_type {
|
|
2112
|
+
commandable = 15,
|
|
2113
|
+
custom_chart_tag = 16,
|
|
2114
|
+
entity = 0,
|
|
2115
|
+
equipment = 1,
|
|
2116
|
+
equipment_grid = 2,
|
|
2117
|
+
gui_element = 17,
|
|
2118
|
+
item = 3,
|
|
2119
|
+
logistic_cell = 4,
|
|
2120
|
+
logistic_network = 5,
|
|
2121
|
+
logistic_section = 6,
|
|
2122
|
+
permission_group = 7,
|
|
2123
|
+
planet = 8,
|
|
2124
|
+
player = 9,
|
|
2125
|
+
rail_path = 10,
|
|
2126
|
+
render_object = 11,
|
|
2127
|
+
space_platform = 12,
|
|
2128
|
+
surface = 13,
|
|
2129
|
+
train = 14
|
|
2130
|
+
}
|
|
1241
2131
|
enum train_state {
|
|
1242
2132
|
/**
|
|
1243
2133
|
* Braking before a rail signal.
|
|
1244
2134
|
*/
|
|
1245
|
-
arrive_signal =
|
|
2135
|
+
arrive_signal = 3,
|
|
1246
2136
|
/**
|
|
1247
2137
|
* Braking before a station.
|
|
1248
2138
|
*/
|
|
1249
|
-
arrive_station =
|
|
2139
|
+
arrive_station = 5,
|
|
1250
2140
|
/**
|
|
1251
2141
|
* Same as no_path but all candidate train stops are full
|
|
1252
2142
|
*/
|
|
1253
|
-
destination_full =
|
|
2143
|
+
destination_full = 9,
|
|
1254
2144
|
/**
|
|
1255
2145
|
* Can move if user explicitly sits in and rides the train.
|
|
1256
2146
|
*/
|
|
1257
|
-
manual_control =
|
|
2147
|
+
manual_control = 7,
|
|
1258
2148
|
/**
|
|
1259
2149
|
* Switched to manual control and has to stop.
|
|
1260
2150
|
*/
|
|
1261
|
-
manual_control_stop =
|
|
2151
|
+
manual_control_stop = 6,
|
|
1262
2152
|
/**
|
|
1263
2153
|
* Has no path and is stopped.
|
|
1264
2154
|
*/
|
|
1265
|
-
no_path =
|
|
2155
|
+
no_path = 2,
|
|
1266
2156
|
/**
|
|
1267
2157
|
* Doesn't have anywhere to go.
|
|
1268
2158
|
*/
|
|
1269
|
-
no_schedule =
|
|
2159
|
+
no_schedule = 1,
|
|
1270
2160
|
/**
|
|
1271
2161
|
* Normal state -- following the path.
|
|
1272
2162
|
*/
|
|
1273
2163
|
on_the_path = 0,
|
|
1274
|
-
/**
|
|
1275
|
-
* Had path and lost it -- must stop.
|
|
1276
|
-
*/
|
|
1277
|
-
path_lost = 1,
|
|
1278
2164
|
/**
|
|
1279
2165
|
* Waiting at a signal.
|
|
1280
2166
|
*/
|
|
1281
|
-
wait_signal =
|
|
2167
|
+
wait_signal = 4,
|
|
1282
2168
|
/**
|
|
1283
2169
|
* Waiting at a station.
|
|
1284
2170
|
*/
|
|
1285
|
-
wait_station =
|
|
2171
|
+
wait_station = 8
|
|
1286
2172
|
}
|
|
1287
2173
|
enum transport_line {
|
|
1288
2174
|
left_line = 0,
|
|
@@ -1296,10 +2182,21 @@ enum transport_line {
|
|
|
1296
2182
|
secondary_right_line = 5,
|
|
1297
2183
|
secondary_right_split_line = 9
|
|
1298
2184
|
}
|
|
1299
|
-
enum
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
2185
|
+
enum wire_connector_id {
|
|
2186
|
+
circuit_green = 1,
|
|
2187
|
+
circuit_red = 0,
|
|
2188
|
+
combinator_input_green = 3,
|
|
2189
|
+
combinator_input_red = 2,
|
|
2190
|
+
combinator_output_green = 5,
|
|
2191
|
+
combinator_output_red = 4,
|
|
2192
|
+
pole_copper = 6,
|
|
2193
|
+
power_switch_left_copper = 7,
|
|
2194
|
+
power_switch_right_copper = 8
|
|
2195
|
+
}
|
|
2196
|
+
enum wire_origin {
|
|
2197
|
+
player = 0,
|
|
2198
|
+
radars = 2,
|
|
2199
|
+
script = 1
|
|
1303
2200
|
}
|
|
1304
2201
|
enum wire_type {
|
|
1305
2202
|
copper = 2,
|