factorio-types 0.0.50 → 1.1.0
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 +38 -3
- package/dist/classes.d.ts +4785 -1
- package/dist/core.d.ts +9 -4
- package/dist/defines.d.ts +816 -816
- package/dist/prototypes.d.ts +1 -1
- package/index.d.ts +1 -0
- package/package.json +13 -6
- package/tsconfig.base.json +15 -0
package/dist/defines.d.ts
CHANGED
|
@@ -7,78 +7,78 @@
|
|
|
7
7
|
|
|
8
8
|
declare namespace defines {
|
|
9
9
|
enum alert_type {
|
|
10
|
-
custom,
|
|
11
|
-
entity_destroyed,
|
|
12
|
-
entity_under_attack,
|
|
13
|
-
no_material_for_construction,
|
|
14
|
-
no_storage,
|
|
15
|
-
not_enough_construction_robots,
|
|
16
|
-
not_enough_repair_packs,
|
|
17
|
-
train_out_of_fuel,
|
|
18
|
-
turret_fire,
|
|
10
|
+
custom = 6,
|
|
11
|
+
entity_destroyed = 0,
|
|
12
|
+
entity_under_attack = 1,
|
|
13
|
+
no_material_for_construction = 3,
|
|
14
|
+
no_storage = 7,
|
|
15
|
+
not_enough_construction_robots = 2,
|
|
16
|
+
not_enough_repair_packs = 4,
|
|
17
|
+
train_out_of_fuel = 8,
|
|
18
|
+
turret_fire = 5,
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* AI command exit status. See {@link LuaEntity::set_command | runtime:LuaEntity::set_command}
|
|
22
22
|
*/
|
|
23
23
|
enum behavior_result {
|
|
24
|
-
deleted,
|
|
25
|
-
fail,
|
|
26
|
-
in_progress,
|
|
27
|
-
success,
|
|
24
|
+
deleted = 3,
|
|
25
|
+
fail = 1,
|
|
26
|
+
in_progress = 0,
|
|
27
|
+
success = 2,
|
|
28
28
|
}
|
|
29
29
|
enum build_check_type {
|
|
30
|
-
blueprint_ghost,
|
|
31
|
-
ghost_revive,
|
|
32
|
-
manual,
|
|
33
|
-
manual_ghost,
|
|
34
|
-
script,
|
|
35
|
-
script_ghost,
|
|
30
|
+
blueprint_ghost = 4,
|
|
31
|
+
ghost_revive = 5,
|
|
32
|
+
manual = 1,
|
|
33
|
+
manual_ghost = 2,
|
|
34
|
+
script = 0,
|
|
35
|
+
script_ghost = 3,
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* State of a chain signal.
|
|
39
39
|
*/
|
|
40
40
|
enum chain_signal_state {
|
|
41
|
-
all_open,
|
|
42
|
-
none,
|
|
43
|
-
none_open,
|
|
44
|
-
partially_open,
|
|
41
|
+
all_open = 1,
|
|
42
|
+
none = 0,
|
|
43
|
+
none_open = 3,
|
|
44
|
+
partially_open = 2,
|
|
45
45
|
}
|
|
46
46
|
enum chunk_generated_status {
|
|
47
|
-
basic_tiles,
|
|
48
|
-
corrected_tiles,
|
|
49
|
-
custom_tiles,
|
|
50
|
-
entities,
|
|
51
|
-
nothing,
|
|
52
|
-
tiles,
|
|
47
|
+
basic_tiles = 2,
|
|
48
|
+
corrected_tiles = 3,
|
|
49
|
+
custom_tiles = 1,
|
|
50
|
+
entities = 5,
|
|
51
|
+
nothing = 0,
|
|
52
|
+
tiles = 4,
|
|
53
53
|
}
|
|
54
54
|
enum circuit_condition_index {
|
|
55
|
-
arithmetic_combinator,
|
|
56
|
-
constant_combinator,
|
|
57
|
-
decider_combinator,
|
|
58
|
-
inserter_circuit,
|
|
59
|
-
inserter_logistic,
|
|
60
|
-
lamp,
|
|
61
|
-
offshore_pump,
|
|
62
|
-
pump,
|
|
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
63
|
}
|
|
64
64
|
enum circuit_connector_id {
|
|
65
|
-
accumulator,
|
|
66
|
-
combinator_input,
|
|
67
|
-
combinator_output,
|
|
68
|
-
constant_combinator,
|
|
69
|
-
container,
|
|
70
|
-
electric_pole,
|
|
71
|
-
inserter,
|
|
72
|
-
lamp,
|
|
73
|
-
linked_container,
|
|
74
|
-
offshore_pump,
|
|
75
|
-
programmable_speaker,
|
|
76
|
-
pump,
|
|
77
|
-
rail_chain_signal,
|
|
78
|
-
rail_signal,
|
|
79
|
-
roboport,
|
|
80
|
-
storage_tank,
|
|
81
|
-
wall,
|
|
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
82
|
}
|
|
83
83
|
/**
|
|
84
84
|
* Command given to units describing what they should do.
|
|
@@ -87,39 +87,39 @@ declare namespace defines {
|
|
|
87
87
|
/**
|
|
88
88
|
* Attack another entity.
|
|
89
89
|
*/
|
|
90
|
-
attack,
|
|
90
|
+
attack = 0,
|
|
91
91
|
/**
|
|
92
92
|
* Go to a place and attack what you see.
|
|
93
93
|
*/
|
|
94
|
-
attack_area,
|
|
94
|
+
attack_area = 4,
|
|
95
95
|
/**
|
|
96
96
|
* Go to a position and build a base there.
|
|
97
97
|
*/
|
|
98
|
-
build_base,
|
|
98
|
+
build_base = 8,
|
|
99
99
|
/**
|
|
100
100
|
* Chain commands together, see {@link defines.compound_command | runtime:defines.compound_command}.
|
|
101
101
|
*/
|
|
102
|
-
compound,
|
|
102
|
+
compound = 2,
|
|
103
103
|
/**
|
|
104
104
|
* Flee from another entity.
|
|
105
105
|
*/
|
|
106
|
-
flee,
|
|
106
|
+
flee = 6,
|
|
107
107
|
/**
|
|
108
108
|
* Go to a specific position.
|
|
109
109
|
*/
|
|
110
|
-
go_to_location,
|
|
110
|
+
go_to_location = 1,
|
|
111
111
|
/**
|
|
112
112
|
* Do what your group wants you to do.
|
|
113
113
|
*/
|
|
114
|
-
group,
|
|
114
|
+
group = 3,
|
|
115
115
|
/**
|
|
116
116
|
* Stop moving and stay where you are.
|
|
117
117
|
*/
|
|
118
|
-
stop,
|
|
118
|
+
stop = 7,
|
|
119
119
|
/**
|
|
120
120
|
* Chill.
|
|
121
121
|
*/
|
|
122
|
-
wander,
|
|
122
|
+
wander = 5,
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* How commands are joined together in a compound command (see {@link defines.command.compound | runtime:defines.command.compound}).
|
|
@@ -128,914 +128,914 @@ declare namespace defines {
|
|
|
128
128
|
/**
|
|
129
129
|
* Fail on first failure. Only succeeds if all commands (executed one after another) succeed.
|
|
130
130
|
*/
|
|
131
|
-
logical_and,
|
|
131
|
+
logical_and = 0,
|
|
132
132
|
/**
|
|
133
133
|
* Succeed on first success. Only fails if all commands (executed one after another) fail.
|
|
134
134
|
*/
|
|
135
|
-
logical_or,
|
|
135
|
+
logical_or = 1,
|
|
136
136
|
/**
|
|
137
137
|
* Execute all commands in sequence and fail or succeed depending on the return status of the last command.
|
|
138
138
|
*/
|
|
139
|
-
return_last,
|
|
139
|
+
return_last = 2,
|
|
140
140
|
}
|
|
141
141
|
namespace control_behavior {
|
|
142
142
|
namespace inserter {
|
|
143
143
|
enum circuit_mode_of_operation {
|
|
144
|
-
enable_disable,
|
|
145
|
-
none,
|
|
146
|
-
read_hand_contents,
|
|
147
|
-
set_filters,
|
|
148
|
-
set_stack_size,
|
|
144
|
+
enable_disable = 1,
|
|
145
|
+
none = 0,
|
|
146
|
+
read_hand_contents = 3,
|
|
147
|
+
set_filters = 2,
|
|
148
|
+
set_stack_size = 4,
|
|
149
149
|
}
|
|
150
150
|
enum hand_read_mode {
|
|
151
|
-
hold,
|
|
152
|
-
pulse,
|
|
151
|
+
hold = 0,
|
|
152
|
+
pulse = 1,
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
namespace lamp {
|
|
156
156
|
enum circuit_mode_of_operation {
|
|
157
|
-
use_colors,
|
|
157
|
+
use_colors = 0,
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
namespace logistic_container {
|
|
161
161
|
enum circuit_mode_of_operation {
|
|
162
|
-
send_contents,
|
|
163
|
-
set_requests,
|
|
162
|
+
send_contents = 0,
|
|
163
|
+
set_requests = 1,
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
namespace mining_drill {
|
|
167
167
|
enum resource_read_mode {
|
|
168
|
-
entire_patch,
|
|
169
|
-
this_miner,
|
|
168
|
+
entire_patch = 1,
|
|
169
|
+
this_miner = 0,
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
namespace transport_belt {
|
|
173
173
|
enum content_read_mode {
|
|
174
|
-
hold,
|
|
175
|
-
pulse,
|
|
174
|
+
hold = 1,
|
|
175
|
+
pulse = 0,
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
enum type {
|
|
179
179
|
/**
|
|
180
180
|
* {@link LuaAccumulatorControlBehavior | runtime:LuaAccumulatorControlBehavior}
|
|
181
181
|
*/
|
|
182
|
-
accumulator,
|
|
182
|
+
accumulator = 12,
|
|
183
183
|
/**
|
|
184
184
|
* {@link LuaArithmeticCombinatorControlBehavior | runtime:LuaArithmeticCombinatorControlBehavior}
|
|
185
185
|
*/
|
|
186
|
-
arithmetic_combinator,
|
|
186
|
+
arithmetic_combinator = 9,
|
|
187
187
|
/**
|
|
188
188
|
* {@link LuaConstantCombinatorControlBehavior | runtime:LuaConstantCombinatorControlBehavior}
|
|
189
189
|
*/
|
|
190
|
-
constant_combinator,
|
|
190
|
+
constant_combinator = 10,
|
|
191
191
|
/**
|
|
192
192
|
* {@link LuaContainerControlBehavior | runtime:LuaContainerControlBehavior}
|
|
193
193
|
*/
|
|
194
|
-
container,
|
|
194
|
+
container = 0,
|
|
195
195
|
/**
|
|
196
196
|
* {@link LuaDeciderCombinatorControlBehavior | runtime:LuaDeciderCombinatorControlBehavior}
|
|
197
197
|
*/
|
|
198
|
-
decider_combinator,
|
|
198
|
+
decider_combinator = 8,
|
|
199
199
|
/**
|
|
200
200
|
* {@link LuaGenericOnOffControlBehavior | runtime:LuaGenericOnOffControlBehavior}
|
|
201
201
|
*/
|
|
202
|
-
generic_on_off,
|
|
202
|
+
generic_on_off = 1,
|
|
203
203
|
/**
|
|
204
204
|
* {@link LuaInserterControlBehavior | runtime:LuaInserterControlBehavior}
|
|
205
205
|
*/
|
|
206
|
-
inserter,
|
|
206
|
+
inserter = 2,
|
|
207
207
|
/**
|
|
208
208
|
* {@link LuaLampControlBehavior | runtime:LuaLampControlBehavior}
|
|
209
209
|
*/
|
|
210
|
-
lamp,
|
|
210
|
+
lamp = 3,
|
|
211
211
|
/**
|
|
212
212
|
* {@link LuaLogisticContainerControlBehavior | runtime:LuaLogisticContainerControlBehavior}
|
|
213
213
|
*/
|
|
214
|
-
logistic_container,
|
|
214
|
+
logistic_container = 4,
|
|
215
215
|
/**
|
|
216
216
|
* {@link LuaMiningDrillControlBehavior | runtime:LuaMiningDrillControlBehavior}
|
|
217
217
|
*/
|
|
218
|
-
mining_drill,
|
|
218
|
+
mining_drill = 16,
|
|
219
219
|
/**
|
|
220
220
|
* {@link LuaProgrammableSpeakerControlBehavior | runtime:LuaProgrammableSpeakerControlBehavior}
|
|
221
221
|
*/
|
|
222
|
-
programmable_speaker,
|
|
222
|
+
programmable_speaker = 17,
|
|
223
223
|
/**
|
|
224
224
|
* {@link LuaRailChainSignalControlBehavior | runtime:LuaRailChainSignalControlBehavior}
|
|
225
225
|
*/
|
|
226
|
-
rail_chain_signal,
|
|
226
|
+
rail_chain_signal = 14,
|
|
227
227
|
/**
|
|
228
228
|
* {@link LuaRailSignalControlBehavior | runtime:LuaRailSignalControlBehavior}
|
|
229
229
|
*/
|
|
230
|
-
rail_signal,
|
|
230
|
+
rail_signal = 13,
|
|
231
231
|
/**
|
|
232
232
|
* {@link LuaRoboportControlBehavior | runtime:LuaRoboportControlBehavior}
|
|
233
233
|
*/
|
|
234
|
-
roboport,
|
|
234
|
+
roboport = 5,
|
|
235
235
|
/**
|
|
236
236
|
* {@link LuaStorageTankControlBehavior | runtime:LuaStorageTankControlBehavior}
|
|
237
237
|
*/
|
|
238
|
-
storage_tank,
|
|
238
|
+
storage_tank = 6,
|
|
239
239
|
/**
|
|
240
240
|
* {@link LuaTrainStopControlBehavior | runtime:LuaTrainStopControlBehavior}
|
|
241
241
|
*/
|
|
242
|
-
train_stop,
|
|
242
|
+
train_stop = 7,
|
|
243
243
|
/**
|
|
244
244
|
* {@link LuaTransportBeltControlBehavior | runtime:LuaTransportBeltControlBehavior}
|
|
245
245
|
*/
|
|
246
|
-
transport_belt,
|
|
246
|
+
transport_belt = 11,
|
|
247
247
|
/**
|
|
248
248
|
* {@link LuaWallControlBehavior | runtime:LuaWallControlBehavior}
|
|
249
249
|
*/
|
|
250
|
-
wall,
|
|
250
|
+
wall = 15,
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
enum controllers {
|
|
254
254
|
/**
|
|
255
255
|
* The controller controls a character. This is the default controller in freeplay.
|
|
256
256
|
*/
|
|
257
|
-
character,
|
|
257
|
+
character = 1,
|
|
258
258
|
/**
|
|
259
259
|
* The player can't interact with the world, and the camera pans around in a predefined manner.
|
|
260
260
|
*/
|
|
261
|
-
cutscene,
|
|
261
|
+
cutscene = 4,
|
|
262
262
|
/**
|
|
263
263
|
* The Editor Controller near ultimate power to do almost anything in the game.
|
|
264
264
|
*/
|
|
265
|
-
editor,
|
|
265
|
+
editor = 3,
|
|
266
266
|
/**
|
|
267
267
|
* Can't interact with the world, can only observe. Used in the multiplayer waiting-to-respawn screen.
|
|
268
268
|
*/
|
|
269
|
-
ghost,
|
|
269
|
+
ghost = 0,
|
|
270
270
|
/**
|
|
271
271
|
* The controller isn't tied to a character. This is the default controller in sandbox.
|
|
272
272
|
*/
|
|
273
|
-
god,
|
|
273
|
+
god = 2,
|
|
274
274
|
/**
|
|
275
275
|
* Can't change anything in the world but can view anything.
|
|
276
276
|
*/
|
|
277
|
-
spectator,
|
|
277
|
+
spectator = 5,
|
|
278
278
|
}
|
|
279
279
|
namespace deconstruction_item {
|
|
280
280
|
enum entity_filter_mode {
|
|
281
|
-
blacklist,
|
|
282
|
-
whitelist,
|
|
281
|
+
blacklist = 1,
|
|
282
|
+
whitelist = 0,
|
|
283
283
|
}
|
|
284
284
|
enum tile_filter_mode {
|
|
285
|
-
blacklist,
|
|
286
|
-
whitelist,
|
|
285
|
+
blacklist = 1,
|
|
286
|
+
whitelist = 0,
|
|
287
287
|
}
|
|
288
288
|
enum tile_selection_mode {
|
|
289
|
-
always,
|
|
290
|
-
never,
|
|
291
|
-
normal,
|
|
292
|
-
only,
|
|
289
|
+
always = 1,
|
|
290
|
+
never = 2,
|
|
291
|
+
normal = 0,
|
|
292
|
+
only = 3,
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
295
|
enum difficulty {
|
|
296
|
-
easy,
|
|
297
|
-
hard,
|
|
298
|
-
normal,
|
|
296
|
+
easy = 0,
|
|
297
|
+
hard = 2,
|
|
298
|
+
normal = 1,
|
|
299
299
|
}
|
|
300
300
|
namespace difficulty_settings {
|
|
301
301
|
enum recipe_difficulty {
|
|
302
|
-
expensive,
|
|
303
|
-
normal,
|
|
302
|
+
expensive = 1,
|
|
303
|
+
normal = 0,
|
|
304
304
|
}
|
|
305
305
|
enum technology_difficulty {
|
|
306
|
-
expensive,
|
|
307
|
-
normal,
|
|
306
|
+
expensive = 1,
|
|
307
|
+
normal = 0,
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
enum direction {
|
|
311
|
-
east,
|
|
312
|
-
north,
|
|
313
|
-
northeast,
|
|
314
|
-
northwest,
|
|
315
|
-
south,
|
|
316
|
-
southeast,
|
|
317
|
-
southwest,
|
|
318
|
-
west,
|
|
311
|
+
east = 2,
|
|
312
|
+
north = 0,
|
|
313
|
+
northeast = 1,
|
|
314
|
+
northwest = 7,
|
|
315
|
+
south = 4,
|
|
316
|
+
southeast = 3,
|
|
317
|
+
southwest = 5,
|
|
318
|
+
west = 6,
|
|
319
319
|
}
|
|
320
320
|
enum disconnect_reason {
|
|
321
|
-
afk,
|
|
322
|
-
banned,
|
|
323
|
-
cannot_keep_up,
|
|
324
|
-
desync_limit_reached,
|
|
325
|
-
dropped,
|
|
326
|
-
kicked,
|
|
327
|
-
kicked_and_deleted,
|
|
328
|
-
quit,
|
|
329
|
-
reconnect,
|
|
330
|
-
switching_servers,
|
|
331
|
-
wrong_input,
|
|
321
|
+
afk = 6,
|
|
322
|
+
banned = 9,
|
|
323
|
+
cannot_keep_up = 5,
|
|
324
|
+
desync_limit_reached = 4,
|
|
325
|
+
dropped = 1,
|
|
326
|
+
kicked = 7,
|
|
327
|
+
kicked_and_deleted = 8,
|
|
328
|
+
quit = 0,
|
|
329
|
+
reconnect = 2,
|
|
330
|
+
switching_servers = 10,
|
|
331
|
+
wrong_input = 3,
|
|
332
332
|
}
|
|
333
333
|
enum distraction {
|
|
334
334
|
/**
|
|
335
335
|
* Attack closer enemy entities, including entities "built" by player (belts, inserters, chests).
|
|
336
336
|
*/
|
|
337
|
-
by_anything,
|
|
337
|
+
by_anything = 2,
|
|
338
338
|
/**
|
|
339
339
|
* Attack when attacked.
|
|
340
340
|
*/
|
|
341
|
-
by_damage,
|
|
341
|
+
by_damage = 3,
|
|
342
342
|
/**
|
|
343
343
|
* Attack closer enemy entities with force.
|
|
344
344
|
*/
|
|
345
|
-
by_enemy,
|
|
345
|
+
by_enemy = 1,
|
|
346
346
|
/**
|
|
347
347
|
* Perform command even if someone attacks the unit.
|
|
348
348
|
*/
|
|
349
|
-
none,
|
|
349
|
+
none = 0,
|
|
350
350
|
}
|
|
351
351
|
enum entity_status {
|
|
352
352
|
/**
|
|
353
353
|
* Used by rail signals.
|
|
354
354
|
*/
|
|
355
|
-
cant_divide_segments,
|
|
355
|
+
cant_divide_segments = 43,
|
|
356
356
|
/**
|
|
357
357
|
* Used by accumulators.
|
|
358
358
|
*/
|
|
359
|
-
charging,
|
|
360
|
-
closed_by_circuit_network,
|
|
359
|
+
charging = 13,
|
|
360
|
+
closed_by_circuit_network = 7,
|
|
361
361
|
/**
|
|
362
362
|
* Used by constant combinators: Combinator is turned off via switch in GUI.
|
|
363
363
|
*/
|
|
364
|
-
disabled,
|
|
365
|
-
disabled_by_control_behavior,
|
|
366
|
-
disabled_by_script,
|
|
364
|
+
disabled = 40,
|
|
365
|
+
disabled_by_control_behavior = 5,
|
|
366
|
+
disabled_by_script = 8,
|
|
367
367
|
/**
|
|
368
368
|
* Used by accumulators.
|
|
369
369
|
*/
|
|
370
|
-
discharging,
|
|
370
|
+
discharging = 14,
|
|
371
371
|
/**
|
|
372
372
|
* Used by crafting machines.
|
|
373
373
|
*/
|
|
374
|
-
fluid_ingredient_shortage,
|
|
374
|
+
fluid_ingredient_shortage = 23,
|
|
375
375
|
/**
|
|
376
376
|
* Used by burner energy sources.
|
|
377
377
|
*/
|
|
378
|
-
full_burnt_result_output,
|
|
378
|
+
full_burnt_result_output = 25,
|
|
379
379
|
/**
|
|
380
380
|
* Used by crafting machines, boilers, burner energy sources and reactors: Reactor/burner has full burnt result inventory, boiler has full output fluidbox.
|
|
381
381
|
*/
|
|
382
|
-
full_output,
|
|
382
|
+
full_output = 24,
|
|
383
383
|
/**
|
|
384
384
|
* Used by accumulators.
|
|
385
385
|
*/
|
|
386
|
-
fully_charged,
|
|
386
|
+
fully_charged = 15,
|
|
387
387
|
/**
|
|
388
388
|
* Used by crafting machines.
|
|
389
389
|
*/
|
|
390
|
-
item_ingredient_shortage,
|
|
390
|
+
item_ingredient_shortage = 26,
|
|
391
391
|
/**
|
|
392
392
|
* Used by the rocket silo.
|
|
393
393
|
*/
|
|
394
|
-
launching_rocket,
|
|
394
|
+
launching_rocket = 33,
|
|
395
395
|
/**
|
|
396
396
|
* Used by boilers and fluid turrets: Boiler still has some fluid but is about to run out.
|
|
397
397
|
*/
|
|
398
|
-
low_input_fluid,
|
|
399
|
-
low_power,
|
|
398
|
+
low_input_fluid = 22,
|
|
399
|
+
low_power = 3,
|
|
400
400
|
/**
|
|
401
401
|
* Used by heat energy sources.
|
|
402
402
|
*/
|
|
403
|
-
low_temperature,
|
|
404
|
-
marked_for_deconstruction,
|
|
403
|
+
low_temperature = 39,
|
|
404
|
+
marked_for_deconstruction = 9,
|
|
405
405
|
/**
|
|
406
406
|
* Used by mining drills when the mining fluid is missing.
|
|
407
407
|
*/
|
|
408
|
-
missing_required_fluid,
|
|
408
|
+
missing_required_fluid = 27,
|
|
409
409
|
/**
|
|
410
410
|
* Used by labs.
|
|
411
411
|
*/
|
|
412
|
-
missing_science_packs,
|
|
412
|
+
missing_science_packs = 28,
|
|
413
413
|
/**
|
|
414
414
|
* Used by power switches.
|
|
415
415
|
*/
|
|
416
|
-
networks_connected,
|
|
416
|
+
networks_connected = 11,
|
|
417
417
|
/**
|
|
418
418
|
* Used by power switches.
|
|
419
419
|
*/
|
|
420
|
-
networks_disconnected,
|
|
420
|
+
networks_disconnected = 12,
|
|
421
421
|
/**
|
|
422
422
|
* Used by ammo turrets.
|
|
423
423
|
*/
|
|
424
|
-
no_ammo,
|
|
425
|
-
no_fuel,
|
|
424
|
+
no_ammo = 38,
|
|
425
|
+
no_fuel = 4,
|
|
426
426
|
/**
|
|
427
427
|
* Used by furnaces.
|
|
428
428
|
*/
|
|
429
|
-
no_ingredients,
|
|
429
|
+
no_ingredients = 18,
|
|
430
430
|
/**
|
|
431
431
|
* Used by boilers, fluid turrets and fluid energy sources: Boiler has no fluid to work with.
|
|
432
432
|
*/
|
|
433
|
-
no_input_fluid,
|
|
433
|
+
no_input_fluid = 19,
|
|
434
434
|
/**
|
|
435
435
|
* Used by mining drills.
|
|
436
436
|
*/
|
|
437
|
-
no_minable_resources,
|
|
437
|
+
no_minable_resources = 21,
|
|
438
438
|
/**
|
|
439
439
|
* Used by beacons.
|
|
440
440
|
*/
|
|
441
|
-
no_modules_to_transmit,
|
|
442
|
-
no_power,
|
|
441
|
+
no_modules_to_transmit = 34,
|
|
442
|
+
no_power = 2,
|
|
443
443
|
/**
|
|
444
444
|
* Used by assembling machines.
|
|
445
445
|
*/
|
|
446
|
-
no_recipe,
|
|
446
|
+
no_recipe = 17,
|
|
447
447
|
/**
|
|
448
448
|
* Used by labs.
|
|
449
449
|
*/
|
|
450
|
-
no_research_in_progress,
|
|
451
|
-
normal,
|
|
450
|
+
no_research_in_progress = 20,
|
|
451
|
+
normal = 1,
|
|
452
452
|
/**
|
|
453
453
|
* Used by rail signals.
|
|
454
454
|
*/
|
|
455
|
-
not_connected_to_rail,
|
|
455
|
+
not_connected_to_rail = 42,
|
|
456
456
|
/**
|
|
457
457
|
* Used by generators and solar panels.
|
|
458
458
|
*/
|
|
459
|
-
not_plugged_in_electric_network,
|
|
460
|
-
opened_by_circuit_network,
|
|
459
|
+
not_plugged_in_electric_network = 10,
|
|
460
|
+
opened_by_circuit_network = 6,
|
|
461
461
|
/**
|
|
462
462
|
* Used by logistic containers.
|
|
463
463
|
*/
|
|
464
|
-
out_of_logistic_network,
|
|
464
|
+
out_of_logistic_network = 16,
|
|
465
465
|
/**
|
|
466
466
|
* Used by the rocket silo.
|
|
467
467
|
*/
|
|
468
|
-
preparing_rocket_for_launch,
|
|
468
|
+
preparing_rocket_for_launch = 31,
|
|
469
469
|
/**
|
|
470
470
|
* Used by roboports.
|
|
471
471
|
*/
|
|
472
|
-
recharging_after_power_outage,
|
|
472
|
+
recharging_after_power_outage = 35,
|
|
473
473
|
/**
|
|
474
474
|
* Used by lamps.
|
|
475
475
|
*/
|
|
476
|
-
turned_off_during_daytime,
|
|
476
|
+
turned_off_during_daytime = 41,
|
|
477
477
|
/**
|
|
478
478
|
* Used by inserters.
|
|
479
479
|
*/
|
|
480
|
-
waiting_for_source_items,
|
|
480
|
+
waiting_for_source_items = 29,
|
|
481
481
|
/**
|
|
482
482
|
* Used by inserters and mining drills.
|
|
483
483
|
*/
|
|
484
|
-
waiting_for_space_in_destination,
|
|
484
|
+
waiting_for_space_in_destination = 30,
|
|
485
485
|
/**
|
|
486
486
|
* Used by inserters targeting entity ghosts.
|
|
487
487
|
*/
|
|
488
|
-
waiting_for_target_to_be_built,
|
|
488
|
+
waiting_for_target_to_be_built = 36,
|
|
489
489
|
/**
|
|
490
490
|
* Used by inserters targeting rails.
|
|
491
491
|
*/
|
|
492
|
-
waiting_for_train,
|
|
492
|
+
waiting_for_train = 37,
|
|
493
493
|
/**
|
|
494
494
|
* Used by the rocket silo.
|
|
495
495
|
*/
|
|
496
|
-
waiting_to_launch_rocket,
|
|
497
|
-
working,
|
|
496
|
+
waiting_to_launch_rocket = 32,
|
|
497
|
+
working = 0,
|
|
498
498
|
}
|
|
499
499
|
/**
|
|
500
500
|
* See the {@link events page | runtime:events} for more info on what events contain and when they get raised.
|
|
501
501
|
*/
|
|
502
502
|
enum events {
|
|
503
|
-
on_ai_command_completed,
|
|
504
|
-
on_area_cloned,
|
|
505
|
-
on_biter_base_built,
|
|
506
|
-
on_brush_cloned,
|
|
507
|
-
on_build_base_arrived,
|
|
508
|
-
on_built_entity,
|
|
509
|
-
on_cancelled_deconstruction,
|
|
510
|
-
on_cancelled_upgrade,
|
|
511
|
-
on_character_corpse_expired,
|
|
512
|
-
on_chart_tag_added,
|
|
513
|
-
on_chart_tag_modified,
|
|
514
|
-
on_chart_tag_removed,
|
|
515
|
-
on_chunk_charted,
|
|
516
|
-
on_chunk_deleted,
|
|
517
|
-
on_chunk_generated,
|
|
518
|
-
on_combat_robot_expired,
|
|
519
|
-
on_console_chat,
|
|
520
|
-
on_console_command,
|
|
521
|
-
on_cutscene_cancelled,
|
|
522
|
-
on_cutscene_finished,
|
|
523
|
-
on_cutscene_started,
|
|
524
|
-
on_cutscene_waypoint_reached,
|
|
525
|
-
on_difficulty_settings_changed,
|
|
526
|
-
on_entity_cloned,
|
|
527
|
-
on_entity_color_changed,
|
|
528
|
-
on_entity_damaged,
|
|
529
|
-
on_entity_destroyed,
|
|
530
|
-
on_entity_died,
|
|
531
|
-
on_entity_logistic_slot_changed,
|
|
532
|
-
on_entity_renamed,
|
|
533
|
-
on_entity_settings_pasted,
|
|
534
|
-
on_entity_spawned,
|
|
535
|
-
on_equipment_inserted,
|
|
536
|
-
on_equipment_removed,
|
|
537
|
-
on_force_cease_fire_changed,
|
|
538
|
-
on_force_created,
|
|
539
|
-
on_force_friends_changed,
|
|
540
|
-
on_force_reset,
|
|
541
|
-
on_forces_merged,
|
|
542
|
-
on_forces_merging,
|
|
543
|
-
on_game_created_from_scenario,
|
|
544
|
-
on_gui_checked_state_changed,
|
|
545
|
-
on_gui_click,
|
|
546
|
-
on_gui_closed,
|
|
547
|
-
on_gui_confirmed,
|
|
548
|
-
on_gui_elem_changed,
|
|
549
|
-
on_gui_hover,
|
|
550
|
-
on_gui_leave,
|
|
551
|
-
on_gui_location_changed,
|
|
552
|
-
on_gui_opened,
|
|
553
|
-
on_gui_selected_tab_changed,
|
|
554
|
-
on_gui_selection_state_changed,
|
|
555
|
-
on_gui_switch_state_changed,
|
|
556
|
-
on_gui_text_changed,
|
|
557
|
-
on_gui_value_changed,
|
|
558
|
-
on_land_mine_armed,
|
|
559
|
-
on_lua_shortcut,
|
|
560
|
-
on_marked_for_deconstruction,
|
|
561
|
-
on_marked_for_upgrade,
|
|
562
|
-
on_market_item_purchased,
|
|
563
|
-
on_mod_item_opened,
|
|
564
|
-
on_permission_group_added,
|
|
565
|
-
on_permission_group_deleted,
|
|
566
|
-
on_permission_group_edited,
|
|
567
|
-
on_permission_string_imported,
|
|
568
|
-
on_picked_up_item,
|
|
569
|
-
on_player_alt_reverse_selected_area,
|
|
570
|
-
on_player_alt_selected_area,
|
|
571
|
-
on_player_ammo_inventory_changed,
|
|
572
|
-
on_player_armor_inventory_changed,
|
|
573
|
-
on_player_banned,
|
|
574
|
-
on_player_built_tile,
|
|
575
|
-
on_player_cancelled_crafting,
|
|
576
|
-
on_player_changed_force,
|
|
577
|
-
on_player_changed_position,
|
|
578
|
-
on_player_changed_surface,
|
|
579
|
-
on_player_cheat_mode_disabled,
|
|
580
|
-
on_player_cheat_mode_enabled,
|
|
581
|
-
on_player_clicked_gps_tag,
|
|
582
|
-
on_player_configured_blueprint,
|
|
583
|
-
on_player_configured_spider_remote,
|
|
584
|
-
on_player_crafted_item,
|
|
585
|
-
on_player_created,
|
|
586
|
-
on_player_cursor_stack_changed,
|
|
587
|
-
on_player_deconstructed_area,
|
|
588
|
-
on_player_demoted,
|
|
589
|
-
on_player_died,
|
|
590
|
-
on_player_display_resolution_changed,
|
|
591
|
-
on_player_display_scale_changed,
|
|
592
|
-
on_player_driving_changed_state,
|
|
593
|
-
on_player_dropped_item,
|
|
594
|
-
on_player_fast_transferred,
|
|
595
|
-
on_player_flushed_fluid,
|
|
596
|
-
on_player_gun_inventory_changed,
|
|
597
|
-
on_player_input_method_changed,
|
|
598
|
-
on_player_joined_game,
|
|
599
|
-
on_player_kicked,
|
|
600
|
-
on_player_left_game,
|
|
601
|
-
on_player_main_inventory_changed,
|
|
602
|
-
on_player_mined_entity,
|
|
603
|
-
on_player_mined_item,
|
|
604
|
-
on_player_mined_tile,
|
|
605
|
-
on_player_muted,
|
|
606
|
-
on_player_pipette,
|
|
607
|
-
on_player_placed_equipment,
|
|
608
|
-
on_player_promoted,
|
|
609
|
-
on_player_removed,
|
|
610
|
-
on_player_removed_equipment,
|
|
611
|
-
on_player_repaired_entity,
|
|
612
|
-
on_player_respawned,
|
|
613
|
-
on_player_reverse_selected_area,
|
|
614
|
-
on_player_rotated_entity,
|
|
615
|
-
on_player_selected_area,
|
|
616
|
-
on_player_set_quick_bar_slot,
|
|
617
|
-
on_player_setup_blueprint,
|
|
618
|
-
on_player_toggled_alt_mode,
|
|
619
|
-
on_player_toggled_map_editor,
|
|
620
|
-
on_player_trash_inventory_changed,
|
|
621
|
-
on_player_unbanned,
|
|
622
|
-
on_player_unmuted,
|
|
623
|
-
on_player_used_capsule,
|
|
624
|
-
on_player_used_spider_remote,
|
|
625
|
-
on_post_entity_died,
|
|
626
|
-
on_pre_build,
|
|
627
|
-
on_pre_chunk_deleted,
|
|
628
|
-
on_pre_entity_settings_pasted,
|
|
629
|
-
on_pre_ghost_deconstructed,
|
|
630
|
-
on_pre_ghost_upgraded,
|
|
631
|
-
on_pre_permission_group_deleted,
|
|
632
|
-
on_pre_permission_string_imported,
|
|
633
|
-
on_pre_player_crafted_item,
|
|
634
|
-
on_pre_player_died,
|
|
635
|
-
on_pre_player_left_game,
|
|
636
|
-
on_pre_player_mined_item,
|
|
637
|
-
on_pre_player_removed,
|
|
638
|
-
on_pre_player_toggled_map_editor,
|
|
639
|
-
on_pre_robot_exploded_cliff,
|
|
640
|
-
on_pre_script_inventory_resized,
|
|
641
|
-
on_pre_surface_cleared,
|
|
642
|
-
on_pre_surface_deleted,
|
|
643
|
-
on_research_cancelled,
|
|
644
|
-
on_research_finished,
|
|
645
|
-
on_research_reversed,
|
|
646
|
-
on_research_started,
|
|
647
|
-
on_resource_depleted,
|
|
648
|
-
on_robot_built_entity,
|
|
649
|
-
on_robot_built_tile,
|
|
650
|
-
on_robot_exploded_cliff,
|
|
651
|
-
on_robot_mined,
|
|
652
|
-
on_robot_mined_entity,
|
|
653
|
-
on_robot_mined_tile,
|
|
654
|
-
on_robot_pre_mined,
|
|
655
|
-
on_rocket_launch_ordered,
|
|
656
|
-
on_rocket_launched,
|
|
657
|
-
on_runtime_mod_setting_changed,
|
|
658
|
-
on_script_inventory_resized,
|
|
659
|
-
on_script_path_request_finished,
|
|
660
|
-
on_script_trigger_effect,
|
|
661
|
-
on_sector_scanned,
|
|
662
|
-
on_selected_entity_changed,
|
|
663
|
-
on_spider_command_completed,
|
|
664
|
-
on_string_translated,
|
|
665
|
-
on_surface_cleared,
|
|
666
|
-
on_surface_created,
|
|
667
|
-
on_surface_deleted,
|
|
668
|
-
on_surface_imported,
|
|
669
|
-
on_surface_renamed,
|
|
670
|
-
on_technology_effects_reset,
|
|
671
|
-
on_tick,
|
|
672
|
-
on_train_changed_state,
|
|
673
|
-
on_train_created,
|
|
674
|
-
on_train_schedule_changed,
|
|
675
|
-
on_trigger_created_entity,
|
|
676
|
-
on_trigger_fired_artillery,
|
|
677
|
-
on_unit_added_to_group,
|
|
678
|
-
on_unit_group_created,
|
|
679
|
-
on_unit_group_finished_gathering,
|
|
680
|
-
on_unit_removed_from_group,
|
|
681
|
-
on_worker_robot_expired,
|
|
682
|
-
script_raised_built,
|
|
683
|
-
script_raised_destroy,
|
|
684
|
-
script_raised_revive,
|
|
685
|
-
script_raised_set_tiles,
|
|
686
|
-
script_raised_teleported,
|
|
503
|
+
on_ai_command_completed = 123,
|
|
504
|
+
on_area_cloned = 128,
|
|
505
|
+
on_biter_base_built = 59,
|
|
506
|
+
on_brush_cloned = 129,
|
|
507
|
+
on_build_base_arrived = 144,
|
|
508
|
+
on_built_entity = 9,
|
|
509
|
+
on_cancelled_deconstruction = 26,
|
|
510
|
+
on_cancelled_upgrade = 125,
|
|
511
|
+
on_character_corpse_expired = 98,
|
|
512
|
+
on_chart_tag_added = 145,
|
|
513
|
+
on_chart_tag_modified = 146,
|
|
514
|
+
on_chart_tag_removed = 147,
|
|
515
|
+
on_chunk_charted = 106,
|
|
516
|
+
on_chunk_deleted = 115,
|
|
517
|
+
on_chunk_generated = 15,
|
|
518
|
+
on_combat_robot_expired = 87,
|
|
519
|
+
on_console_chat = 75,
|
|
520
|
+
on_console_command = 76,
|
|
521
|
+
on_cutscene_cancelled = 169,
|
|
522
|
+
on_cutscene_finished = 182,
|
|
523
|
+
on_cutscene_started = 181,
|
|
524
|
+
on_cutscene_waypoint_reached = 139,
|
|
525
|
+
on_difficulty_settings_changed = 64,
|
|
526
|
+
on_entity_cloned = 127,
|
|
527
|
+
on_entity_color_changed = 180,
|
|
528
|
+
on_entity_damaged = 7,
|
|
529
|
+
on_entity_destroyed = 160,
|
|
530
|
+
on_entity_died = 5,
|
|
531
|
+
on_entity_logistic_slot_changed = 173,
|
|
532
|
+
on_entity_renamed = 61,
|
|
533
|
+
on_entity_settings_pasted = 37,
|
|
534
|
+
on_entity_spawned = 138,
|
|
535
|
+
on_equipment_inserted = 174,
|
|
536
|
+
on_equipment_removed = 175,
|
|
537
|
+
on_force_cease_fire_changed = 152,
|
|
538
|
+
on_force_created = 33,
|
|
539
|
+
on_force_friends_changed = 153,
|
|
540
|
+
on_force_reset = 108,
|
|
541
|
+
on_forces_merged = 110,
|
|
542
|
+
on_forces_merging = 34,
|
|
543
|
+
on_game_created_from_scenario = 130,
|
|
544
|
+
on_gui_checked_state_changed = 4,
|
|
545
|
+
on_gui_click = 1,
|
|
546
|
+
on_gui_closed = 92,
|
|
547
|
+
on_gui_confirmed = 2,
|
|
548
|
+
on_gui_elem_changed = 71,
|
|
549
|
+
on_gui_hover = 178,
|
|
550
|
+
on_gui_leave = 179,
|
|
551
|
+
on_gui_location_changed = 149,
|
|
552
|
+
on_gui_opened = 91,
|
|
553
|
+
on_gui_selected_tab_changed = 150,
|
|
554
|
+
on_gui_selection_state_changed = 62,
|
|
555
|
+
on_gui_switch_state_changed = 151,
|
|
556
|
+
on_gui_text_changed = 3,
|
|
557
|
+
on_gui_value_changed = 93,
|
|
558
|
+
on_land_mine_armed = 109,
|
|
559
|
+
on_lua_shortcut = 148,
|
|
560
|
+
on_marked_for_deconstruction = 25,
|
|
561
|
+
on_marked_for_upgrade = 124,
|
|
562
|
+
on_market_item_purchased = 57,
|
|
563
|
+
on_mod_item_opened = 90,
|
|
564
|
+
on_permission_group_added = 168,
|
|
565
|
+
on_permission_group_deleted = 167,
|
|
566
|
+
on_permission_group_edited = 163,
|
|
567
|
+
on_permission_string_imported = 165,
|
|
568
|
+
on_picked_up_item = 8,
|
|
569
|
+
on_player_alt_reverse_selected_area = 177,
|
|
570
|
+
on_player_alt_selected_area = 54,
|
|
571
|
+
on_player_ammo_inventory_changed = 40,
|
|
572
|
+
on_player_armor_inventory_changed = 39,
|
|
573
|
+
on_player_banned = 118,
|
|
574
|
+
on_player_built_tile = 49,
|
|
575
|
+
on_player_cancelled_crafting = 105,
|
|
576
|
+
on_player_changed_force = 60,
|
|
577
|
+
on_player_changed_position = 89,
|
|
578
|
+
on_player_changed_surface = 55,
|
|
579
|
+
on_player_cheat_mode_disabled = 97,
|
|
580
|
+
on_player_cheat_mode_enabled = 96,
|
|
581
|
+
on_player_clicked_gps_tag = 161,
|
|
582
|
+
on_player_configured_blueprint = 74,
|
|
583
|
+
on_player_configured_spider_remote = 170,
|
|
584
|
+
on_player_crafted_item = 16,
|
|
585
|
+
on_player_created = 30,
|
|
586
|
+
on_player_cursor_stack_changed = 35,
|
|
587
|
+
on_player_deconstructed_area = 73,
|
|
588
|
+
on_player_demoted = 86,
|
|
589
|
+
on_player_died = 45,
|
|
590
|
+
on_player_display_resolution_changed = 102,
|
|
591
|
+
on_player_display_scale_changed = 103,
|
|
592
|
+
on_player_driving_changed_state = 32,
|
|
593
|
+
on_player_dropped_item = 58,
|
|
594
|
+
on_player_fast_transferred = 135,
|
|
595
|
+
on_player_flushed_fluid = 162,
|
|
596
|
+
on_player_gun_inventory_changed = 41,
|
|
597
|
+
on_player_input_method_changed = 183,
|
|
598
|
+
on_player_joined_game = 47,
|
|
599
|
+
on_player_kicked = 119,
|
|
600
|
+
on_player_left_game = 48,
|
|
601
|
+
on_player_main_inventory_changed = 38,
|
|
602
|
+
on_player_mined_entity = 68,
|
|
603
|
+
on_player_mined_item = 11,
|
|
604
|
+
on_player_mined_tile = 50,
|
|
605
|
+
on_player_muted = 94,
|
|
606
|
+
on_player_pipette = 101,
|
|
607
|
+
on_player_placed_equipment = 42,
|
|
608
|
+
on_player_promoted = 85,
|
|
609
|
+
on_player_removed = 77,
|
|
610
|
+
on_player_removed_equipment = 43,
|
|
611
|
+
on_player_repaired_entity = 134,
|
|
612
|
+
on_player_respawned = 46,
|
|
613
|
+
on_player_reverse_selected_area = 176,
|
|
614
|
+
on_player_rotated_entity = 24,
|
|
615
|
+
on_player_selected_area = 53,
|
|
616
|
+
on_player_set_quick_bar_slot = 156,
|
|
617
|
+
on_player_setup_blueprint = 72,
|
|
618
|
+
on_player_toggled_alt_mode = 133,
|
|
619
|
+
on_player_toggled_map_editor = 126,
|
|
620
|
+
on_player_trash_inventory_changed = 111,
|
|
621
|
+
on_player_unbanned = 120,
|
|
622
|
+
on_player_unmuted = 95,
|
|
623
|
+
on_player_used_capsule = 79,
|
|
624
|
+
on_player_used_spider_remote = 171,
|
|
625
|
+
on_post_entity_died = 6,
|
|
626
|
+
on_pre_build = 12,
|
|
627
|
+
on_pre_chunk_deleted = 116,
|
|
628
|
+
on_pre_entity_settings_pasted = 36,
|
|
629
|
+
on_pre_ghost_deconstructed = 99,
|
|
630
|
+
on_pre_ghost_upgraded = 100,
|
|
631
|
+
on_pre_permission_group_deleted = 166,
|
|
632
|
+
on_pre_permission_string_imported = 164,
|
|
633
|
+
on_pre_player_crafted_item = 104,
|
|
634
|
+
on_pre_player_died = 44,
|
|
635
|
+
on_pre_player_left_game = 112,
|
|
636
|
+
on_pre_player_mined_item = 14,
|
|
637
|
+
on_pre_player_removed = 78,
|
|
638
|
+
on_pre_player_toggled_map_editor = 157,
|
|
639
|
+
on_pre_robot_exploded_cliff = 136,
|
|
640
|
+
on_pre_script_inventory_resized = 158,
|
|
641
|
+
on_pre_surface_cleared = 113,
|
|
642
|
+
on_pre_surface_deleted = 67,
|
|
643
|
+
on_research_cancelled = 23,
|
|
644
|
+
on_research_finished = 21,
|
|
645
|
+
on_research_reversed = 22,
|
|
646
|
+
on_research_started = 20,
|
|
647
|
+
on_resource_depleted = 31,
|
|
648
|
+
on_robot_built_entity = 17,
|
|
649
|
+
on_robot_built_tile = 51,
|
|
650
|
+
on_robot_exploded_cliff = 137,
|
|
651
|
+
on_robot_mined = 19,
|
|
652
|
+
on_robot_mined_entity = 69,
|
|
653
|
+
on_robot_mined_tile = 52,
|
|
654
|
+
on_robot_pre_mined = 18,
|
|
655
|
+
on_rocket_launch_ordered = 121,
|
|
656
|
+
on_rocket_launched = 13,
|
|
657
|
+
on_runtime_mod_setting_changed = 63,
|
|
658
|
+
on_script_inventory_resized = 159,
|
|
659
|
+
on_script_path_request_finished = 122,
|
|
660
|
+
on_script_trigger_effect = 155,
|
|
661
|
+
on_sector_scanned = 10,
|
|
662
|
+
on_selected_entity_changed = 56,
|
|
663
|
+
on_spider_command_completed = 172,
|
|
664
|
+
on_string_translated = 154,
|
|
665
|
+
on_surface_cleared = 114,
|
|
666
|
+
on_surface_created = 65,
|
|
667
|
+
on_surface_deleted = 66,
|
|
668
|
+
on_surface_imported = 131,
|
|
669
|
+
on_surface_renamed = 132,
|
|
670
|
+
on_technology_effects_reset = 107,
|
|
671
|
+
on_tick = 0,
|
|
672
|
+
on_train_changed_state = 29,
|
|
673
|
+
on_train_created = 70,
|
|
674
|
+
on_train_schedule_changed = 117,
|
|
675
|
+
on_trigger_created_entity = 27,
|
|
676
|
+
on_trigger_fired_artillery = 28,
|
|
677
|
+
on_unit_added_to_group = 141,
|
|
678
|
+
on_unit_group_created = 140,
|
|
679
|
+
on_unit_group_finished_gathering = 143,
|
|
680
|
+
on_unit_removed_from_group = 142,
|
|
681
|
+
on_worker_robot_expired = 88,
|
|
682
|
+
script_raised_built = 80,
|
|
683
|
+
script_raised_destroy = 81,
|
|
684
|
+
script_raised_revive = 82,
|
|
685
|
+
script_raised_set_tiles = 84,
|
|
686
|
+
script_raised_teleported = 83,
|
|
687
687
|
}
|
|
688
688
|
enum flow_precision_index {
|
|
689
|
-
fifty_hours,
|
|
690
|
-
five_seconds,
|
|
691
|
-
one_hour,
|
|
692
|
-
one_minute,
|
|
693
|
-
one_thousand_hours,
|
|
694
|
-
ten_hours,
|
|
695
|
-
ten_minutes,
|
|
696
|
-
two_hundred_fifty_hours,
|
|
689
|
+
fifty_hours = 5,
|
|
690
|
+
five_seconds = 0,
|
|
691
|
+
one_hour = 3,
|
|
692
|
+
one_minute = 1,
|
|
693
|
+
one_thousand_hours = 7,
|
|
694
|
+
ten_hours = 4,
|
|
695
|
+
ten_minutes = 2,
|
|
696
|
+
two_hundred_fifty_hours = 6,
|
|
697
697
|
}
|
|
698
698
|
enum game_controller_interaction {
|
|
699
699
|
/**
|
|
700
700
|
* Game controller will always hover this element regardless of type or state.
|
|
701
701
|
*/
|
|
702
|
-
always,
|
|
702
|
+
always = 0,
|
|
703
703
|
/**
|
|
704
704
|
* Never hover this element with a game controller.
|
|
705
705
|
*/
|
|
706
|
-
never,
|
|
706
|
+
never = 1,
|
|
707
707
|
/**
|
|
708
708
|
* Hover according to the element type and implementation.
|
|
709
709
|
*/
|
|
710
|
-
normal,
|
|
710
|
+
normal = 2,
|
|
711
711
|
}
|
|
712
712
|
enum group_state {
|
|
713
|
-
attacking_distraction,
|
|
714
|
-
attacking_target,
|
|
715
|
-
finished,
|
|
716
|
-
gathering,
|
|
717
|
-
moving,
|
|
718
|
-
pathfinding,
|
|
719
|
-
wander_in_group,
|
|
713
|
+
attacking_distraction = 2,
|
|
714
|
+
attacking_target = 3,
|
|
715
|
+
finished = 4,
|
|
716
|
+
gathering = 0,
|
|
717
|
+
moving = 1,
|
|
718
|
+
pathfinding = 5,
|
|
719
|
+
wander_in_group = 6,
|
|
720
720
|
}
|
|
721
721
|
enum gui_type {
|
|
722
|
-
achievement,
|
|
723
|
-
blueprint_library,
|
|
724
|
-
bonus,
|
|
725
|
-
controller,
|
|
726
|
-
custom,
|
|
727
|
-
entity,
|
|
728
|
-
equipment,
|
|
729
|
-
item,
|
|
730
|
-
logistic,
|
|
731
|
-
none,
|
|
732
|
-
other_player,
|
|
733
|
-
permissions,
|
|
734
|
-
player_management,
|
|
735
|
-
production,
|
|
736
|
-
research,
|
|
737
|
-
script_inventory,
|
|
738
|
-
server_management,
|
|
739
|
-
tile,
|
|
740
|
-
trains,
|
|
741
|
-
tutorials,
|
|
722
|
+
achievement = 8,
|
|
723
|
+
blueprint_library = 9,
|
|
724
|
+
bonus = 6,
|
|
725
|
+
controller = 3,
|
|
726
|
+
custom = 15,
|
|
727
|
+
entity = 1,
|
|
728
|
+
equipment = 10,
|
|
729
|
+
item = 5,
|
|
730
|
+
logistic = 11,
|
|
731
|
+
none = 0,
|
|
732
|
+
other_player = 12,
|
|
733
|
+
permissions = 13,
|
|
734
|
+
player_management = 17,
|
|
735
|
+
production = 4,
|
|
736
|
+
research = 2,
|
|
737
|
+
script_inventory = 19,
|
|
738
|
+
server_management = 16,
|
|
739
|
+
tile = 18,
|
|
740
|
+
trains = 7,
|
|
741
|
+
tutorials = 14,
|
|
742
742
|
}
|
|
743
743
|
enum input_action {
|
|
744
|
-
activate_copy,
|
|
745
|
-
activate_cut,
|
|
746
|
-
activate_paste,
|
|
747
|
-
add_permission_group,
|
|
748
|
-
add_train_station,
|
|
749
|
-
admin_action,
|
|
750
|
-
alt_reverse_select_area,
|
|
751
|
-
alt_select_area,
|
|
752
|
-
alt_select_blueprint_entities,
|
|
753
|
-
alternative_copy,
|
|
754
|
-
begin_mining,
|
|
755
|
-
begin_mining_terrain,
|
|
756
|
-
build,
|
|
757
|
-
build_rail,
|
|
758
|
-
build_terrain,
|
|
759
|
-
cancel_craft,
|
|
760
|
-
cancel_deconstruct,
|
|
761
|
-
cancel_new_blueprint,
|
|
762
|
-
cancel_research,
|
|
763
|
-
cancel_upgrade,
|
|
764
|
-
change_active_character_tab,
|
|
765
|
-
change_active_item_group_for_crafting,
|
|
766
|
-
change_active_item_group_for_filters,
|
|
767
|
-
change_active_quick_bar,
|
|
768
|
-
change_arithmetic_combinator_parameters,
|
|
769
|
-
change_decider_combinator_parameters,
|
|
770
|
-
change_entity_label,
|
|
771
|
-
change_item_description,
|
|
772
|
-
change_item_label,
|
|
773
|
-
change_multiplayer_config,
|
|
774
|
-
change_picking_state,
|
|
775
|
-
change_programmable_speaker_alert_parameters,
|
|
776
|
-
change_programmable_speaker_circuit_parameters,
|
|
777
|
-
change_programmable_speaker_parameters,
|
|
778
|
-
change_riding_state,
|
|
779
|
-
change_shooting_state,
|
|
780
|
-
change_train_stop_station,
|
|
781
|
-
change_train_wait_condition,
|
|
782
|
-
change_train_wait_condition_data,
|
|
783
|
-
clear_cursor,
|
|
784
|
-
connect_rolling_stock,
|
|
785
|
-
copy,
|
|
786
|
-
copy_entity_settings,
|
|
787
|
-
copy_opened_blueprint,
|
|
788
|
-
copy_opened_item,
|
|
789
|
-
craft,
|
|
790
|
-
cursor_split,
|
|
791
|
-
cursor_transfer,
|
|
792
|
-
custom_input,
|
|
793
|
-
cycle_blueprint_book_backwards,
|
|
794
|
-
cycle_blueprint_book_forwards,
|
|
795
|
-
deconstruct,
|
|
796
|
-
delete_blueprint_library,
|
|
797
|
-
delete_blueprint_record,
|
|
798
|
-
delete_custom_tag,
|
|
799
|
-
delete_permission_group,
|
|
800
|
-
destroy_item,
|
|
801
|
-
destroy_opened_item,
|
|
802
|
-
disconnect_rolling_stock,
|
|
803
|
-
drag_train_schedule,
|
|
804
|
-
drag_train_wait_condition,
|
|
805
|
-
drop_blueprint_record,
|
|
806
|
-
drop_item,
|
|
807
|
-
edit_blueprint_tool_preview,
|
|
808
|
-
edit_custom_tag,
|
|
809
|
-
edit_permission_group,
|
|
810
|
-
export_blueprint,
|
|
811
|
-
fast_entity_split,
|
|
812
|
-
fast_entity_transfer,
|
|
813
|
-
flush_opened_entity_fluid,
|
|
814
|
-
flush_opened_entity_specific_fluid,
|
|
815
|
-
go_to_train_station,
|
|
816
|
-
grab_blueprint_record,
|
|
817
|
-
gui_checked_state_changed,
|
|
818
|
-
gui_click,
|
|
819
|
-
gui_confirmed,
|
|
820
|
-
gui_elem_changed,
|
|
821
|
-
gui_hover,
|
|
822
|
-
gui_leave,
|
|
823
|
-
gui_location_changed,
|
|
824
|
-
gui_selected_tab_changed,
|
|
825
|
-
gui_selection_state_changed,
|
|
826
|
-
gui_switch_state_changed,
|
|
827
|
-
gui_text_changed,
|
|
828
|
-
gui_value_changed,
|
|
829
|
-
import_blueprint,
|
|
830
|
-
import_blueprint_string,
|
|
831
|
-
import_blueprints_filtered,
|
|
832
|
-
import_permissions_string,
|
|
833
|
-
inventory_split,
|
|
834
|
-
inventory_transfer,
|
|
835
|
-
launch_rocket,
|
|
836
|
-
lua_shortcut,
|
|
837
|
-
map_editor_action,
|
|
838
|
-
market_offer,
|
|
839
|
-
mod_settings_changed,
|
|
840
|
-
open_achievements_gui,
|
|
841
|
-
open_blueprint_library_gui,
|
|
842
|
-
open_blueprint_record,
|
|
843
|
-
open_bonus_gui,
|
|
844
|
-
open_character_gui,
|
|
845
|
-
open_current_vehicle_gui,
|
|
846
|
-
open_equipment,
|
|
847
|
-
open_gui,
|
|
848
|
-
open_item,
|
|
849
|
-
open_logistic_gui,
|
|
850
|
-
open_mod_item,
|
|
851
|
-
open_parent_of_opened_item,
|
|
852
|
-
open_production_gui,
|
|
853
|
-
open_technology_gui,
|
|
854
|
-
open_tips_and_tricks_gui,
|
|
855
|
-
open_train_gui,
|
|
856
|
-
open_train_station_gui,
|
|
857
|
-
open_trains_gui,
|
|
858
|
-
paste_entity_settings,
|
|
859
|
-
place_equipment,
|
|
860
|
-
quick_bar_pick_slot,
|
|
861
|
-
quick_bar_set_selected_page,
|
|
862
|
-
quick_bar_set_slot,
|
|
863
|
-
reassign_blueprint,
|
|
864
|
-
remove_cables,
|
|
865
|
-
remove_train_station,
|
|
866
|
-
reset_assembling_machine,
|
|
867
|
-
reset_item,
|
|
868
|
-
reverse_select_area,
|
|
869
|
-
rotate_entity,
|
|
870
|
-
select_area,
|
|
871
|
-
select_blueprint_entities,
|
|
872
|
-
select_entity_slot,
|
|
873
|
-
select_item,
|
|
874
|
-
select_mapper_slot,
|
|
875
|
-
select_next_valid_gun,
|
|
876
|
-
select_tile_slot,
|
|
877
|
-
send_spidertron,
|
|
878
|
-
set_auto_launch_rocket,
|
|
879
|
-
set_autosort_inventory,
|
|
880
|
-
set_behavior_mode,
|
|
881
|
-
set_car_weapons_control,
|
|
882
|
-
set_circuit_condition,
|
|
883
|
-
set_circuit_mode_of_operation,
|
|
884
|
-
set_controller_logistic_trash_filter_item,
|
|
885
|
-
set_deconstruction_item_tile_selection_mode,
|
|
886
|
-
set_deconstruction_item_trees_and_rocks_only,
|
|
887
|
-
set_entity_color,
|
|
888
|
-
set_entity_energy_property,
|
|
889
|
-
set_entity_logistic_trash_filter_item,
|
|
890
|
-
set_filter,
|
|
891
|
-
set_flat_controller_gui,
|
|
892
|
-
set_heat_interface_mode,
|
|
893
|
-
set_heat_interface_temperature,
|
|
894
|
-
set_infinity_container_filter_item,
|
|
895
|
-
set_infinity_container_remove_unfiltered_items,
|
|
896
|
-
set_infinity_pipe_filter,
|
|
897
|
-
set_inserter_max_stack_size,
|
|
898
|
-
set_inventory_bar,
|
|
899
|
-
set_linked_container_link_i_d,
|
|
900
|
-
set_logistic_filter_item,
|
|
901
|
-
set_logistic_filter_signal,
|
|
902
|
-
set_player_color,
|
|
903
|
-
set_recipe_notifications,
|
|
904
|
-
set_request_from_buffers,
|
|
905
|
-
set_research_finished_stops_game,
|
|
906
|
-
set_signal,
|
|
907
|
-
set_splitter_priority,
|
|
908
|
-
set_train_stopped,
|
|
909
|
-
set_trains_limit,
|
|
910
|
-
set_vehicle_automatic_targeting_parameters,
|
|
911
|
-
setup_assembling_machine,
|
|
912
|
-
setup_blueprint,
|
|
913
|
-
setup_single_blueprint_record,
|
|
914
|
-
smart_pipette,
|
|
915
|
-
spawn_item,
|
|
916
|
-
stack_split,
|
|
917
|
-
stack_transfer,
|
|
918
|
-
start_repair,
|
|
919
|
-
start_research,
|
|
920
|
-
start_walking,
|
|
921
|
-
stop_building_by_moving,
|
|
922
|
-
switch_connect_to_logistic_network,
|
|
923
|
-
switch_constant_combinator_state,
|
|
924
|
-
switch_inserter_filter_mode_state,
|
|
925
|
-
switch_power_switch_state,
|
|
926
|
-
switch_to_rename_stop_gui,
|
|
927
|
-
take_equipment,
|
|
928
|
-
toggle_deconstruction_item_entity_filter_mode,
|
|
929
|
-
toggle_deconstruction_item_tile_filter_mode,
|
|
930
|
-
toggle_driving,
|
|
931
|
-
toggle_enable_vehicle_logistics_while_moving,
|
|
932
|
-
toggle_entity_logistic_requests,
|
|
933
|
-
toggle_equipment_movement_bonus,
|
|
934
|
-
toggle_map_editor,
|
|
935
|
-
toggle_personal_logistic_requests,
|
|
936
|
-
toggle_personal_roboport,
|
|
937
|
-
toggle_show_entity_info,
|
|
938
|
-
translate_string,
|
|
939
|
-
undo,
|
|
940
|
-
upgrade,
|
|
941
|
-
upgrade_opened_blueprint_by_item,
|
|
942
|
-
upgrade_opened_blueprint_by_record,
|
|
943
|
-
use_artillery_remote,
|
|
944
|
-
use_item,
|
|
945
|
-
wire_dragging,
|
|
946
|
-
write_to_console,
|
|
744
|
+
activate_copy = 0,
|
|
745
|
+
activate_cut = 1,
|
|
746
|
+
activate_paste = 2,
|
|
747
|
+
add_permission_group = 3,
|
|
748
|
+
add_train_station = 4,
|
|
749
|
+
admin_action = 5,
|
|
750
|
+
alt_reverse_select_area = 6,
|
|
751
|
+
alt_select_area = 7,
|
|
752
|
+
alt_select_blueprint_entities = 8,
|
|
753
|
+
alternative_copy = 9,
|
|
754
|
+
begin_mining = 10,
|
|
755
|
+
begin_mining_terrain = 11,
|
|
756
|
+
build = 12,
|
|
757
|
+
build_rail = 13,
|
|
758
|
+
build_terrain = 14,
|
|
759
|
+
cancel_craft = 15,
|
|
760
|
+
cancel_deconstruct = 16,
|
|
761
|
+
cancel_new_blueprint = 17,
|
|
762
|
+
cancel_research = 18,
|
|
763
|
+
cancel_upgrade = 19,
|
|
764
|
+
change_active_character_tab = 20,
|
|
765
|
+
change_active_item_group_for_crafting = 21,
|
|
766
|
+
change_active_item_group_for_filters = 22,
|
|
767
|
+
change_active_quick_bar = 23,
|
|
768
|
+
change_arithmetic_combinator_parameters = 24,
|
|
769
|
+
change_decider_combinator_parameters = 25,
|
|
770
|
+
change_entity_label = 26,
|
|
771
|
+
change_item_description = 27,
|
|
772
|
+
change_item_label = 28,
|
|
773
|
+
change_multiplayer_config = 29,
|
|
774
|
+
change_picking_state = 30,
|
|
775
|
+
change_programmable_speaker_alert_parameters = 31,
|
|
776
|
+
change_programmable_speaker_circuit_parameters = 32,
|
|
777
|
+
change_programmable_speaker_parameters = 33,
|
|
778
|
+
change_riding_state = 34,
|
|
779
|
+
change_shooting_state = 35,
|
|
780
|
+
change_train_stop_station = 36,
|
|
781
|
+
change_train_wait_condition = 37,
|
|
782
|
+
change_train_wait_condition_data = 38,
|
|
783
|
+
clear_cursor = 39,
|
|
784
|
+
connect_rolling_stock = 40,
|
|
785
|
+
copy = 41,
|
|
786
|
+
copy_entity_settings = 42,
|
|
787
|
+
copy_opened_blueprint = 43,
|
|
788
|
+
copy_opened_item = 44,
|
|
789
|
+
craft = 45,
|
|
790
|
+
cursor_split = 46,
|
|
791
|
+
cursor_transfer = 47,
|
|
792
|
+
custom_input = 48,
|
|
793
|
+
cycle_blueprint_book_backwards = 49,
|
|
794
|
+
cycle_blueprint_book_forwards = 50,
|
|
795
|
+
deconstruct = 51,
|
|
796
|
+
delete_blueprint_library = 52,
|
|
797
|
+
delete_blueprint_record = 53,
|
|
798
|
+
delete_custom_tag = 54,
|
|
799
|
+
delete_permission_group = 55,
|
|
800
|
+
destroy_item = 56,
|
|
801
|
+
destroy_opened_item = 57,
|
|
802
|
+
disconnect_rolling_stock = 58,
|
|
803
|
+
drag_train_schedule = 59,
|
|
804
|
+
drag_train_wait_condition = 60,
|
|
805
|
+
drop_blueprint_record = 61,
|
|
806
|
+
drop_item = 62,
|
|
807
|
+
edit_blueprint_tool_preview = 63,
|
|
808
|
+
edit_custom_tag = 64,
|
|
809
|
+
edit_permission_group = 65,
|
|
810
|
+
export_blueprint = 66,
|
|
811
|
+
fast_entity_split = 67,
|
|
812
|
+
fast_entity_transfer = 68,
|
|
813
|
+
flush_opened_entity_fluid = 69,
|
|
814
|
+
flush_opened_entity_specific_fluid = 70,
|
|
815
|
+
go_to_train_station = 71,
|
|
816
|
+
grab_blueprint_record = 72,
|
|
817
|
+
gui_checked_state_changed = 73,
|
|
818
|
+
gui_click = 74,
|
|
819
|
+
gui_confirmed = 75,
|
|
820
|
+
gui_elem_changed = 76,
|
|
821
|
+
gui_hover = 77,
|
|
822
|
+
gui_leave = 78,
|
|
823
|
+
gui_location_changed = 79,
|
|
824
|
+
gui_selected_tab_changed = 80,
|
|
825
|
+
gui_selection_state_changed = 81,
|
|
826
|
+
gui_switch_state_changed = 82,
|
|
827
|
+
gui_text_changed = 83,
|
|
828
|
+
gui_value_changed = 84,
|
|
829
|
+
import_blueprint = 85,
|
|
830
|
+
import_blueprint_string = 86,
|
|
831
|
+
import_blueprints_filtered = 87,
|
|
832
|
+
import_permissions_string = 88,
|
|
833
|
+
inventory_split = 89,
|
|
834
|
+
inventory_transfer = 90,
|
|
835
|
+
launch_rocket = 91,
|
|
836
|
+
lua_shortcut = 92,
|
|
837
|
+
map_editor_action = 93,
|
|
838
|
+
market_offer = 94,
|
|
839
|
+
mod_settings_changed = 95,
|
|
840
|
+
open_achievements_gui = 96,
|
|
841
|
+
open_blueprint_library_gui = 97,
|
|
842
|
+
open_blueprint_record = 98,
|
|
843
|
+
open_bonus_gui = 99,
|
|
844
|
+
open_character_gui = 100,
|
|
845
|
+
open_current_vehicle_gui = 101,
|
|
846
|
+
open_equipment = 102,
|
|
847
|
+
open_gui = 103,
|
|
848
|
+
open_item = 104,
|
|
849
|
+
open_logistic_gui = 105,
|
|
850
|
+
open_mod_item = 106,
|
|
851
|
+
open_parent_of_opened_item = 107,
|
|
852
|
+
open_production_gui = 108,
|
|
853
|
+
open_technology_gui = 109,
|
|
854
|
+
open_tips_and_tricks_gui = 110,
|
|
855
|
+
open_train_gui = 111,
|
|
856
|
+
open_train_station_gui = 112,
|
|
857
|
+
open_trains_gui = 113,
|
|
858
|
+
paste_entity_settings = 114,
|
|
859
|
+
place_equipment = 115,
|
|
860
|
+
quick_bar_pick_slot = 116,
|
|
861
|
+
quick_bar_set_selected_page = 117,
|
|
862
|
+
quick_bar_set_slot = 118,
|
|
863
|
+
reassign_blueprint = 119,
|
|
864
|
+
remove_cables = 120,
|
|
865
|
+
remove_train_station = 121,
|
|
866
|
+
reset_assembling_machine = 122,
|
|
867
|
+
reset_item = 123,
|
|
868
|
+
reverse_select_area = 124,
|
|
869
|
+
rotate_entity = 125,
|
|
870
|
+
select_area = 126,
|
|
871
|
+
select_blueprint_entities = 127,
|
|
872
|
+
select_entity_slot = 128,
|
|
873
|
+
select_item = 129,
|
|
874
|
+
select_mapper_slot = 130,
|
|
875
|
+
select_next_valid_gun = 131,
|
|
876
|
+
select_tile_slot = 132,
|
|
877
|
+
send_spidertron = 133,
|
|
878
|
+
set_auto_launch_rocket = 134,
|
|
879
|
+
set_autosort_inventory = 135,
|
|
880
|
+
set_behavior_mode = 136,
|
|
881
|
+
set_car_weapons_control = 137,
|
|
882
|
+
set_circuit_condition = 138,
|
|
883
|
+
set_circuit_mode_of_operation = 139,
|
|
884
|
+
set_controller_logistic_trash_filter_item = 140,
|
|
885
|
+
set_deconstruction_item_tile_selection_mode = 141,
|
|
886
|
+
set_deconstruction_item_trees_and_rocks_only = 142,
|
|
887
|
+
set_entity_color = 143,
|
|
888
|
+
set_entity_energy_property = 144,
|
|
889
|
+
set_entity_logistic_trash_filter_item = 145,
|
|
890
|
+
set_filter = 146,
|
|
891
|
+
set_flat_controller_gui = 147,
|
|
892
|
+
set_heat_interface_mode = 148,
|
|
893
|
+
set_heat_interface_temperature = 149,
|
|
894
|
+
set_infinity_container_filter_item = 150,
|
|
895
|
+
set_infinity_container_remove_unfiltered_items = 151,
|
|
896
|
+
set_infinity_pipe_filter = 152,
|
|
897
|
+
set_inserter_max_stack_size = 153,
|
|
898
|
+
set_inventory_bar = 154,
|
|
899
|
+
set_linked_container_link_i_d = 155,
|
|
900
|
+
set_logistic_filter_item = 156,
|
|
901
|
+
set_logistic_filter_signal = 157,
|
|
902
|
+
set_player_color = 158,
|
|
903
|
+
set_recipe_notifications = 159,
|
|
904
|
+
set_request_from_buffers = 160,
|
|
905
|
+
set_research_finished_stops_game = 161,
|
|
906
|
+
set_signal = 162,
|
|
907
|
+
set_splitter_priority = 163,
|
|
908
|
+
set_train_stopped = 164,
|
|
909
|
+
set_trains_limit = 165,
|
|
910
|
+
set_vehicle_automatic_targeting_parameters = 166,
|
|
911
|
+
setup_assembling_machine = 167,
|
|
912
|
+
setup_blueprint = 168,
|
|
913
|
+
setup_single_blueprint_record = 169,
|
|
914
|
+
smart_pipette = 170,
|
|
915
|
+
spawn_item = 171,
|
|
916
|
+
stack_split = 172,
|
|
917
|
+
stack_transfer = 173,
|
|
918
|
+
start_repair = 174,
|
|
919
|
+
start_research = 175,
|
|
920
|
+
start_walking = 176,
|
|
921
|
+
stop_building_by_moving = 177,
|
|
922
|
+
switch_connect_to_logistic_network = 178,
|
|
923
|
+
switch_constant_combinator_state = 179,
|
|
924
|
+
switch_inserter_filter_mode_state = 180,
|
|
925
|
+
switch_power_switch_state = 181,
|
|
926
|
+
switch_to_rename_stop_gui = 182,
|
|
927
|
+
take_equipment = 183,
|
|
928
|
+
toggle_deconstruction_item_entity_filter_mode = 184,
|
|
929
|
+
toggle_deconstruction_item_tile_filter_mode = 185,
|
|
930
|
+
toggle_driving = 186,
|
|
931
|
+
toggle_enable_vehicle_logistics_while_moving = 187,
|
|
932
|
+
toggle_entity_logistic_requests = 188,
|
|
933
|
+
toggle_equipment_movement_bonus = 189,
|
|
934
|
+
toggle_map_editor = 190,
|
|
935
|
+
toggle_personal_logistic_requests = 191,
|
|
936
|
+
toggle_personal_roboport = 192,
|
|
937
|
+
toggle_show_entity_info = 193,
|
|
938
|
+
translate_string = 194,
|
|
939
|
+
undo = 195,
|
|
940
|
+
upgrade = 196,
|
|
941
|
+
upgrade_opened_blueprint_by_item = 197,
|
|
942
|
+
upgrade_opened_blueprint_by_record = 198,
|
|
943
|
+
use_artillery_remote = 199,
|
|
944
|
+
use_item = 200,
|
|
945
|
+
wire_dragging = 201,
|
|
946
|
+
write_to_console = 202,
|
|
947
947
|
}
|
|
948
948
|
enum input_method {
|
|
949
|
-
game_controller,
|
|
950
|
-
keyboard_and_mouse,
|
|
949
|
+
game_controller = 1,
|
|
950
|
+
keyboard_and_mouse = 0,
|
|
951
951
|
}
|
|
952
952
|
enum inventory {
|
|
953
|
-
artillery_turret_ammo,
|
|
954
|
-
artillery_wagon_ammo,
|
|
955
|
-
assembling_machine_input,
|
|
956
|
-
assembling_machine_modules,
|
|
957
|
-
assembling_machine_output,
|
|
958
|
-
beacon_modules,
|
|
959
|
-
burnt_result,
|
|
960
|
-
car_ammo,
|
|
961
|
-
car_trunk,
|
|
962
|
-
cargo_wagon,
|
|
963
|
-
character_ammo,
|
|
964
|
-
character_armor,
|
|
965
|
-
character_corpse,
|
|
966
|
-
character_guns,
|
|
967
|
-
character_main,
|
|
968
|
-
character_trash,
|
|
969
|
-
character_vehicle,
|
|
970
|
-
chest,
|
|
971
|
-
editor_ammo,
|
|
972
|
-
editor_armor,
|
|
973
|
-
editor_guns,
|
|
974
|
-
editor_main,
|
|
975
|
-
fuel,
|
|
976
|
-
furnace_modules,
|
|
977
|
-
furnace_result,
|
|
978
|
-
furnace_source,
|
|
979
|
-
god_main,
|
|
980
|
-
item_main,
|
|
981
|
-
lab_input,
|
|
982
|
-
lab_modules,
|
|
983
|
-
mining_drill_modules,
|
|
984
|
-
roboport_material,
|
|
985
|
-
roboport_robot,
|
|
986
|
-
robot_cargo,
|
|
987
|
-
robot_repair,
|
|
988
|
-
rocket,
|
|
989
|
-
rocket_silo_input,
|
|
990
|
-
rocket_silo_modules,
|
|
991
|
-
rocket_silo_output,
|
|
992
|
-
rocket_silo_result,
|
|
993
|
-
rocket_silo_rocket,
|
|
994
|
-
spider_ammo,
|
|
995
|
-
spider_trash,
|
|
996
|
-
spider_trunk,
|
|
997
|
-
turret_ammo,
|
|
953
|
+
artillery_turret_ammo = 40,
|
|
954
|
+
artillery_wagon_ammo = 41,
|
|
955
|
+
assembling_machine_input = 21,
|
|
956
|
+
assembling_machine_modules = 23,
|
|
957
|
+
assembling_machine_output = 22,
|
|
958
|
+
beacon_modules = 38,
|
|
959
|
+
burnt_result = 1,
|
|
960
|
+
car_ammo = 35,
|
|
961
|
+
car_trunk = 34,
|
|
962
|
+
cargo_wagon = 36,
|
|
963
|
+
character_ammo = 8,
|
|
964
|
+
character_armor = 9,
|
|
965
|
+
character_corpse = 39,
|
|
966
|
+
character_guns = 7,
|
|
967
|
+
character_main = 6,
|
|
968
|
+
character_trash = 11,
|
|
969
|
+
character_vehicle = 10,
|
|
970
|
+
chest = 2,
|
|
971
|
+
editor_ammo = 15,
|
|
972
|
+
editor_armor = 16,
|
|
973
|
+
editor_guns = 14,
|
|
974
|
+
editor_main = 13,
|
|
975
|
+
fuel = 0,
|
|
976
|
+
furnace_modules = 5,
|
|
977
|
+
furnace_result = 4,
|
|
978
|
+
furnace_source = 3,
|
|
979
|
+
god_main = 12,
|
|
980
|
+
item_main = 27,
|
|
981
|
+
lab_input = 24,
|
|
982
|
+
lab_modules = 25,
|
|
983
|
+
mining_drill_modules = 26,
|
|
984
|
+
roboport_material = 18,
|
|
985
|
+
roboport_robot = 17,
|
|
986
|
+
robot_cargo = 19,
|
|
987
|
+
robot_repair = 20,
|
|
988
|
+
rocket = 33,
|
|
989
|
+
rocket_silo_input = 30,
|
|
990
|
+
rocket_silo_modules = 32,
|
|
991
|
+
rocket_silo_output = 31,
|
|
992
|
+
rocket_silo_result = 29,
|
|
993
|
+
rocket_silo_rocket = 28,
|
|
994
|
+
spider_ammo = 43,
|
|
995
|
+
spider_trash = 44,
|
|
996
|
+
spider_trunk = 42,
|
|
997
|
+
turret_ammo = 37,
|
|
998
998
|
}
|
|
999
999
|
enum logistic_member_index {
|
|
1000
|
-
character_provider,
|
|
1001
|
-
character_requester,
|
|
1002
|
-
character_storage,
|
|
1003
|
-
generic_on_off_behavior,
|
|
1004
|
-
logistic_container,
|
|
1005
|
-
vehicle_storage,
|
|
1000
|
+
character_provider = 4,
|
|
1001
|
+
character_requester = 2,
|
|
1002
|
+
character_storage = 3,
|
|
1003
|
+
generic_on_off_behavior = 5,
|
|
1004
|
+
logistic_container = 0,
|
|
1005
|
+
vehicle_storage = 1,
|
|
1006
1006
|
}
|
|
1007
1007
|
enum logistic_mode {
|
|
1008
|
-
active_provider,
|
|
1009
|
-
buffer,
|
|
1010
|
-
none,
|
|
1011
|
-
passive_provider,
|
|
1012
|
-
requester,
|
|
1013
|
-
storage,
|
|
1008
|
+
active_provider = 1,
|
|
1009
|
+
buffer = 5,
|
|
1010
|
+
none = 0,
|
|
1011
|
+
passive_provider = 4,
|
|
1012
|
+
requester = 3,
|
|
1013
|
+
storage = 2,
|
|
1014
1014
|
}
|
|
1015
1015
|
enum mouse_button_type {
|
|
1016
|
-
left,
|
|
1017
|
-
middle,
|
|
1018
|
-
none,
|
|
1019
|
-
right,
|
|
1016
|
+
left = 1,
|
|
1017
|
+
middle = 3,
|
|
1018
|
+
none = 0,
|
|
1019
|
+
right = 2,
|
|
1020
1020
|
}
|
|
1021
1021
|
enum print_skip {
|
|
1022
1022
|
/**
|
|
1023
1023
|
* Print will be skipped if same text was recently printed (within last 60 ticks). Used by most game messages.
|
|
1024
1024
|
*/
|
|
1025
|
-
if_redundant,
|
|
1025
|
+
if_redundant = 1,
|
|
1026
1026
|
/**
|
|
1027
1027
|
* Print will be skipped if same text is still visible (printed within last 1152 ticks). Used by some notifications.
|
|
1028
1028
|
*/
|
|
1029
|
-
if_visible,
|
|
1029
|
+
if_visible = 2,
|
|
1030
1030
|
/**
|
|
1031
1031
|
* Print will not be skipped.
|
|
1032
1032
|
*/
|
|
1033
|
-
never,
|
|
1033
|
+
never = 0,
|
|
1034
1034
|
}
|
|
1035
1035
|
enum print_sound {
|
|
1036
|
-
always,
|
|
1037
|
-
never,
|
|
1038
|
-
use_player_settings,
|
|
1036
|
+
always = 0,
|
|
1037
|
+
never = 1,
|
|
1038
|
+
use_player_settings = 2,
|
|
1039
1039
|
}
|
|
1040
1040
|
/**
|
|
1041
1041
|
* 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, ...}`.
|
|
@@ -1043,108 +1043,108 @@ declare namespace defines {
|
|
|
1043
1043
|
enum prototypes {
|
|
1044
1044
|
}
|
|
1045
1045
|
enum rail_connection_direction {
|
|
1046
|
-
left,
|
|
1047
|
-
none,
|
|
1048
|
-
right,
|
|
1049
|
-
straight,
|
|
1046
|
+
left = 0,
|
|
1047
|
+
none = 3,
|
|
1048
|
+
right = 2,
|
|
1049
|
+
straight = 1,
|
|
1050
1050
|
}
|
|
1051
1051
|
enum rail_direction {
|
|
1052
|
-
back,
|
|
1053
|
-
front,
|
|
1052
|
+
back = 1,
|
|
1053
|
+
front = 0,
|
|
1054
1054
|
}
|
|
1055
1055
|
enum relative_gui_position {
|
|
1056
|
-
bottom,
|
|
1057
|
-
left,
|
|
1058
|
-
right,
|
|
1059
|
-
top,
|
|
1056
|
+
bottom = 1,
|
|
1057
|
+
left = 2,
|
|
1058
|
+
right = 3,
|
|
1059
|
+
top = 0,
|
|
1060
1060
|
}
|
|
1061
1061
|
enum relative_gui_type {
|
|
1062
|
-
accumulator_gui,
|
|
1063
|
-
achievement_gui,
|
|
1064
|
-
additional_entity_info_gui,
|
|
1065
|
-
admin_gui,
|
|
1066
|
-
arithmetic_combinator_gui,
|
|
1067
|
-
armor_gui,
|
|
1068
|
-
assembling_machine_gui,
|
|
1069
|
-
assembling_machine_select_recipe_gui,
|
|
1070
|
-
beacon_gui,
|
|
1071
|
-
blueprint_book_gui,
|
|
1072
|
-
blueprint_library_gui,
|
|
1073
|
-
blueprint_setup_gui,
|
|
1074
|
-
bonus_gui,
|
|
1075
|
-
burner_equipment_gui,
|
|
1076
|
-
car_gui,
|
|
1077
|
-
constant_combinator_gui,
|
|
1078
|
-
container_gui,
|
|
1079
|
-
controller_gui,
|
|
1080
|
-
decider_combinator_gui,
|
|
1081
|
-
deconstruction_item_gui,
|
|
1082
|
-
electric_energy_interface_gui,
|
|
1083
|
-
electric_network_gui,
|
|
1084
|
-
entity_variations_gui,
|
|
1085
|
-
entity_with_energy_source_gui,
|
|
1086
|
-
equipment_grid_gui,
|
|
1087
|
-
furnace_gui,
|
|
1088
|
-
generic_on_off_entity_gui,
|
|
1089
|
-
heat_interface_gui,
|
|
1090
|
-
infinity_pipe_gui,
|
|
1091
|
-
inserter_gui,
|
|
1092
|
-
item_with_inventory_gui,
|
|
1093
|
-
lab_gui,
|
|
1094
|
-
lamp_gui,
|
|
1095
|
-
linked_container_gui,
|
|
1096
|
-
loader_gui,
|
|
1097
|
-
logistic_gui,
|
|
1098
|
-
market_gui,
|
|
1099
|
-
mining_drill_gui,
|
|
1100
|
-
other_player_gui,
|
|
1101
|
-
permissions_gui,
|
|
1102
|
-
pipe_gui,
|
|
1103
|
-
power_switch_gui,
|
|
1104
|
-
production_gui,
|
|
1105
|
-
programmable_speaker_gui,
|
|
1106
|
-
rail_chain_signal_gui,
|
|
1107
|
-
rail_signal_gui,
|
|
1108
|
-
reactor_gui,
|
|
1109
|
-
rename_stop_gui,
|
|
1110
|
-
resource_entity_gui,
|
|
1111
|
-
roboport_gui,
|
|
1112
|
-
rocket_silo_gui,
|
|
1113
|
-
script_inventory_gui,
|
|
1114
|
-
server_config_gui,
|
|
1115
|
-
spider_vehicle_gui,
|
|
1116
|
-
splitter_gui,
|
|
1117
|
-
standalone_character_gui,
|
|
1118
|
-
storage_tank_gui,
|
|
1119
|
-
tile_variations_gui,
|
|
1120
|
-
train_gui,
|
|
1121
|
-
train_stop_gui,
|
|
1122
|
-
trains_gui,
|
|
1123
|
-
transport_belt_gui,
|
|
1124
|
-
upgrade_item_gui,
|
|
1125
|
-
wall_gui,
|
|
1062
|
+
accumulator_gui = 0,
|
|
1063
|
+
achievement_gui = 1,
|
|
1064
|
+
additional_entity_info_gui = 2,
|
|
1065
|
+
admin_gui = 3,
|
|
1066
|
+
arithmetic_combinator_gui = 4,
|
|
1067
|
+
armor_gui = 5,
|
|
1068
|
+
assembling_machine_gui = 6,
|
|
1069
|
+
assembling_machine_select_recipe_gui = 7,
|
|
1070
|
+
beacon_gui = 8,
|
|
1071
|
+
blueprint_book_gui = 9,
|
|
1072
|
+
blueprint_library_gui = 10,
|
|
1073
|
+
blueprint_setup_gui = 11,
|
|
1074
|
+
bonus_gui = 12,
|
|
1075
|
+
burner_equipment_gui = 13,
|
|
1076
|
+
car_gui = 14,
|
|
1077
|
+
constant_combinator_gui = 15,
|
|
1078
|
+
container_gui = 16,
|
|
1079
|
+
controller_gui = 17,
|
|
1080
|
+
decider_combinator_gui = 18,
|
|
1081
|
+
deconstruction_item_gui = 19,
|
|
1082
|
+
electric_energy_interface_gui = 20,
|
|
1083
|
+
electric_network_gui = 21,
|
|
1084
|
+
entity_variations_gui = 22,
|
|
1085
|
+
entity_with_energy_source_gui = 23,
|
|
1086
|
+
equipment_grid_gui = 24,
|
|
1087
|
+
furnace_gui = 25,
|
|
1088
|
+
generic_on_off_entity_gui = 26,
|
|
1089
|
+
heat_interface_gui = 27,
|
|
1090
|
+
infinity_pipe_gui = 28,
|
|
1091
|
+
inserter_gui = 29,
|
|
1092
|
+
item_with_inventory_gui = 30,
|
|
1093
|
+
lab_gui = 31,
|
|
1094
|
+
lamp_gui = 32,
|
|
1095
|
+
linked_container_gui = 33,
|
|
1096
|
+
loader_gui = 34,
|
|
1097
|
+
logistic_gui = 35,
|
|
1098
|
+
market_gui = 36,
|
|
1099
|
+
mining_drill_gui = 37,
|
|
1100
|
+
other_player_gui = 38,
|
|
1101
|
+
permissions_gui = 39,
|
|
1102
|
+
pipe_gui = 40,
|
|
1103
|
+
power_switch_gui = 41,
|
|
1104
|
+
production_gui = 42,
|
|
1105
|
+
programmable_speaker_gui = 43,
|
|
1106
|
+
rail_chain_signal_gui = 44,
|
|
1107
|
+
rail_signal_gui = 45,
|
|
1108
|
+
reactor_gui = 46,
|
|
1109
|
+
rename_stop_gui = 47,
|
|
1110
|
+
resource_entity_gui = 48,
|
|
1111
|
+
roboport_gui = 49,
|
|
1112
|
+
rocket_silo_gui = 50,
|
|
1113
|
+
script_inventory_gui = 51,
|
|
1114
|
+
server_config_gui = 52,
|
|
1115
|
+
spider_vehicle_gui = 53,
|
|
1116
|
+
splitter_gui = 54,
|
|
1117
|
+
standalone_character_gui = 55,
|
|
1118
|
+
storage_tank_gui = 56,
|
|
1119
|
+
tile_variations_gui = 57,
|
|
1120
|
+
train_gui = 58,
|
|
1121
|
+
train_stop_gui = 59,
|
|
1122
|
+
trains_gui = 60,
|
|
1123
|
+
transport_belt_gui = 61,
|
|
1124
|
+
upgrade_item_gui = 62,
|
|
1125
|
+
wall_gui = 63,
|
|
1126
1126
|
}
|
|
1127
1127
|
enum render_mode {
|
|
1128
|
-
chart,
|
|
1129
|
-
chart_zoomed_in,
|
|
1130
|
-
game,
|
|
1128
|
+
chart = 1,
|
|
1129
|
+
chart_zoomed_in = 2,
|
|
1130
|
+
game = 0,
|
|
1131
1131
|
}
|
|
1132
1132
|
enum rich_text_setting {
|
|
1133
|
-
disabled,
|
|
1134
|
-
enabled,
|
|
1135
|
-
highlight,
|
|
1133
|
+
disabled = 1,
|
|
1134
|
+
enabled = 0,
|
|
1135
|
+
highlight = 2,
|
|
1136
1136
|
}
|
|
1137
1137
|
namespace riding {
|
|
1138
1138
|
enum acceleration {
|
|
1139
|
-
accelerating,
|
|
1140
|
-
braking,
|
|
1141
|
-
nothing,
|
|
1142
|
-
reversing,
|
|
1139
|
+
accelerating = 1,
|
|
1140
|
+
braking = 2,
|
|
1141
|
+
nothing = 0,
|
|
1142
|
+
reversing = 3,
|
|
1143
1143
|
}
|
|
1144
1144
|
enum direction {
|
|
1145
|
-
left,
|
|
1146
|
-
right,
|
|
1147
|
-
straight,
|
|
1145
|
+
left = 0,
|
|
1146
|
+
right = 2,
|
|
1147
|
+
straight = 1,
|
|
1148
1148
|
}
|
|
1149
1149
|
}
|
|
1150
1150
|
/**
|
|
@@ -1154,68 +1154,68 @@ declare namespace defines {
|
|
|
1154
1154
|
/**
|
|
1155
1155
|
* The next state is `rocket_ready` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting prepared for launch.
|
|
1156
1156
|
*/
|
|
1157
|
-
arms_advance,
|
|
1157
|
+
arms_advance = 6,
|
|
1158
1158
|
/**
|
|
1159
1159
|
* The next state is `rocket_flying` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting launched.
|
|
1160
1160
|
*/
|
|
1161
|
-
arms_retract,
|
|
1161
|
+
arms_retract = 10,
|
|
1162
1162
|
/**
|
|
1163
1163
|
* The rocket silo is crafting rocket parts. When there are enough rocket parts, the silo will switch into the `create_rocket` state.
|
|
1164
1164
|
*/
|
|
1165
|
-
building_rocket,
|
|
1165
|
+
building_rocket = 0,
|
|
1166
1166
|
/**
|
|
1167
1167
|
* The next state is `lights_blinking_open`. The rocket silo rocket entity gets created.
|
|
1168
1168
|
*/
|
|
1169
|
-
create_rocket,
|
|
1169
|
+
create_rocket = 1,
|
|
1170
1170
|
/**
|
|
1171
1171
|
* The next state is `building_rocket`.
|
|
1172
1172
|
*/
|
|
1173
|
-
doors_closing,
|
|
1173
|
+
doors_closing = 13,
|
|
1174
1174
|
/**
|
|
1175
1175
|
* The next state is `rocket_rising` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting prepared for launch.
|
|
1176
1176
|
*/
|
|
1177
|
-
doors_opened,
|
|
1177
|
+
doors_opened = 4,
|
|
1178
1178
|
/**
|
|
1179
1179
|
* The next state is `doors_opened`. The rocket is getting prepared for launch.
|
|
1180
1180
|
*/
|
|
1181
|
-
doors_opening,
|
|
1181
|
+
doors_opening = 3,
|
|
1182
1182
|
/**
|
|
1183
1183
|
* The next state is `arms_retract` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting launched.
|
|
1184
1184
|
*/
|
|
1185
|
-
engine_starting,
|
|
1185
|
+
engine_starting = 9,
|
|
1186
1186
|
/**
|
|
1187
1187
|
* The next state is `engine_starting` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting launched.
|
|
1188
1188
|
*/
|
|
1189
|
-
launch_started,
|
|
1189
|
+
launch_started = 14,
|
|
1190
1190
|
/**
|
|
1191
1191
|
* The next state is `launch_started`.
|
|
1192
1192
|
*/
|
|
1193
|
-
launch_starting,
|
|
1193
|
+
launch_starting = 8,
|
|
1194
1194
|
/**
|
|
1195
1195
|
* The next state is `doors_closing`.
|
|
1196
1196
|
*/
|
|
1197
|
-
lights_blinking_close,
|
|
1197
|
+
lights_blinking_close = 12,
|
|
1198
1198
|
/**
|
|
1199
1199
|
* The next state is `doors_opening`. The rocket is getting prepared for launch.
|
|
1200
1200
|
*/
|
|
1201
|
-
lights_blinking_open,
|
|
1201
|
+
lights_blinking_open = 2,
|
|
1202
1202
|
/**
|
|
1203
1203
|
* The next state is `lights_blinking_close`. The rocket is getting launched.
|
|
1204
1204
|
*/
|
|
1205
|
-
rocket_flying,
|
|
1205
|
+
rocket_flying = 11,
|
|
1206
1206
|
/**
|
|
1207
1207
|
* The rocket launch can be started by the player. When the launch is started, the silo switches into the `launch_starting` state.
|
|
1208
1208
|
*/
|
|
1209
|
-
rocket_ready,
|
|
1209
|
+
rocket_ready = 7,
|
|
1210
1210
|
/**
|
|
1211
1211
|
* The next state is `arms_advance` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting prepared for launch.
|
|
1212
1212
|
*/
|
|
1213
|
-
rocket_rising,
|
|
1213
|
+
rocket_rising = 5,
|
|
1214
1214
|
}
|
|
1215
1215
|
enum shooting {
|
|
1216
|
-
not_shooting,
|
|
1217
|
-
shooting_enemies,
|
|
1218
|
-
shooting_selected,
|
|
1216
|
+
not_shooting = 0,
|
|
1217
|
+
shooting_enemies = 1,
|
|
1218
|
+
shooting_selected = 2,
|
|
1219
1219
|
}
|
|
1220
1220
|
/**
|
|
1221
1221
|
* State of an ordinary rail signal.
|
|
@@ -1224,86 +1224,86 @@ declare namespace defines {
|
|
|
1224
1224
|
/**
|
|
1225
1225
|
* Red.
|
|
1226
1226
|
*/
|
|
1227
|
-
closed,
|
|
1227
|
+
closed = 1,
|
|
1228
1228
|
/**
|
|
1229
1229
|
* Green.
|
|
1230
1230
|
*/
|
|
1231
|
-
open,
|
|
1231
|
+
open = 0,
|
|
1232
1232
|
/**
|
|
1233
1233
|
* Orange.
|
|
1234
1234
|
*/
|
|
1235
|
-
reserved,
|
|
1235
|
+
reserved = 2,
|
|
1236
1236
|
/**
|
|
1237
1237
|
* Red - From circuit network.
|
|
1238
1238
|
*/
|
|
1239
|
-
reserved_by_circuit_network,
|
|
1239
|
+
reserved_by_circuit_network = 3,
|
|
1240
1240
|
}
|
|
1241
1241
|
enum train_state {
|
|
1242
1242
|
/**
|
|
1243
1243
|
* Braking before a rail signal.
|
|
1244
1244
|
*/
|
|
1245
|
-
arrive_signal,
|
|
1245
|
+
arrive_signal = 4,
|
|
1246
1246
|
/**
|
|
1247
1247
|
* Braking before a station.
|
|
1248
1248
|
*/
|
|
1249
|
-
arrive_station,
|
|
1249
|
+
arrive_station = 6,
|
|
1250
1250
|
/**
|
|
1251
1251
|
* Same as no_path but all candidate train stops are full
|
|
1252
1252
|
*/
|
|
1253
|
-
destination_full,
|
|
1253
|
+
destination_full = 10,
|
|
1254
1254
|
/**
|
|
1255
1255
|
* Can move if user explicitly sits in and rides the train.
|
|
1256
1256
|
*/
|
|
1257
|
-
manual_control,
|
|
1257
|
+
manual_control = 9,
|
|
1258
1258
|
/**
|
|
1259
1259
|
* Switched to manual control and has to stop.
|
|
1260
1260
|
*/
|
|
1261
|
-
manual_control_stop,
|
|
1261
|
+
manual_control_stop = 8,
|
|
1262
1262
|
/**
|
|
1263
1263
|
* Has no path and is stopped.
|
|
1264
1264
|
*/
|
|
1265
|
-
no_path,
|
|
1265
|
+
no_path = 3,
|
|
1266
1266
|
/**
|
|
1267
1267
|
* Doesn't have anywhere to go.
|
|
1268
1268
|
*/
|
|
1269
|
-
no_schedule,
|
|
1269
|
+
no_schedule = 2,
|
|
1270
1270
|
/**
|
|
1271
1271
|
* Normal state -- following the path.
|
|
1272
1272
|
*/
|
|
1273
|
-
on_the_path,
|
|
1273
|
+
on_the_path = 0,
|
|
1274
1274
|
/**
|
|
1275
1275
|
* Had path and lost it -- must stop.
|
|
1276
1276
|
*/
|
|
1277
|
-
path_lost,
|
|
1277
|
+
path_lost = 1,
|
|
1278
1278
|
/**
|
|
1279
1279
|
* Waiting at a signal.
|
|
1280
1280
|
*/
|
|
1281
|
-
wait_signal,
|
|
1281
|
+
wait_signal = 5,
|
|
1282
1282
|
/**
|
|
1283
1283
|
* Waiting at a station.
|
|
1284
1284
|
*/
|
|
1285
|
-
wait_station,
|
|
1285
|
+
wait_station = 7,
|
|
1286
1286
|
}
|
|
1287
1287
|
enum transport_line {
|
|
1288
|
-
left_line,
|
|
1289
|
-
left_split_line,
|
|
1290
|
-
left_underground_line,
|
|
1291
|
-
right_line,
|
|
1292
|
-
right_split_line,
|
|
1293
|
-
right_underground_line,
|
|
1294
|
-
secondary_left_line,
|
|
1295
|
-
secondary_left_split_line,
|
|
1296
|
-
secondary_right_line,
|
|
1297
|
-
secondary_right_split_line,
|
|
1288
|
+
left_line = 0,
|
|
1289
|
+
left_split_line = 6,
|
|
1290
|
+
left_underground_line = 2,
|
|
1291
|
+
right_line = 1,
|
|
1292
|
+
right_split_line = 7,
|
|
1293
|
+
right_underground_line = 3,
|
|
1294
|
+
secondary_left_line = 4,
|
|
1295
|
+
secondary_left_split_line = 8,
|
|
1296
|
+
secondary_right_line = 5,
|
|
1297
|
+
secondary_right_split_line = 9,
|
|
1298
1298
|
}
|
|
1299
1299
|
enum wire_connection_id {
|
|
1300
|
-
electric_pole,
|
|
1301
|
-
power_switch_left,
|
|
1302
|
-
power_switch_right,
|
|
1300
|
+
electric_pole = 0,
|
|
1301
|
+
power_switch_left = 1,
|
|
1302
|
+
power_switch_right = 2,
|
|
1303
1303
|
}
|
|
1304
1304
|
enum wire_type {
|
|
1305
|
-
copper,
|
|
1306
|
-
green,
|
|
1307
|
-
red,
|
|
1305
|
+
copper = 2,
|
|
1306
|
+
green = 1,
|
|
1307
|
+
red = 0,
|
|
1308
1308
|
}
|
|
1309
1309
|
}
|