typed-factorio 0.6.1 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- package/generated/classes.d.ts +79 -63
- package/generated/concepts.d.ts +1 -1
- package/generated/defines.d.ts +279 -193
- package/generated/events.d.ts +13 -198
- package/package.json +3 -3
package/generated/classes.d.ts
CHANGED
@@ -241,11 +241,6 @@ type RaiseableEvents =
|
|
241
241
|
| typeof defines.events.script_raised_revive
|
242
242
|
| typeof defines.events.script_raised_set_tiles
|
243
243
|
|
244
|
-
/** A custom event id created by {@link LuaBootstrap.generate_event_name}, with type data of the event. */
|
245
|
-
type CustomEventId<T extends table> = uint & {
|
246
|
-
_eventData: T
|
247
|
-
}
|
248
|
-
|
249
244
|
/**
|
250
245
|
* Entry point for registering event handlers. It is accessible through the global object named `script`.
|
251
246
|
*
|
@@ -336,14 +331,13 @@ interface LuaBootstrap {
|
|
336
331
|
* @param f - The handler for this event. Passing `nil` will unregister it.
|
337
332
|
* @param filters - The filters for this event. Can only be used when registering for individual events.
|
338
333
|
*/
|
339
|
-
on_event<E extends
|
334
|
+
on_event<E extends EventId<any, table>>(
|
340
335
|
event: E,
|
341
|
-
f: ((data:
|
342
|
-
filters?:
|
336
|
+
f: ((data: E["_eventData"]) => void) | undefined,
|
337
|
+
filters?: E["_filter"][]
|
343
338
|
): void
|
344
|
-
on_event<E extends
|
339
|
+
on_event<E extends EventId<any>>(event: E | E[], f: ((data: E["_eventData"]) => void) | undefined): void
|
345
340
|
on_event(event: string, f: ((data: CustomInputEvent) => void) | undefined): void
|
346
|
-
on_event<T extends table>(event: CustomEventId<T>, f: ((data: T) => void) | undefined): void
|
347
341
|
/**
|
348
342
|
* Register a handler to run every nth-tick(s). When the game is on tick 0 it will trigger all registered handlers.
|
349
343
|
*
|
@@ -388,9 +382,8 @@ interface LuaBootstrap {
|
|
388
382
|
* @param event - The event identifier to get a handler for.
|
389
383
|
* @returns Reference to the function currently registered as the handler.
|
390
384
|
*/
|
391
|
-
get_event_handler<E extends
|
385
|
+
get_event_handler<E extends EventId<any>>(event: E): (data: E["_eventData"]) => void
|
392
386
|
get_event_handler(event: string): (data: CustomInputEvent) => void
|
393
|
-
get_event_handler<T extends table>(event: CustomEventId<T>): (data: T) => void
|
394
387
|
/**
|
395
388
|
* Gets the mod event order as a string.
|
396
389
|
*
|
@@ -427,7 +420,7 @@ interface LuaBootstrap {
|
|
427
420
|
* @param event - ID of the event to filter.
|
428
421
|
* @param filters - The filters or `nil` to clear them.
|
429
422
|
*/
|
430
|
-
set_event_filter<E extends
|
423
|
+
set_event_filter<E extends EventId<any, table>>(event: E, filters: E["_filter"][] | undefined): void
|
431
424
|
/**
|
432
425
|
* Gets the filters for the given event.
|
433
426
|
*
|
@@ -436,7 +429,7 @@ interface LuaBootstrap {
|
|
436
429
|
* @param event - ID of the event to get.
|
437
430
|
* @returns The filters or `nil` if none are defined.
|
438
431
|
*/
|
439
|
-
get_event_filter<E extends
|
432
|
+
get_event_filter<E extends EventId<any, table>>(event: E): E["_filter"][] | undefined
|
440
433
|
/**
|
441
434
|
* Raise an event. Only events generated with
|
442
435
|
* {@link LuaBootstrap.generate_event_name LuaBootstrap::generate_event_name} and the following can be raised:
|
@@ -464,8 +457,10 @@ interface LuaBootstrap {
|
|
464
457
|
* @param event - ID of the event to raise.
|
465
458
|
* @param data - Table with extra data that will be passed to the event handler.
|
466
459
|
*/
|
467
|
-
raise_event<
|
468
|
-
|
460
|
+
raise_event<E extends RaiseableEvents | CustomEventId<any>>(
|
461
|
+
event: E,
|
462
|
+
data: Omit<E["_eventData"], keyof EventData>
|
463
|
+
): void
|
469
464
|
/**
|
470
465
|
* Raises {@link OnConsoleChatEvent on_console_chat} with the given parameters.
|
471
466
|
*
|
@@ -1393,9 +1388,15 @@ interface LuaControl {
|
|
1393
1388
|
*/
|
1394
1389
|
selected: LuaEntity | undefined
|
1395
1390
|
/**
|
1396
|
-
* The GUI
|
1391
|
+
* The GUI the player currently has open, or `nil` if no GUI is open. Writing to it fires the
|
1392
|
+
* {@link OnGuiOpenedEvent on_gui_opened} event.
|
1393
|
+
*
|
1394
|
+
* This is the GUI that will asked to close (by firing the {@link OnGuiClosedEvent on_gui_closed} event) when the
|
1395
|
+
* `Esc` or `E` keys are pressed. If this attribute is not `nil`, and a new GUI is written to it, the existing one
|
1396
|
+
* will be asked to close.
|
1397
1397
|
*
|
1398
|
-
* **Note**: Write supports any of the types. Read will return the entity
|
1398
|
+
* **Note**: Write supports any of the types. Read will return the `entity`, `equipment`, `equipment-grid`,
|
1399
|
+
* `player`, `element` or `nil`.
|
1399
1400
|
*
|
1400
1401
|
* {@link https://lua-api.factorio.com/next/LuaControl.html#LuaControl.opened View documentation}
|
1401
1402
|
*/
|
@@ -2613,7 +2614,7 @@ interface LuaEntity extends LuaControl {
|
|
2613
2614
|
/**
|
2614
2615
|
* Get the rails that this signal is connected to.
|
2615
2616
|
*
|
2616
|
-
* *Can only be used if this is RailSignal*
|
2617
|
+
* *Can only be used if this is RailSignal or RailChainSignal*
|
2617
2618
|
*
|
2618
2619
|
* {@link https://lua-api.factorio.com/next/LuaEntity.html#LuaEntity.get_connected_rails View documentation}
|
2619
2620
|
*/
|
@@ -2873,7 +2874,7 @@ interface LuaEntity extends LuaControl {
|
|
2873
2874
|
/**
|
2874
2875
|
* Sets the current recipe in this assembly machine.
|
2875
2876
|
*
|
2876
|
-
* *Can only be used if this is
|
2877
|
+
* *Can only be used if this is AssemblingMachine*
|
2877
2878
|
*
|
2878
2879
|
* {@link https://lua-api.factorio.com/next/LuaEntity.html#LuaEntity.set_recipe View documentation}
|
2879
2880
|
*
|
@@ -3700,7 +3701,7 @@ interface LuaEntity extends LuaControl {
|
|
3700
3701
|
/**
|
3701
3702
|
* The state of this rail signal.
|
3702
3703
|
*
|
3703
|
-
* *Can only be used if this is RailSignal*
|
3704
|
+
* *Can only be used if this is RailSignal or RailChainSignal*
|
3704
3705
|
*
|
3705
3706
|
* {@link https://lua-api.factorio.com/next/LuaEntity.html#LuaEntity.signal_state View documentation}
|
3706
3707
|
*/
|
@@ -7895,53 +7896,59 @@ interface LuaGameScript {
|
|
7895
7896
|
*/
|
7896
7897
|
regenerate_entity(entities: string | string[]): void
|
7897
7898
|
/**
|
7898
|
-
* Take a screenshot and save it to a file.
|
7899
|
+
* Take a screenshot and save it to a file. The filename should include a file extension indicating the desired
|
7900
|
+
* image format. Supports `.png`, `.jpg` / `.jpeg`, `.tga` and `.bmp`.
|
7899
7901
|
*
|
7900
7902
|
* **Note**: If Factorio is running headless, this function will do nothing.
|
7901
7903
|
*
|
7902
7904
|
* {@link https://lua-api.factorio.com/next/LuaGameScript.html#LuaGameScript.take_screenshot View documentation}
|
7903
7905
|
*/
|
7904
7906
|
take_screenshot(params: {
|
7907
|
+
/** The player to focus on. Defaults to the local player. */
|
7905
7908
|
readonly player?: PlayerIdentification
|
7906
7909
|
/** If defined, the screenshot will only be taken for this player. */
|
7907
7910
|
readonly by_player?: PlayerIdentification
|
7908
7911
|
/** If defined, the screenshot will be taken on this surface. */
|
7909
7912
|
readonly surface?: SurfaceIdentification
|
7910
|
-
/** If defined, the screenshot will be centered on this position. */
|
7913
|
+
/** If defined, the screenshot will be centered on this position. Otherwise, the screenshot will center on `player`. */
|
7911
7914
|
readonly position?: Position
|
7912
7915
|
/**
|
7913
|
-
*
|
7914
|
-
* resolution is 4096x4096 (resp. 2048x2048).
|
7916
|
+
* The maximum allowed resolution is 16384x16384 (8192x8192 when `anti_alias` is `true`), but the maximum
|
7917
|
+
* recommended resolution is 4096x4096 (resp. 2048x2048).
|
7915
7918
|
*/
|
7916
7919
|
readonly resolution?: Position
|
7920
|
+
/** The map zoom to take the screenshot at. Defaults to `1`. */
|
7917
7921
|
readonly zoom?: double
|
7918
|
-
/**
|
7922
|
+
/** The sub-path in `"script-output"` to save the screenshot to. Defaults to `"screenshot.png"`. */
|
7919
7923
|
readonly path?: string
|
7920
|
-
/**
|
7924
|
+
/** Whether to include GUIs in the screenshot or not. Defaults to `false`. */
|
7921
7925
|
readonly show_gui?: boolean
|
7922
|
-
/**
|
7926
|
+
/** Whether to include entity info ("Alt mode") or not. Defaults to `false`. */
|
7923
7927
|
readonly show_entity_info?: boolean
|
7924
|
-
/**
|
7928
|
+
/**
|
7929
|
+
* When `true` and when `player` is specified, the building preview for the item in the player's cursor will
|
7930
|
+
* also be rendered. Defaults to `false`.
|
7931
|
+
*/
|
7925
7932
|
readonly show_cursor_building_preview?: boolean
|
7926
|
-
/**
|
7933
|
+
/** Whether to render in double resolution and downscale the result (including GUI). Defaults to `false`. */
|
7927
7934
|
readonly anti_alias?: boolean
|
7928
|
-
/** The render quality if using jpg format (0-100 inclusive). */
|
7929
|
-
readonly quality?: int
|
7930
7935
|
/**
|
7931
|
-
*
|
7932
|
-
*
|
7936
|
+
* The `.jpg` render quality as a percentage (from 0% to 100% inclusive), if used. A lower value means a more
|
7937
|
+
* compressed image. Defaults to `80`.
|
7933
7938
|
*/
|
7939
|
+
readonly quality?: int
|
7940
|
+
/** Whether to save the screenshot even during replay playback. Defaults to `false`. */
|
7934
7941
|
readonly allow_in_replay?: boolean
|
7935
|
-
/** Overrides current surface daytime for duration of screenshot rendering. */
|
7942
|
+
/** Overrides the current surface daytime for the duration of screenshot rendering. */
|
7936
7943
|
readonly daytime?: double
|
7937
|
-
/** Overrides tick of water animation
|
7944
|
+
/** Overrides the tick of water animation, if animated water is enabled. */
|
7938
7945
|
readonly water_tick?: uint
|
7939
7946
|
/**
|
7940
|
-
* Screenshot requests are processed in between update and render. The game may skip rendering (drop
|
7941
|
-
* previous frame has not finished rendering or the game simulation starts to fall
|
7942
|
-
* If force_render is set to true
|
7943
|
-
* the update in which the request was created. This is not honored on multiplayer clients
|
7944
|
-
* to server.
|
7947
|
+
* Screenshot requests are processed in between game update and render. The game may skip rendering (ie. drop
|
7948
|
+
* frames) if the previous frame has not finished rendering or the game simulation starts to fall below 60
|
7949
|
+
* updates per second. If `force_render` is set to `true`, the game won't drop frames and process the screenshot
|
7950
|
+
* request at the end of the update in which the request was created. This is not honored on multiplayer clients
|
7951
|
+
* that are catching up to server. Defaults to `false`.
|
7945
7952
|
*/
|
7946
7953
|
readonly force_render?: boolean
|
7947
7954
|
}): void
|
@@ -7951,12 +7958,18 @@ interface LuaGameScript {
|
|
7951
7958
|
* {@link https://lua-api.factorio.com/next/LuaGameScript.html#LuaGameScript.set_wait_for_screenshots_to_finish View documentation}
|
7952
7959
|
*/
|
7953
7960
|
set_wait_for_screenshots_to_finish(): void
|
7961
|
+
/**
|
7962
|
+
* Take a screenshot of the technology screen and save it to a file. The filename should include a file extension
|
7963
|
+
* indicating the desired image format. Supports `.png`, `.jpg` / `.jpeg`, `.tga` and `.bmp`.
|
7964
|
+
*
|
7965
|
+
* {@link https://lua-api.factorio.com/next/LuaGameScript.html#LuaGameScript.take_technology_screenshot View documentation}
|
7966
|
+
*/
|
7954
7967
|
take_technology_screenshot(params: {
|
7955
|
-
/** The force to
|
7968
|
+
/** The force whose technology to screenshot. If not given, the `"player`" force is used. */
|
7956
7969
|
readonly force?: ForceIdentification
|
7957
|
-
/**
|
7970
|
+
/** The sub-path in `"script-output"` to save the screenshot to. Defaults to `"technology-screenshot.png"`. */
|
7958
7971
|
readonly path?: string
|
7959
|
-
/** If
|
7972
|
+
/** If given, the screenshot will only be taken for this player. */
|
7960
7973
|
readonly by_player?: PlayerIdentification
|
7961
7974
|
/** The technology to highlight. */
|
7962
7975
|
readonly selected_technology?: TechnologyIdentification
|
@@ -7965,7 +7978,10 @@ interface LuaGameScript {
|
|
7965
7978
|
* technology's parents. Defaults to `false`.
|
7966
7979
|
*/
|
7967
7980
|
readonly skip_disabled?: boolean
|
7968
|
-
/**
|
7981
|
+
/**
|
7982
|
+
* The `.jpg` render quality as a percentage (from 0% to 100% inclusive), if used. A lower value means a more
|
7983
|
+
* compressed image. Defaults to `80`.
|
7984
|
+
*/
|
7969
7985
|
readonly quality?: int
|
7970
7986
|
}): void
|
7971
7987
|
/**
|
@@ -9843,7 +9859,7 @@ interface BaseGuiElement {
|
|
9843
9859
|
*/
|
9844
9860
|
show_percent_for_small_numbers: boolean
|
9845
9861
|
/**
|
9846
|
-
* The location of this widget when stored in {@link LuaGui.screen LuaGui::screen} or `nil` if not
|
9862
|
+
* The location of this widget when stored in {@link LuaGui.screen LuaGui::screen}, or `nil` if not set or not in
|
9847
9863
|
* {@link LuaGui.screen LuaGui::screen}.
|
9848
9864
|
*
|
9849
9865
|
* {@link https://lua-api.factorio.com/next/LuaGuiElement.html#LuaGuiElement.location View documentation}
|
@@ -14429,7 +14445,7 @@ interface LuaPlayer extends LuaControl {
|
|
14429
14445
|
* Gets the current per-player settings for the this player, indexed by prototype name. Returns the same structure
|
14430
14446
|
* as {@link LuaSettings.get_player_settings LuaSettings::get_player_settings}.
|
14431
14447
|
*
|
14432
|
-
* **Note**: This
|
14448
|
+
* **Note**: This table will become invalid if its associated player does.
|
14433
14449
|
*
|
14434
14450
|
* {@link https://lua-api.factorio.com/next/LuaPlayer.html#LuaPlayer.mod_settings View documentation}
|
14435
14451
|
*/
|
@@ -16710,7 +16726,7 @@ interface LuaSettings {
|
|
16710
16726
|
* Gets the current per-player settings for the given player, indexed by prototype name. Returns the same structure
|
16711
16727
|
* as {@link LuaPlayer.mod_settings LuaPlayer::mod_settings}.
|
16712
16728
|
*
|
16713
|
-
* **Note**: This
|
16729
|
+
* **Note**: This table will become invalid if its associated player does.
|
16714
16730
|
*
|
16715
16731
|
* {@link https://lua-api.factorio.com/next/LuaSettings.html#LuaSettings.get_player_settings View documentation}
|
16716
16732
|
*
|
@@ -17547,15 +17563,15 @@ interface LuaSurface {
|
|
17547
17563
|
*/
|
17548
17564
|
find_entities(area?: BoundingBox): LuaEntity[]
|
17549
17565
|
/**
|
17550
|
-
* Find entities of given type or name in
|
17566
|
+
* Find all entities of the given type or name in the given area.
|
17551
17567
|
*
|
17552
|
-
* If no filters (`name`, `type`, `force`, etc.) are given, returns all entities in the search area. If
|
17553
|
-
* filters are specified,
|
17568
|
+
* If no filters (`name`, `type`, `force`, etc.) are given, this returns all entities in the search area. If
|
17569
|
+
* multiple filters are specified, only entities matching all given filters are returned.
|
17554
17570
|
*
|
17555
|
-
* If no area or position are given,
|
17556
|
-
* colliding with that position (i.e the given position is within the entity's collision box). If
|
17557
|
-
* radius are given, returns entities
|
17558
|
-
* colliding with that area.
|
17571
|
+
* If no `area` or `position` are given, the entire surface is searched. If `position` is given, this returns the
|
17572
|
+
* entities colliding with that position (i.e the given position is within the entity's collision box). If
|
17573
|
+
* `position` and `radius` are given, this returns the entities within the radius of the position. If `area` is
|
17574
|
+
* specified, this returns the entities colliding with that area.
|
17559
17575
|
*
|
17560
17576
|
* {@link https://lua-api.factorio.com/next/LuaSurface.html#LuaSurface.find_entities_filtered View documentation}
|
17561
17577
|
*
|
@@ -17592,11 +17608,11 @@ interface LuaSurface {
|
|
17592
17608
|
readonly invert?: boolean
|
17593
17609
|
}): LuaEntity[]
|
17594
17610
|
/**
|
17595
|
-
* Find tiles of
|
17611
|
+
* Find all tiles of the given name in the given area.
|
17596
17612
|
*
|
17597
|
-
* If no filters are given returns all tiles in the search area.
|
17613
|
+
* If no filters are given, this returns all tiles in the search area.
|
17598
17614
|
*
|
17599
|
-
* If no area or position and radius is given,
|
17615
|
+
* If no `area` or `position` and `radius` is given, the entire surface is searched. If `position` and `radius` are
|
17600
17616
|
* given, only tiles within the radius of the position are included.
|
17601
17617
|
*
|
17602
17618
|
* {@link https://lua-api.factorio.com/next/LuaSurface.html#LuaSurface.find_tiles_filtered View documentation}
|
@@ -17618,10 +17634,10 @@ interface LuaSurface {
|
|
17618
17634
|
* As it doesn't construct all the wrapper objects, this is more efficient if one is only interested in the number
|
17619
17635
|
* of entities.
|
17620
17636
|
*
|
17621
|
-
* If no area or position are given,
|
17622
|
-
* colliding with that position (i.e the given position is within the entity's collision box). If
|
17623
|
-
* radius are given, returns entities in
|
17624
|
-
* colliding with that area.
|
17637
|
+
* If no `area` or `position` are given, the entire surface is searched. If `position` is given, this returns the
|
17638
|
+
* entities colliding with that position (i.e the given position is within the entity's collision box). If
|
17639
|
+
* `position` and `radius` are given, this returns entities in the radius of the position. If `area` is specified,
|
17640
|
+
* this returns entities colliding with that area.
|
17625
17641
|
*
|
17626
17642
|
* {@link https://lua-api.factorio.com/next/LuaSurface.html#LuaSurface.count_entities_filtered View documentation}
|
17627
17643
|
*/
|
@@ -17651,7 +17667,7 @@ interface LuaSurface {
|
|
17651
17667
|
* {@link LuaSurface.find_tiles_filtered LuaSurface::find_tiles_filtered}, except this only returns the count. As it
|
17652
17668
|
* doesn't construct all the wrapper objects, this is more efficient if one is only interested in the number of tiles.
|
17653
17669
|
*
|
17654
|
-
* If no area or position and radius is given,
|
17670
|
+
* If no `area` or `position` and `radius` is given, the entire surface is searched. If `position` and `radius` are
|
17655
17671
|
* given, only tiles within the radius of the position are included.
|
17656
17672
|
*
|
17657
17673
|
* {@link https://lua-api.factorio.com/next/LuaSurface.html#LuaSurface.count_tiles_filtered View documentation}
|
package/generated/concepts.d.ts
CHANGED
@@ -2735,7 +2735,7 @@ type Alignment =
|
|
2735
2735
|
*/
|
2736
2736
|
interface EventData {
|
2737
2737
|
/** The identifier of the event this handler was registered to. */
|
2738
|
-
readonly name:
|
2738
|
+
readonly name: EventId<EventData>
|
2739
2739
|
/** The tick during which the event happened. */
|
2740
2740
|
readonly tick: uint
|
2741
2741
|
/** The name of the mod that raised the event if it was raised using {@link LuaBootstrap.raise_event LuaBootstrap::raise_event}. */
|
package/generated/defines.d.ts
CHANGED
@@ -649,351 +649,437 @@ declare namespace defines {
|
|
649
649
|
*/
|
650
650
|
namespace events {
|
651
651
|
/** Event type: {@link OnTickEvent} */
|
652
|
-
const on_tick:
|
652
|
+
const on_tick: EventId<OnTickEvent>
|
653
653
|
/** Event type: {@link OnGuiClickEvent} */
|
654
|
-
const on_gui_click:
|
654
|
+
const on_gui_click: EventId<OnGuiClickEvent>
|
655
655
|
/** Event type: {@link OnGuiConfirmedEvent} */
|
656
|
-
const on_gui_confirmed:
|
656
|
+
const on_gui_confirmed: EventId<OnGuiConfirmedEvent>
|
657
657
|
/** Event type: {@link OnGuiTextChangedEvent} */
|
658
|
-
const on_gui_text_changed:
|
658
|
+
const on_gui_text_changed: EventId<OnGuiTextChangedEvent>
|
659
659
|
/** Event type: {@link OnGuiCheckedStateChangedEvent} */
|
660
|
-
const on_gui_checked_state_changed:
|
661
|
-
/**
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
const
|
660
|
+
const on_gui_checked_state_changed: EventId<OnGuiCheckedStateChangedEvent>
|
661
|
+
/**
|
662
|
+
* Event type: {@link OnEntityDiedEvent}
|
663
|
+
*
|
664
|
+
* Event filter: {@link LuaEntityDiedEventFilter}
|
665
|
+
*/
|
666
|
+
const on_entity_died: EventId<OnEntityDiedEvent, LuaEntityDiedEventFilter>
|
667
|
+
/**
|
668
|
+
* Event type: {@link OnPostEntityDiedEvent}
|
669
|
+
*
|
670
|
+
* Event filter: {@link LuaPostEntityDiedEventFilter}
|
671
|
+
*/
|
672
|
+
const on_post_entity_died: EventId<OnPostEntityDiedEvent, LuaPostEntityDiedEventFilter>
|
673
|
+
/**
|
674
|
+
* Event type: {@link OnEntityDamagedEvent}
|
675
|
+
*
|
676
|
+
* Event filter: {@link LuaEntityDamagedEventFilter}
|
677
|
+
*/
|
678
|
+
const on_entity_damaged: EventId<OnEntityDamagedEvent, LuaEntityDamagedEventFilter>
|
667
679
|
/** Event type: {@link OnPickedUpItemEvent} */
|
668
|
-
const on_picked_up_item:
|
669
|
-
/**
|
670
|
-
|
671
|
-
|
672
|
-
|
680
|
+
const on_picked_up_item: EventId<OnPickedUpItemEvent>
|
681
|
+
/**
|
682
|
+
* Event type: {@link OnBuiltEntityEvent}
|
683
|
+
*
|
684
|
+
* Event filter: {@link LuaPlayerBuiltEntityEventFilter}
|
685
|
+
*/
|
686
|
+
const on_built_entity: EventId<OnBuiltEntityEvent, LuaPlayerBuiltEntityEventFilter>
|
687
|
+
/**
|
688
|
+
* Event type: {@link OnSectorScannedEvent}
|
689
|
+
*
|
690
|
+
* Event filter: {@link LuaSectorScannedEventFilter}
|
691
|
+
*/
|
692
|
+
const on_sector_scanned: EventId<OnSectorScannedEvent, LuaSectorScannedEventFilter>
|
673
693
|
/** Event type: {@link OnPlayerMinedItemEvent} */
|
674
|
-
const on_player_mined_item:
|
694
|
+
const on_player_mined_item: EventId<OnPlayerMinedItemEvent>
|
675
695
|
/** Event type: {@link OnPreBuildEvent} */
|
676
|
-
const on_pre_build:
|
696
|
+
const on_pre_build: EventId<OnPreBuildEvent>
|
677
697
|
/** Event type: {@link OnRocketLaunchedEvent} */
|
678
|
-
const on_rocket_launched:
|
679
|
-
/**
|
680
|
-
|
698
|
+
const on_rocket_launched: EventId<OnRocketLaunchedEvent>
|
699
|
+
/**
|
700
|
+
* Event type: {@link OnPrePlayerMinedItemEvent}
|
701
|
+
*
|
702
|
+
* Event filter: {@link LuaPrePlayerMinedEntityEventFilter}
|
703
|
+
*/
|
704
|
+
const on_pre_player_mined_item: EventId<OnPrePlayerMinedItemEvent, LuaPrePlayerMinedEntityEventFilter>
|
681
705
|
/** Event type: {@link OnChunkGeneratedEvent} */
|
682
|
-
const on_chunk_generated:
|
706
|
+
const on_chunk_generated: EventId<OnChunkGeneratedEvent>
|
683
707
|
/** Event type: {@link OnPlayerCraftedItemEvent} */
|
684
|
-
const on_player_crafted_item:
|
685
|
-
/**
|
686
|
-
|
687
|
-
|
688
|
-
|
708
|
+
const on_player_crafted_item: EventId<OnPlayerCraftedItemEvent>
|
709
|
+
/**
|
710
|
+
* Event type: {@link OnRobotBuiltEntityEvent}
|
711
|
+
*
|
712
|
+
* Event filter: {@link LuaRobotBuiltEntityEventFilter}
|
713
|
+
*/
|
714
|
+
const on_robot_built_entity: EventId<OnRobotBuiltEntityEvent, LuaRobotBuiltEntityEventFilter>
|
715
|
+
/**
|
716
|
+
* Event type: {@link OnRobotPreMinedEvent}
|
717
|
+
*
|
718
|
+
* Event filter: {@link LuaPreRobotMinedEntityEventFilter}
|
719
|
+
*/
|
720
|
+
const on_robot_pre_mined: EventId<OnRobotPreMinedEvent, LuaPreRobotMinedEntityEventFilter>
|
689
721
|
/** Event type: {@link OnRobotMinedEvent} */
|
690
|
-
const on_robot_mined:
|
722
|
+
const on_robot_mined: EventId<OnRobotMinedEvent>
|
691
723
|
/** Event type: {@link OnResearchStartedEvent} */
|
692
|
-
const on_research_started:
|
724
|
+
const on_research_started: EventId<OnResearchStartedEvent>
|
693
725
|
/** Event type: {@link OnResearchFinishedEvent} */
|
694
|
-
const on_research_finished:
|
726
|
+
const on_research_finished: EventId<OnResearchFinishedEvent>
|
695
727
|
/** Event type: {@link OnResearchReversedEvent} */
|
696
|
-
const on_research_reversed:
|
728
|
+
const on_research_reversed: EventId<OnResearchReversedEvent>
|
697
729
|
/** Event type: {@link OnPlayerRotatedEntityEvent} */
|
698
|
-
const on_player_rotated_entity:
|
699
|
-
/**
|
700
|
-
|
701
|
-
|
702
|
-
|
730
|
+
const on_player_rotated_entity: EventId<OnPlayerRotatedEntityEvent>
|
731
|
+
/**
|
732
|
+
* Event type: {@link OnMarkedForDeconstructionEvent}
|
733
|
+
*
|
734
|
+
* Event filter: {@link LuaEntityMarkedForDeconstructionEventFilter}
|
735
|
+
*/
|
736
|
+
const on_marked_for_deconstruction: EventId<
|
737
|
+
OnMarkedForDeconstructionEvent,
|
738
|
+
LuaEntityMarkedForDeconstructionEventFilter
|
739
|
+
>
|
740
|
+
/**
|
741
|
+
* Event type: {@link OnCancelledDeconstructionEvent}
|
742
|
+
*
|
743
|
+
* Event filter: {@link LuaEntityDeconstructionCancelledEventFilter}
|
744
|
+
*/
|
745
|
+
const on_cancelled_deconstruction: EventId<
|
746
|
+
OnCancelledDeconstructionEvent,
|
747
|
+
LuaEntityDeconstructionCancelledEventFilter
|
748
|
+
>
|
703
749
|
/** Event type: {@link OnTriggerCreatedEntityEvent} */
|
704
|
-
const on_trigger_created_entity:
|
750
|
+
const on_trigger_created_entity: EventId<OnTriggerCreatedEntityEvent>
|
705
751
|
/** Event type: {@link OnTriggerFiredArtilleryEvent} */
|
706
|
-
const on_trigger_fired_artillery:
|
752
|
+
const on_trigger_fired_artillery: EventId<OnTriggerFiredArtilleryEvent>
|
707
753
|
/** Event type: {@link OnTrainChangedStateEvent} */
|
708
|
-
const on_train_changed_state:
|
754
|
+
const on_train_changed_state: EventId<OnTrainChangedStateEvent>
|
709
755
|
/** Event type: {@link OnPlayerCreatedEvent} */
|
710
|
-
const on_player_created:
|
756
|
+
const on_player_created: EventId<OnPlayerCreatedEvent>
|
711
757
|
/** Event type: {@link OnResourceDepletedEvent} */
|
712
|
-
const on_resource_depleted:
|
758
|
+
const on_resource_depleted: EventId<OnResourceDepletedEvent>
|
713
759
|
/** Event type: {@link OnPlayerDrivingChangedStateEvent} */
|
714
|
-
const on_player_driving_changed_state:
|
760
|
+
const on_player_driving_changed_state: EventId<OnPlayerDrivingChangedStateEvent>
|
715
761
|
/** Event type: {@link OnForceCreatedEvent} */
|
716
|
-
const on_force_created:
|
762
|
+
const on_force_created: EventId<OnForceCreatedEvent>
|
717
763
|
/** Event type: {@link OnForcesMergingEvent} */
|
718
|
-
const on_forces_merging:
|
764
|
+
const on_forces_merging: EventId<OnForcesMergingEvent>
|
719
765
|
/** Event type: {@link OnPlayerCursorStackChangedEvent} */
|
720
|
-
const on_player_cursor_stack_changed:
|
766
|
+
const on_player_cursor_stack_changed: EventId<OnPlayerCursorStackChangedEvent>
|
721
767
|
/** Event type: {@link OnPreEntitySettingsPastedEvent} */
|
722
|
-
const on_pre_entity_settings_pasted:
|
768
|
+
const on_pre_entity_settings_pasted: EventId<OnPreEntitySettingsPastedEvent>
|
723
769
|
/** Event type: {@link OnEntitySettingsPastedEvent} */
|
724
|
-
const on_entity_settings_pasted:
|
770
|
+
const on_entity_settings_pasted: EventId<OnEntitySettingsPastedEvent>
|
725
771
|
/** Event type: {@link OnPlayerMainInventoryChangedEvent} */
|
726
|
-
const on_player_main_inventory_changed:
|
772
|
+
const on_player_main_inventory_changed: EventId<OnPlayerMainInventoryChangedEvent>
|
727
773
|
/** Event type: {@link OnPlayerArmorInventoryChangedEvent} */
|
728
|
-
const on_player_armor_inventory_changed:
|
774
|
+
const on_player_armor_inventory_changed: EventId<OnPlayerArmorInventoryChangedEvent>
|
729
775
|
/** Event type: {@link OnPlayerAmmoInventoryChangedEvent} */
|
730
|
-
const on_player_ammo_inventory_changed:
|
776
|
+
const on_player_ammo_inventory_changed: EventId<OnPlayerAmmoInventoryChangedEvent>
|
731
777
|
/** Event type: {@link OnPlayerGunInventoryChangedEvent} */
|
732
|
-
const on_player_gun_inventory_changed:
|
778
|
+
const on_player_gun_inventory_changed: EventId<OnPlayerGunInventoryChangedEvent>
|
733
779
|
/** Event type: {@link OnPlayerPlacedEquipmentEvent} */
|
734
|
-
const on_player_placed_equipment:
|
780
|
+
const on_player_placed_equipment: EventId<OnPlayerPlacedEquipmentEvent>
|
735
781
|
/** Event type: {@link OnPlayerRemovedEquipmentEvent} */
|
736
|
-
const on_player_removed_equipment:
|
782
|
+
const on_player_removed_equipment: EventId<OnPlayerRemovedEquipmentEvent>
|
737
783
|
/** Event type: {@link OnPrePlayerDiedEvent} */
|
738
|
-
const on_pre_player_died:
|
784
|
+
const on_pre_player_died: EventId<OnPrePlayerDiedEvent>
|
739
785
|
/** Event type: {@link OnPlayerDiedEvent} */
|
740
|
-
const on_player_died:
|
786
|
+
const on_player_died: EventId<OnPlayerDiedEvent>
|
741
787
|
/** Event type: {@link OnPlayerRespawnedEvent} */
|
742
|
-
const on_player_respawned:
|
788
|
+
const on_player_respawned: EventId<OnPlayerRespawnedEvent>
|
743
789
|
/** Event type: {@link OnPlayerJoinedGameEvent} */
|
744
|
-
const on_player_joined_game:
|
790
|
+
const on_player_joined_game: EventId<OnPlayerJoinedGameEvent>
|
745
791
|
/** Event type: {@link OnPlayerLeftGameEvent} */
|
746
|
-
const on_player_left_game:
|
792
|
+
const on_player_left_game: EventId<OnPlayerLeftGameEvent>
|
747
793
|
/** Event type: {@link OnPlayerBuiltTileEvent} */
|
748
|
-
const on_player_built_tile:
|
794
|
+
const on_player_built_tile: EventId<OnPlayerBuiltTileEvent>
|
749
795
|
/** Event type: {@link OnPlayerMinedTileEvent} */
|
750
|
-
const on_player_mined_tile:
|
796
|
+
const on_player_mined_tile: EventId<OnPlayerMinedTileEvent>
|
751
797
|
/** Event type: {@link OnRobotBuiltTileEvent} */
|
752
|
-
const on_robot_built_tile:
|
798
|
+
const on_robot_built_tile: EventId<OnRobotBuiltTileEvent>
|
753
799
|
/** Event type: {@link OnRobotMinedTileEvent} */
|
754
|
-
const on_robot_mined_tile:
|
800
|
+
const on_robot_mined_tile: EventId<OnRobotMinedTileEvent>
|
755
801
|
/** Event type: {@link OnPlayerSelectedAreaEvent} */
|
756
|
-
const on_player_selected_area:
|
802
|
+
const on_player_selected_area: EventId<OnPlayerSelectedAreaEvent>
|
757
803
|
/** Event type: {@link OnPlayerAltSelectedAreaEvent} */
|
758
|
-
const on_player_alt_selected_area:
|
804
|
+
const on_player_alt_selected_area: EventId<OnPlayerAltSelectedAreaEvent>
|
759
805
|
/** Event type: {@link OnPlayerChangedSurfaceEvent} */
|
760
|
-
const on_player_changed_surface:
|
806
|
+
const on_player_changed_surface: EventId<OnPlayerChangedSurfaceEvent>
|
761
807
|
/** Event type: {@link OnSelectedEntityChangedEvent} */
|
762
|
-
const on_selected_entity_changed:
|
808
|
+
const on_selected_entity_changed: EventId<OnSelectedEntityChangedEvent>
|
763
809
|
/** Event type: {@link OnMarketItemPurchasedEvent} */
|
764
|
-
const on_market_item_purchased:
|
810
|
+
const on_market_item_purchased: EventId<OnMarketItemPurchasedEvent>
|
765
811
|
/** Event type: {@link OnPlayerDroppedItemEvent} */
|
766
|
-
const on_player_dropped_item:
|
812
|
+
const on_player_dropped_item: EventId<OnPlayerDroppedItemEvent>
|
767
813
|
/** Event type: {@link OnBiterBaseBuiltEvent} */
|
768
|
-
const on_biter_base_built:
|
814
|
+
const on_biter_base_built: EventId<OnBiterBaseBuiltEvent>
|
769
815
|
/** Event type: {@link OnPlayerChangedForceEvent} */
|
770
|
-
const on_player_changed_force:
|
816
|
+
const on_player_changed_force: EventId<OnPlayerChangedForceEvent>
|
771
817
|
/** Event type: {@link OnEntityRenamedEvent} */
|
772
|
-
const on_entity_renamed:
|
818
|
+
const on_entity_renamed: EventId<OnEntityRenamedEvent>
|
773
819
|
/** Event type: {@link OnGuiSelectionStateChangedEvent} */
|
774
|
-
const on_gui_selection_state_changed:
|
820
|
+
const on_gui_selection_state_changed: EventId<OnGuiSelectionStateChangedEvent>
|
775
821
|
/** Event type: {@link OnRuntimeModSettingChangedEvent} */
|
776
|
-
const on_runtime_mod_setting_changed:
|
822
|
+
const on_runtime_mod_setting_changed: EventId<OnRuntimeModSettingChangedEvent>
|
777
823
|
/** Event type: {@link OnDifficultySettingsChangedEvent} */
|
778
|
-
const on_difficulty_settings_changed:
|
824
|
+
const on_difficulty_settings_changed: EventId<OnDifficultySettingsChangedEvent>
|
779
825
|
/** Event type: {@link OnSurfaceCreatedEvent} */
|
780
|
-
const on_surface_created:
|
826
|
+
const on_surface_created: EventId<OnSurfaceCreatedEvent>
|
781
827
|
/** Event type: {@link OnSurfaceDeletedEvent} */
|
782
|
-
const on_surface_deleted:
|
828
|
+
const on_surface_deleted: EventId<OnSurfaceDeletedEvent>
|
783
829
|
/** Event type: {@link OnPreSurfaceDeletedEvent} */
|
784
|
-
const on_pre_surface_deleted:
|
785
|
-
/**
|
786
|
-
|
787
|
-
|
788
|
-
|
830
|
+
const on_pre_surface_deleted: EventId<OnPreSurfaceDeletedEvent>
|
831
|
+
/**
|
832
|
+
* Event type: {@link OnPlayerMinedEntityEvent}
|
833
|
+
*
|
834
|
+
* Event filter: {@link LuaPlayerMinedEntityEventFilter}
|
835
|
+
*/
|
836
|
+
const on_player_mined_entity: EventId<OnPlayerMinedEntityEvent, LuaPlayerMinedEntityEventFilter>
|
837
|
+
/**
|
838
|
+
* Event type: {@link OnRobotMinedEntityEvent}
|
839
|
+
*
|
840
|
+
* Event filter: {@link LuaRobotMinedEntityEventFilter}
|
841
|
+
*/
|
842
|
+
const on_robot_mined_entity: EventId<OnRobotMinedEntityEvent, LuaRobotMinedEntityEventFilter>
|
789
843
|
/** Event type: {@link OnTrainCreatedEvent} */
|
790
|
-
const on_train_created:
|
844
|
+
const on_train_created: EventId<OnTrainCreatedEvent>
|
791
845
|
/** Event type: {@link OnGuiElemChangedEvent} */
|
792
|
-
const on_gui_elem_changed:
|
846
|
+
const on_gui_elem_changed: EventId<OnGuiElemChangedEvent>
|
793
847
|
/** Event type: {@link OnPlayerSetupBlueprintEvent} */
|
794
|
-
const on_player_setup_blueprint:
|
848
|
+
const on_player_setup_blueprint: EventId<OnPlayerSetupBlueprintEvent>
|
795
849
|
/** Event type: {@link OnPlayerDeconstructedAreaEvent} */
|
796
|
-
const on_player_deconstructed_area:
|
850
|
+
const on_player_deconstructed_area: EventId<OnPlayerDeconstructedAreaEvent>
|
797
851
|
/** Event type: {@link OnPlayerConfiguredBlueprintEvent} */
|
798
|
-
const on_player_configured_blueprint:
|
852
|
+
const on_player_configured_blueprint: EventId<OnPlayerConfiguredBlueprintEvent>
|
799
853
|
/** Event type: {@link OnConsoleChatEvent} */
|
800
|
-
const on_console_chat:
|
854
|
+
const on_console_chat: EventId<OnConsoleChatEvent>
|
801
855
|
/** Event type: {@link OnConsoleCommandEvent} */
|
802
|
-
const on_console_command:
|
856
|
+
const on_console_command: EventId<OnConsoleCommandEvent>
|
803
857
|
/** Event type: {@link OnPlayerRemovedEvent} */
|
804
|
-
const on_player_removed:
|
858
|
+
const on_player_removed: EventId<OnPlayerRemovedEvent>
|
805
859
|
/** Event type: {@link OnPrePlayerRemovedEvent} */
|
806
|
-
const on_pre_player_removed:
|
860
|
+
const on_pre_player_removed: EventId<OnPrePlayerRemovedEvent>
|
807
861
|
/** Event type: {@link OnPlayerUsedCapsuleEvent} */
|
808
|
-
const on_player_used_capsule:
|
809
|
-
/**
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
const
|
862
|
+
const on_player_used_capsule: EventId<OnPlayerUsedCapsuleEvent>
|
863
|
+
/**
|
864
|
+
* Event type: {@link ScriptRaisedBuiltEvent}
|
865
|
+
*
|
866
|
+
* Event filter: {@link LuaScriptRaisedBuiltEventFilter}
|
867
|
+
*/
|
868
|
+
const script_raised_built: EventId<ScriptRaisedBuiltEvent, LuaScriptRaisedBuiltEventFilter>
|
869
|
+
/**
|
870
|
+
* Event type: {@link ScriptRaisedDestroyEvent}
|
871
|
+
*
|
872
|
+
* Event filter: {@link LuaScriptRaisedDestroyEventFilter}
|
873
|
+
*/
|
874
|
+
const script_raised_destroy: EventId<ScriptRaisedDestroyEvent, LuaScriptRaisedDestroyEventFilter>
|
875
|
+
/**
|
876
|
+
* Event type: {@link ScriptRaisedReviveEvent}
|
877
|
+
*
|
878
|
+
* Event filter: {@link LuaScriptRaisedReviveEventFilter}
|
879
|
+
*/
|
880
|
+
const script_raised_revive: EventId<ScriptRaisedReviveEvent, LuaScriptRaisedReviveEventFilter>
|
815
881
|
/** Event type: {@link ScriptRaisedSetTilesEvent} */
|
816
|
-
const script_raised_set_tiles:
|
882
|
+
const script_raised_set_tiles: EventId<ScriptRaisedSetTilesEvent>
|
817
883
|
/** Event type: {@link OnPlayerPromotedEvent} */
|
818
|
-
const on_player_promoted:
|
884
|
+
const on_player_promoted: EventId<OnPlayerPromotedEvent>
|
819
885
|
/** Event type: {@link OnPlayerDemotedEvent} */
|
820
|
-
const on_player_demoted:
|
886
|
+
const on_player_demoted: EventId<OnPlayerDemotedEvent>
|
821
887
|
/** Event type: {@link OnCombatRobotExpiredEvent} */
|
822
|
-
const on_combat_robot_expired:
|
888
|
+
const on_combat_robot_expired: EventId<OnCombatRobotExpiredEvent>
|
823
889
|
/** Event type: {@link OnWorkerRobotExpiredEvent} */
|
824
|
-
const on_worker_robot_expired:
|
890
|
+
const on_worker_robot_expired: EventId<OnWorkerRobotExpiredEvent>
|
825
891
|
/** Event type: {@link OnPlayerChangedPositionEvent} */
|
826
|
-
const on_player_changed_position:
|
892
|
+
const on_player_changed_position: EventId<OnPlayerChangedPositionEvent>
|
827
893
|
/** Event type: {@link OnModItemOpenedEvent} */
|
828
|
-
const on_mod_item_opened:
|
894
|
+
const on_mod_item_opened: EventId<OnModItemOpenedEvent>
|
829
895
|
/** Event type: {@link OnGuiOpenedEvent} */
|
830
|
-
const on_gui_opened:
|
896
|
+
const on_gui_opened: EventId<OnGuiOpenedEvent>
|
831
897
|
/** Event type: {@link OnGuiClosedEvent} */
|
832
|
-
const on_gui_closed:
|
898
|
+
const on_gui_closed: EventId<OnGuiClosedEvent>
|
833
899
|
/** Event type: {@link OnGuiValueChangedEvent} */
|
834
|
-
const on_gui_value_changed:
|
900
|
+
const on_gui_value_changed: EventId<OnGuiValueChangedEvent>
|
835
901
|
/** Event type: {@link OnPlayerMutedEvent} */
|
836
|
-
const on_player_muted:
|
902
|
+
const on_player_muted: EventId<OnPlayerMutedEvent>
|
837
903
|
/** Event type: {@link OnPlayerUnmutedEvent} */
|
838
|
-
const on_player_unmuted:
|
904
|
+
const on_player_unmuted: EventId<OnPlayerUnmutedEvent>
|
839
905
|
/** Event type: {@link OnPlayerCheatModeEnabledEvent} */
|
840
|
-
const on_player_cheat_mode_enabled:
|
906
|
+
const on_player_cheat_mode_enabled: EventId<OnPlayerCheatModeEnabledEvent>
|
841
907
|
/** Event type: {@link OnPlayerCheatModeDisabledEvent} */
|
842
|
-
const on_player_cheat_mode_disabled:
|
908
|
+
const on_player_cheat_mode_disabled: EventId<OnPlayerCheatModeDisabledEvent>
|
843
909
|
/** Event type: {@link OnCharacterCorpseExpiredEvent} */
|
844
|
-
const on_character_corpse_expired:
|
845
|
-
/**
|
846
|
-
|
910
|
+
const on_character_corpse_expired: EventId<OnCharacterCorpseExpiredEvent>
|
911
|
+
/**
|
912
|
+
* Event type: {@link OnPreGhostDeconstructedEvent}
|
913
|
+
*
|
914
|
+
* Event filter: {@link LuaPreGhostDeconstructedEventFilter}
|
915
|
+
*/
|
916
|
+
const on_pre_ghost_deconstructed: EventId<OnPreGhostDeconstructedEvent, LuaPreGhostDeconstructedEventFilter>
|
847
917
|
/** Event type: {@link OnPlayerPipetteEvent} */
|
848
|
-
const on_player_pipette:
|
918
|
+
const on_player_pipette: EventId<OnPlayerPipetteEvent>
|
849
919
|
/** Event type: {@link OnPlayerDisplayResolutionChangedEvent} */
|
850
|
-
const on_player_display_resolution_changed:
|
920
|
+
const on_player_display_resolution_changed: EventId<OnPlayerDisplayResolutionChangedEvent>
|
851
921
|
/** Event type: {@link OnPlayerDisplayScaleChangedEvent} */
|
852
|
-
const on_player_display_scale_changed:
|
922
|
+
const on_player_display_scale_changed: EventId<OnPlayerDisplayScaleChangedEvent>
|
853
923
|
/** Event type: {@link OnPrePlayerCraftedItemEvent} */
|
854
|
-
const on_pre_player_crafted_item:
|
924
|
+
const on_pre_player_crafted_item: EventId<OnPrePlayerCraftedItemEvent>
|
855
925
|
/** Event type: {@link OnPlayerCancelledCraftingEvent} */
|
856
|
-
const on_player_cancelled_crafting:
|
926
|
+
const on_player_cancelled_crafting: EventId<OnPlayerCancelledCraftingEvent>
|
857
927
|
/** Event type: {@link OnChunkChartedEvent} */
|
858
|
-
const on_chunk_charted:
|
928
|
+
const on_chunk_charted: EventId<OnChunkChartedEvent>
|
859
929
|
/** Event type: {@link OnTechnologyEffectsResetEvent} */
|
860
|
-
const on_technology_effects_reset:
|
930
|
+
const on_technology_effects_reset: EventId<OnTechnologyEffectsResetEvent>
|
861
931
|
/** Event type: {@link OnForceResetEvent} */
|
862
|
-
const on_force_reset:
|
932
|
+
const on_force_reset: EventId<OnForceResetEvent>
|
863
933
|
/** Event type: {@link OnLandMineArmedEvent} */
|
864
|
-
const on_land_mine_armed:
|
934
|
+
const on_land_mine_armed: EventId<OnLandMineArmedEvent>
|
865
935
|
/** Event type: {@link OnForcesMergedEvent} */
|
866
|
-
const on_forces_merged:
|
936
|
+
const on_forces_merged: EventId<OnForcesMergedEvent>
|
867
937
|
/** Event type: {@link OnPlayerTrashInventoryChangedEvent} */
|
868
|
-
const on_player_trash_inventory_changed:
|
938
|
+
const on_player_trash_inventory_changed: EventId<OnPlayerTrashInventoryChangedEvent>
|
869
939
|
/** Event type: {@link OnPrePlayerLeftGameEvent} */
|
870
|
-
const on_pre_player_left_game:
|
940
|
+
const on_pre_player_left_game: EventId<OnPrePlayerLeftGameEvent>
|
871
941
|
/** Event type: {@link OnPreSurfaceClearedEvent} */
|
872
|
-
const on_pre_surface_cleared:
|
942
|
+
const on_pre_surface_cleared: EventId<OnPreSurfaceClearedEvent>
|
873
943
|
/** Event type: {@link OnSurfaceClearedEvent} */
|
874
|
-
const on_surface_cleared:
|
944
|
+
const on_surface_cleared: EventId<OnSurfaceClearedEvent>
|
875
945
|
/** Event type: {@link OnChunkDeletedEvent} */
|
876
|
-
const on_chunk_deleted:
|
946
|
+
const on_chunk_deleted: EventId<OnChunkDeletedEvent>
|
877
947
|
/** Event type: {@link OnPreChunkDeletedEvent} */
|
878
|
-
const on_pre_chunk_deleted:
|
948
|
+
const on_pre_chunk_deleted: EventId<OnPreChunkDeletedEvent>
|
879
949
|
/** Event type: {@link OnTrainScheduleChangedEvent} */
|
880
|
-
const on_train_schedule_changed:
|
950
|
+
const on_train_schedule_changed: EventId<OnTrainScheduleChangedEvent>
|
881
951
|
/** Event type: {@link OnPlayerBannedEvent} */
|
882
|
-
const on_player_banned:
|
952
|
+
const on_player_banned: EventId<OnPlayerBannedEvent>
|
883
953
|
/** Event type: {@link OnPlayerKickedEvent} */
|
884
|
-
const on_player_kicked:
|
954
|
+
const on_player_kicked: EventId<OnPlayerKickedEvent>
|
885
955
|
/** Event type: {@link OnPlayerUnbannedEvent} */
|
886
|
-
const on_player_unbanned:
|
956
|
+
const on_player_unbanned: EventId<OnPlayerUnbannedEvent>
|
887
957
|
/** Event type: {@link OnRocketLaunchOrderedEvent} */
|
888
|
-
const on_rocket_launch_ordered:
|
958
|
+
const on_rocket_launch_ordered: EventId<OnRocketLaunchOrderedEvent>
|
889
959
|
/** Event type: {@link OnScriptPathRequestFinishedEvent} */
|
890
|
-
const on_script_path_request_finished:
|
960
|
+
const on_script_path_request_finished: EventId<OnScriptPathRequestFinishedEvent>
|
891
961
|
/** Event type: {@link OnAiCommandCompletedEvent} */
|
892
|
-
const on_ai_command_completed:
|
893
|
-
/**
|
894
|
-
|
895
|
-
|
896
|
-
|
962
|
+
const on_ai_command_completed: EventId<OnAiCommandCompletedEvent>
|
963
|
+
/**
|
964
|
+
* Event type: {@link OnMarkedForUpgradeEvent}
|
965
|
+
*
|
966
|
+
* Event filter: {@link LuaEntityMarkedForUpgradeEventFilter}
|
967
|
+
*/
|
968
|
+
const on_marked_for_upgrade: EventId<OnMarkedForUpgradeEvent, LuaEntityMarkedForUpgradeEventFilter>
|
969
|
+
/**
|
970
|
+
* Event type: {@link OnCancelledUpgradeEvent}
|
971
|
+
*
|
972
|
+
* Event filter: {@link LuaUpgradeCancelledEventFilter}
|
973
|
+
*/
|
974
|
+
const on_cancelled_upgrade: EventId<OnCancelledUpgradeEvent, LuaUpgradeCancelledEventFilter>
|
897
975
|
/** Event type: {@link OnPlayerToggledMapEditorEvent} */
|
898
|
-
const on_player_toggled_map_editor:
|
899
|
-
/**
|
900
|
-
|
976
|
+
const on_player_toggled_map_editor: EventId<OnPlayerToggledMapEditorEvent>
|
977
|
+
/**
|
978
|
+
* Event type: {@link OnEntityClonedEvent}
|
979
|
+
*
|
980
|
+
* Event filter: {@link LuaEntityClonedEventFilter}
|
981
|
+
*/
|
982
|
+
const on_entity_cloned: EventId<OnEntityClonedEvent, LuaEntityClonedEventFilter>
|
901
983
|
/** Event type: {@link OnAreaClonedEvent} */
|
902
|
-
const on_area_cloned:
|
984
|
+
const on_area_cloned: EventId<OnAreaClonedEvent>
|
903
985
|
/** Event type: {@link OnBrushClonedEvent} */
|
904
|
-
const on_brush_cloned:
|
986
|
+
const on_brush_cloned: EventId<OnBrushClonedEvent>
|
905
987
|
/** Event type: {@link OnGameCreatedFromScenarioEvent} */
|
906
|
-
const on_game_created_from_scenario:
|
988
|
+
const on_game_created_from_scenario: EventId<OnGameCreatedFromScenarioEvent>
|
907
989
|
/** Event type: {@link OnSurfaceImportedEvent} */
|
908
|
-
const on_surface_imported:
|
990
|
+
const on_surface_imported: EventId<OnSurfaceImportedEvent>
|
909
991
|
/** Event type: {@link OnSurfaceRenamedEvent} */
|
910
|
-
const on_surface_renamed:
|
992
|
+
const on_surface_renamed: EventId<OnSurfaceRenamedEvent>
|
911
993
|
/** Event type: {@link OnPlayerToggledAltModeEvent} */
|
912
|
-
const on_player_toggled_alt_mode:
|
913
|
-
/**
|
914
|
-
|
994
|
+
const on_player_toggled_alt_mode: EventId<OnPlayerToggledAltModeEvent>
|
995
|
+
/**
|
996
|
+
* Event type: {@link OnPlayerRepairedEntityEvent}
|
997
|
+
*
|
998
|
+
* Event filter: {@link LuaPlayerRepairedEntityEventFilter}
|
999
|
+
*/
|
1000
|
+
const on_player_repaired_entity: EventId<OnPlayerRepairedEntityEvent, LuaPlayerRepairedEntityEventFilter>
|
915
1001
|
/** Event type: {@link OnPlayerFastTransferredEvent} */
|
916
|
-
const on_player_fast_transferred:
|
1002
|
+
const on_player_fast_transferred: EventId<OnPlayerFastTransferredEvent>
|
917
1003
|
/** Event type: {@link OnPreRobotExplodedCliffEvent} */
|
918
|
-
const on_pre_robot_exploded_cliff:
|
1004
|
+
const on_pre_robot_exploded_cliff: EventId<OnPreRobotExplodedCliffEvent>
|
919
1005
|
/** Event type: {@link OnRobotExplodedCliffEvent} */
|
920
|
-
const on_robot_exploded_cliff:
|
1006
|
+
const on_robot_exploded_cliff: EventId<OnRobotExplodedCliffEvent>
|
921
1007
|
/** Event type: {@link OnEntitySpawnedEvent} */
|
922
|
-
const on_entity_spawned:
|
1008
|
+
const on_entity_spawned: EventId<OnEntitySpawnedEvent>
|
923
1009
|
/** Event type: {@link OnCutsceneWaypointReachedEvent} */
|
924
|
-
const on_cutscene_waypoint_reached:
|
1010
|
+
const on_cutscene_waypoint_reached: EventId<OnCutsceneWaypointReachedEvent>
|
925
1011
|
/** Event type: {@link OnUnitGroupCreatedEvent} */
|
926
|
-
const on_unit_group_created:
|
1012
|
+
const on_unit_group_created: EventId<OnUnitGroupCreatedEvent>
|
927
1013
|
/** Event type: {@link OnUnitAddedToGroupEvent} */
|
928
|
-
const on_unit_added_to_group:
|
1014
|
+
const on_unit_added_to_group: EventId<OnUnitAddedToGroupEvent>
|
929
1015
|
/** Event type: {@link OnUnitRemovedFromGroupEvent} */
|
930
|
-
const on_unit_removed_from_group:
|
1016
|
+
const on_unit_removed_from_group: EventId<OnUnitRemovedFromGroupEvent>
|
931
1017
|
/** Event type: {@link OnUnitGroupFinishedGatheringEvent} */
|
932
|
-
const on_unit_group_finished_gathering:
|
1018
|
+
const on_unit_group_finished_gathering: EventId<OnUnitGroupFinishedGatheringEvent>
|
933
1019
|
/** Event type: {@link OnBuildBaseArrivedEvent} */
|
934
|
-
const on_build_base_arrived:
|
1020
|
+
const on_build_base_arrived: EventId<OnBuildBaseArrivedEvent>
|
935
1021
|
/** Event type: {@link OnChartTagAddedEvent} */
|
936
|
-
const on_chart_tag_added:
|
1022
|
+
const on_chart_tag_added: EventId<OnChartTagAddedEvent>
|
937
1023
|
/** Event type: {@link OnChartTagModifiedEvent} */
|
938
|
-
const on_chart_tag_modified:
|
1024
|
+
const on_chart_tag_modified: EventId<OnChartTagModifiedEvent>
|
939
1025
|
/** Event type: {@link OnChartTagRemovedEvent} */
|
940
|
-
const on_chart_tag_removed:
|
1026
|
+
const on_chart_tag_removed: EventId<OnChartTagRemovedEvent>
|
941
1027
|
/** Event type: {@link OnLuaShortcutEvent} */
|
942
|
-
const on_lua_shortcut:
|
1028
|
+
const on_lua_shortcut: EventId<OnLuaShortcutEvent>
|
943
1029
|
/** Event type: {@link OnGuiLocationChangedEvent} */
|
944
|
-
const on_gui_location_changed:
|
1030
|
+
const on_gui_location_changed: EventId<OnGuiLocationChangedEvent>
|
945
1031
|
/** Event type: {@link OnGuiSelectedTabChangedEvent} */
|
946
|
-
const on_gui_selected_tab_changed:
|
1032
|
+
const on_gui_selected_tab_changed: EventId<OnGuiSelectedTabChangedEvent>
|
947
1033
|
/** Event type: {@link OnGuiSwitchStateChangedEvent} */
|
948
|
-
const on_gui_switch_state_changed:
|
1034
|
+
const on_gui_switch_state_changed: EventId<OnGuiSwitchStateChangedEvent>
|
949
1035
|
/** Event type: {@link OnForceCeaseFireChangedEvent} */
|
950
|
-
const on_force_cease_fire_changed:
|
1036
|
+
const on_force_cease_fire_changed: EventId<OnForceCeaseFireChangedEvent>
|
951
1037
|
/** Event type: {@link OnForceFriendsChangedEvent} */
|
952
|
-
const on_force_friends_changed:
|
1038
|
+
const on_force_friends_changed: EventId<OnForceFriendsChangedEvent>
|
953
1039
|
/** Event type: {@link OnStringTranslatedEvent} */
|
954
|
-
const on_string_translated:
|
1040
|
+
const on_string_translated: EventId<OnStringTranslatedEvent>
|
955
1041
|
/** Event type: {@link OnScriptTriggerEffectEvent} */
|
956
|
-
const on_script_trigger_effect:
|
1042
|
+
const on_script_trigger_effect: EventId<OnScriptTriggerEffectEvent>
|
957
1043
|
/** Event type: {@link OnPlayerSetQuickBarSlotEvent} */
|
958
|
-
const on_player_set_quick_bar_slot:
|
1044
|
+
const on_player_set_quick_bar_slot: EventId<OnPlayerSetQuickBarSlotEvent>
|
959
1045
|
/** Event type: {@link OnPrePlayerToggledMapEditorEvent} */
|
960
|
-
const on_pre_player_toggled_map_editor:
|
1046
|
+
const on_pre_player_toggled_map_editor: EventId<OnPrePlayerToggledMapEditorEvent>
|
961
1047
|
/** Event type: {@link OnPreScriptInventoryResizedEvent} */
|
962
|
-
const on_pre_script_inventory_resized:
|
1048
|
+
const on_pre_script_inventory_resized: EventId<OnPreScriptInventoryResizedEvent>
|
963
1049
|
/** Event type: {@link OnScriptInventoryResizedEvent} */
|
964
|
-
const on_script_inventory_resized:
|
1050
|
+
const on_script_inventory_resized: EventId<OnScriptInventoryResizedEvent>
|
965
1051
|
/** Event type: {@link OnEntityDestroyedEvent} */
|
966
|
-
const on_entity_destroyed:
|
1052
|
+
const on_entity_destroyed: EventId<OnEntityDestroyedEvent>
|
967
1053
|
/** Event type: {@link OnPlayerClickedGpsTagEvent} */
|
968
|
-
const on_player_clicked_gps_tag:
|
1054
|
+
const on_player_clicked_gps_tag: EventId<OnPlayerClickedGpsTagEvent>
|
969
1055
|
/** Event type: {@link OnPlayerFlushedFluidEvent} */
|
970
|
-
const on_player_flushed_fluid:
|
1056
|
+
const on_player_flushed_fluid: EventId<OnPlayerFlushedFluidEvent>
|
971
1057
|
/** Event type: {@link OnPermissionGroupEditedEvent} */
|
972
|
-
const on_permission_group_edited:
|
1058
|
+
const on_permission_group_edited: EventId<OnPermissionGroupEditedEvent>
|
973
1059
|
/** Event type: {@link OnPrePermissionStringImportedEvent} */
|
974
|
-
const on_pre_permission_string_imported:
|
1060
|
+
const on_pre_permission_string_imported: EventId<OnPrePermissionStringImportedEvent>
|
975
1061
|
/** Event type: {@link OnPermissionStringImportedEvent} */
|
976
|
-
const on_permission_string_imported:
|
1062
|
+
const on_permission_string_imported: EventId<OnPermissionStringImportedEvent>
|
977
1063
|
/** Event type: {@link OnPrePermissionGroupDeletedEvent} */
|
978
|
-
const on_pre_permission_group_deleted:
|
1064
|
+
const on_pre_permission_group_deleted: EventId<OnPrePermissionGroupDeletedEvent>
|
979
1065
|
/** Event type: {@link OnPermissionGroupDeletedEvent} */
|
980
|
-
const on_permission_group_deleted:
|
1066
|
+
const on_permission_group_deleted: EventId<OnPermissionGroupDeletedEvent>
|
981
1067
|
/** Event type: {@link OnPermissionGroupAddedEvent} */
|
982
|
-
const on_permission_group_added:
|
1068
|
+
const on_permission_group_added: EventId<OnPermissionGroupAddedEvent>
|
983
1069
|
/** Event type: {@link OnCutsceneCancelledEvent} */
|
984
|
-
const on_cutscene_cancelled:
|
1070
|
+
const on_cutscene_cancelled: EventId<OnCutsceneCancelledEvent>
|
985
1071
|
/** Event type: {@link OnPlayerConfiguredSpiderRemoteEvent} */
|
986
|
-
const on_player_configured_spider_remote:
|
1072
|
+
const on_player_configured_spider_remote: EventId<OnPlayerConfiguredSpiderRemoteEvent>
|
987
1073
|
/** Event type: {@link OnPlayerUsedSpiderRemoteEvent} */
|
988
|
-
const on_player_used_spider_remote:
|
1074
|
+
const on_player_used_spider_remote: EventId<OnPlayerUsedSpiderRemoteEvent>
|
989
1075
|
/** Event type: {@link OnSpiderCommandCompletedEvent} */
|
990
|
-
const on_spider_command_completed:
|
1076
|
+
const on_spider_command_completed: EventId<OnSpiderCommandCompletedEvent>
|
991
1077
|
/** Event type: {@link OnEntityLogisticSlotChangedEvent} */
|
992
|
-
const on_entity_logistic_slot_changed:
|
1078
|
+
const on_entity_logistic_slot_changed: EventId<OnEntityLogisticSlotChangedEvent>
|
993
1079
|
/** Event type: {@link OnEquipmentInsertedEvent} */
|
994
|
-
const on_equipment_inserted:
|
1080
|
+
const on_equipment_inserted: EventId<OnEquipmentInsertedEvent>
|
995
1081
|
/** Event type: {@link OnEquipmentRemovedEvent} */
|
996
|
-
const on_equipment_removed:
|
1082
|
+
const on_equipment_removed: EventId<OnEquipmentRemovedEvent>
|
997
1083
|
}
|
998
1084
|
/**
|
999
1085
|
* See the {@link https://lua-api.factorio.com/next/events.html events page} for more info on what events contain and
|
package/generated/events.d.ts
CHANGED
@@ -15,7 +15,7 @@ interface CustomInputEvent {
|
|
15
15
|
/** Information about the prototype that is selected when the custom input is used. `nil` if none is selected. */
|
16
16
|
readonly selected_prototype?: SelectedPrototypeData
|
17
17
|
/** Identifier of the event */
|
18
|
-
readonly name:
|
18
|
+
readonly name: string
|
19
19
|
/** Tick the event was generated. */
|
20
20
|
readonly tick: uint
|
21
21
|
}
|
@@ -2961,201 +2961,16 @@ interface ScriptRaisedSetTilesEvent {
|
|
2961
2961
|
readonly tick: uint
|
2962
2962
|
}
|
2963
2963
|
|
2964
|
-
|
2965
|
-
|
2966
|
-
|
2967
|
-
|
2968
|
-
|
2969
|
-
|
2970
|
-
|
2971
|
-
|
2972
|
-
|
2973
|
-
|
2974
|
-
|
2975
|
-
|
2976
|
-
[defines.events.on_player_mined_item]: OnPlayerMinedItemEvent
|
2977
|
-
[defines.events.on_pre_build]: OnPreBuildEvent
|
2978
|
-
[defines.events.on_rocket_launched]: OnRocketLaunchedEvent
|
2979
|
-
[defines.events.on_pre_player_mined_item]: OnPrePlayerMinedItemEvent
|
2980
|
-
[defines.events.on_chunk_generated]: OnChunkGeneratedEvent
|
2981
|
-
[defines.events.on_player_crafted_item]: OnPlayerCraftedItemEvent
|
2982
|
-
[defines.events.on_robot_built_entity]: OnRobotBuiltEntityEvent
|
2983
|
-
[defines.events.on_robot_pre_mined]: OnRobotPreMinedEvent
|
2984
|
-
[defines.events.on_robot_mined]: OnRobotMinedEvent
|
2985
|
-
[defines.events.on_research_started]: OnResearchStartedEvent
|
2986
|
-
[defines.events.on_research_finished]: OnResearchFinishedEvent
|
2987
|
-
[defines.events.on_research_reversed]: OnResearchReversedEvent
|
2988
|
-
[defines.events.on_player_rotated_entity]: OnPlayerRotatedEntityEvent
|
2989
|
-
[defines.events.on_marked_for_deconstruction]: OnMarkedForDeconstructionEvent
|
2990
|
-
[defines.events.on_cancelled_deconstruction]: OnCancelledDeconstructionEvent
|
2991
|
-
[defines.events.on_trigger_created_entity]: OnTriggerCreatedEntityEvent
|
2992
|
-
[defines.events.on_trigger_fired_artillery]: OnTriggerFiredArtilleryEvent
|
2993
|
-
[defines.events.on_train_changed_state]: OnTrainChangedStateEvent
|
2994
|
-
[defines.events.on_player_created]: OnPlayerCreatedEvent
|
2995
|
-
[defines.events.on_resource_depleted]: OnResourceDepletedEvent
|
2996
|
-
[defines.events.on_player_driving_changed_state]: OnPlayerDrivingChangedStateEvent
|
2997
|
-
[defines.events.on_force_created]: OnForceCreatedEvent
|
2998
|
-
[defines.events.on_forces_merging]: OnForcesMergingEvent
|
2999
|
-
[defines.events.on_player_cursor_stack_changed]: OnPlayerCursorStackChangedEvent
|
3000
|
-
[defines.events.on_pre_entity_settings_pasted]: OnPreEntitySettingsPastedEvent
|
3001
|
-
[defines.events.on_entity_settings_pasted]: OnEntitySettingsPastedEvent
|
3002
|
-
[defines.events.on_player_main_inventory_changed]: OnPlayerMainInventoryChangedEvent
|
3003
|
-
[defines.events.on_player_armor_inventory_changed]: OnPlayerArmorInventoryChangedEvent
|
3004
|
-
[defines.events.on_player_ammo_inventory_changed]: OnPlayerAmmoInventoryChangedEvent
|
3005
|
-
[defines.events.on_player_gun_inventory_changed]: OnPlayerGunInventoryChangedEvent
|
3006
|
-
[defines.events.on_player_placed_equipment]: OnPlayerPlacedEquipmentEvent
|
3007
|
-
[defines.events.on_player_removed_equipment]: OnPlayerRemovedEquipmentEvent
|
3008
|
-
[defines.events.on_pre_player_died]: OnPrePlayerDiedEvent
|
3009
|
-
[defines.events.on_player_died]: OnPlayerDiedEvent
|
3010
|
-
[defines.events.on_player_respawned]: OnPlayerRespawnedEvent
|
3011
|
-
[defines.events.on_player_joined_game]: OnPlayerJoinedGameEvent
|
3012
|
-
[defines.events.on_player_left_game]: OnPlayerLeftGameEvent
|
3013
|
-
[defines.events.on_player_built_tile]: OnPlayerBuiltTileEvent
|
3014
|
-
[defines.events.on_player_mined_tile]: OnPlayerMinedTileEvent
|
3015
|
-
[defines.events.on_robot_built_tile]: OnRobotBuiltTileEvent
|
3016
|
-
[defines.events.on_robot_mined_tile]: OnRobotMinedTileEvent
|
3017
|
-
[defines.events.on_player_selected_area]: OnPlayerSelectedAreaEvent
|
3018
|
-
[defines.events.on_player_alt_selected_area]: OnPlayerAltSelectedAreaEvent
|
3019
|
-
[defines.events.on_player_changed_surface]: OnPlayerChangedSurfaceEvent
|
3020
|
-
[defines.events.on_selected_entity_changed]: OnSelectedEntityChangedEvent
|
3021
|
-
[defines.events.on_market_item_purchased]: OnMarketItemPurchasedEvent
|
3022
|
-
[defines.events.on_player_dropped_item]: OnPlayerDroppedItemEvent
|
3023
|
-
[defines.events.on_biter_base_built]: OnBiterBaseBuiltEvent
|
3024
|
-
[defines.events.on_player_changed_force]: OnPlayerChangedForceEvent
|
3025
|
-
[defines.events.on_entity_renamed]: OnEntityRenamedEvent
|
3026
|
-
[defines.events.on_gui_selection_state_changed]: OnGuiSelectionStateChangedEvent
|
3027
|
-
[defines.events.on_runtime_mod_setting_changed]: OnRuntimeModSettingChangedEvent
|
3028
|
-
[defines.events.on_difficulty_settings_changed]: OnDifficultySettingsChangedEvent
|
3029
|
-
[defines.events.on_surface_created]: OnSurfaceCreatedEvent
|
3030
|
-
[defines.events.on_surface_deleted]: OnSurfaceDeletedEvent
|
3031
|
-
[defines.events.on_pre_surface_deleted]: OnPreSurfaceDeletedEvent
|
3032
|
-
[defines.events.on_player_mined_entity]: OnPlayerMinedEntityEvent
|
3033
|
-
[defines.events.on_robot_mined_entity]: OnRobotMinedEntityEvent
|
3034
|
-
[defines.events.on_train_created]: OnTrainCreatedEvent
|
3035
|
-
[defines.events.on_gui_elem_changed]: OnGuiElemChangedEvent
|
3036
|
-
[defines.events.on_player_setup_blueprint]: OnPlayerSetupBlueprintEvent
|
3037
|
-
[defines.events.on_player_deconstructed_area]: OnPlayerDeconstructedAreaEvent
|
3038
|
-
[defines.events.on_player_configured_blueprint]: OnPlayerConfiguredBlueprintEvent
|
3039
|
-
[defines.events.on_console_chat]: OnConsoleChatEvent
|
3040
|
-
[defines.events.on_console_command]: OnConsoleCommandEvent
|
3041
|
-
[defines.events.on_player_removed]: OnPlayerRemovedEvent
|
3042
|
-
[defines.events.on_pre_player_removed]: OnPrePlayerRemovedEvent
|
3043
|
-
[defines.events.on_player_used_capsule]: OnPlayerUsedCapsuleEvent
|
3044
|
-
[defines.events.script_raised_built]: ScriptRaisedBuiltEvent
|
3045
|
-
[defines.events.script_raised_destroy]: ScriptRaisedDestroyEvent
|
3046
|
-
[defines.events.script_raised_revive]: ScriptRaisedReviveEvent
|
3047
|
-
[defines.events.script_raised_set_tiles]: ScriptRaisedSetTilesEvent
|
3048
|
-
[defines.events.on_player_promoted]: OnPlayerPromotedEvent
|
3049
|
-
[defines.events.on_player_demoted]: OnPlayerDemotedEvent
|
3050
|
-
[defines.events.on_combat_robot_expired]: OnCombatRobotExpiredEvent
|
3051
|
-
[defines.events.on_worker_robot_expired]: OnWorkerRobotExpiredEvent
|
3052
|
-
[defines.events.on_player_changed_position]: OnPlayerChangedPositionEvent
|
3053
|
-
[defines.events.on_mod_item_opened]: OnModItemOpenedEvent
|
3054
|
-
[defines.events.on_gui_opened]: OnGuiOpenedEvent
|
3055
|
-
[defines.events.on_gui_closed]: OnGuiClosedEvent
|
3056
|
-
[defines.events.on_gui_value_changed]: OnGuiValueChangedEvent
|
3057
|
-
[defines.events.on_player_muted]: OnPlayerMutedEvent
|
3058
|
-
[defines.events.on_player_unmuted]: OnPlayerUnmutedEvent
|
3059
|
-
[defines.events.on_player_cheat_mode_enabled]: OnPlayerCheatModeEnabledEvent
|
3060
|
-
[defines.events.on_player_cheat_mode_disabled]: OnPlayerCheatModeDisabledEvent
|
3061
|
-
[defines.events.on_character_corpse_expired]: OnCharacterCorpseExpiredEvent
|
3062
|
-
[defines.events.on_pre_ghost_deconstructed]: OnPreGhostDeconstructedEvent
|
3063
|
-
[defines.events.on_player_pipette]: OnPlayerPipetteEvent
|
3064
|
-
[defines.events.on_player_display_resolution_changed]: OnPlayerDisplayResolutionChangedEvent
|
3065
|
-
[defines.events.on_player_display_scale_changed]: OnPlayerDisplayScaleChangedEvent
|
3066
|
-
[defines.events.on_pre_player_crafted_item]: OnPrePlayerCraftedItemEvent
|
3067
|
-
[defines.events.on_player_cancelled_crafting]: OnPlayerCancelledCraftingEvent
|
3068
|
-
[defines.events.on_chunk_charted]: OnChunkChartedEvent
|
3069
|
-
[defines.events.on_technology_effects_reset]: OnTechnologyEffectsResetEvent
|
3070
|
-
[defines.events.on_force_reset]: OnForceResetEvent
|
3071
|
-
[defines.events.on_land_mine_armed]: OnLandMineArmedEvent
|
3072
|
-
[defines.events.on_forces_merged]: OnForcesMergedEvent
|
3073
|
-
[defines.events.on_player_trash_inventory_changed]: OnPlayerTrashInventoryChangedEvent
|
3074
|
-
[defines.events.on_pre_player_left_game]: OnPrePlayerLeftGameEvent
|
3075
|
-
[defines.events.on_pre_surface_cleared]: OnPreSurfaceClearedEvent
|
3076
|
-
[defines.events.on_surface_cleared]: OnSurfaceClearedEvent
|
3077
|
-
[defines.events.on_chunk_deleted]: OnChunkDeletedEvent
|
3078
|
-
[defines.events.on_pre_chunk_deleted]: OnPreChunkDeletedEvent
|
3079
|
-
[defines.events.on_train_schedule_changed]: OnTrainScheduleChangedEvent
|
3080
|
-
[defines.events.on_player_banned]: OnPlayerBannedEvent
|
3081
|
-
[defines.events.on_player_kicked]: OnPlayerKickedEvent
|
3082
|
-
[defines.events.on_player_unbanned]: OnPlayerUnbannedEvent
|
3083
|
-
[defines.events.on_rocket_launch_ordered]: OnRocketLaunchOrderedEvent
|
3084
|
-
[defines.events.on_script_path_request_finished]: OnScriptPathRequestFinishedEvent
|
3085
|
-
[defines.events.on_ai_command_completed]: OnAiCommandCompletedEvent
|
3086
|
-
[defines.events.on_marked_for_upgrade]: OnMarkedForUpgradeEvent
|
3087
|
-
[defines.events.on_cancelled_upgrade]: OnCancelledUpgradeEvent
|
3088
|
-
[defines.events.on_player_toggled_map_editor]: OnPlayerToggledMapEditorEvent
|
3089
|
-
[defines.events.on_entity_cloned]: OnEntityClonedEvent
|
3090
|
-
[defines.events.on_area_cloned]: OnAreaClonedEvent
|
3091
|
-
[defines.events.on_brush_cloned]: OnBrushClonedEvent
|
3092
|
-
[defines.events.on_game_created_from_scenario]: OnGameCreatedFromScenarioEvent
|
3093
|
-
[defines.events.on_surface_imported]: OnSurfaceImportedEvent
|
3094
|
-
[defines.events.on_surface_renamed]: OnSurfaceRenamedEvent
|
3095
|
-
[defines.events.on_player_toggled_alt_mode]: OnPlayerToggledAltModeEvent
|
3096
|
-
[defines.events.on_player_repaired_entity]: OnPlayerRepairedEntityEvent
|
3097
|
-
[defines.events.on_player_fast_transferred]: OnPlayerFastTransferredEvent
|
3098
|
-
[defines.events.on_pre_robot_exploded_cliff]: OnPreRobotExplodedCliffEvent
|
3099
|
-
[defines.events.on_robot_exploded_cliff]: OnRobotExplodedCliffEvent
|
3100
|
-
[defines.events.on_entity_spawned]: OnEntitySpawnedEvent
|
3101
|
-
[defines.events.on_cutscene_waypoint_reached]: OnCutsceneWaypointReachedEvent
|
3102
|
-
[defines.events.on_unit_group_created]: OnUnitGroupCreatedEvent
|
3103
|
-
[defines.events.on_unit_added_to_group]: OnUnitAddedToGroupEvent
|
3104
|
-
[defines.events.on_unit_removed_from_group]: OnUnitRemovedFromGroupEvent
|
3105
|
-
[defines.events.on_unit_group_finished_gathering]: OnUnitGroupFinishedGatheringEvent
|
3106
|
-
[defines.events.on_build_base_arrived]: OnBuildBaseArrivedEvent
|
3107
|
-
[defines.events.on_chart_tag_added]: OnChartTagAddedEvent
|
3108
|
-
[defines.events.on_chart_tag_modified]: OnChartTagModifiedEvent
|
3109
|
-
[defines.events.on_chart_tag_removed]: OnChartTagRemovedEvent
|
3110
|
-
[defines.events.on_lua_shortcut]: OnLuaShortcutEvent
|
3111
|
-
[defines.events.on_gui_location_changed]: OnGuiLocationChangedEvent
|
3112
|
-
[defines.events.on_gui_selected_tab_changed]: OnGuiSelectedTabChangedEvent
|
3113
|
-
[defines.events.on_gui_switch_state_changed]: OnGuiSwitchStateChangedEvent
|
3114
|
-
[defines.events.on_force_cease_fire_changed]: OnForceCeaseFireChangedEvent
|
3115
|
-
[defines.events.on_force_friends_changed]: OnForceFriendsChangedEvent
|
3116
|
-
[defines.events.on_string_translated]: OnStringTranslatedEvent
|
3117
|
-
[defines.events.on_script_trigger_effect]: OnScriptTriggerEffectEvent
|
3118
|
-
[defines.events.on_player_set_quick_bar_slot]: OnPlayerSetQuickBarSlotEvent
|
3119
|
-
[defines.events.on_pre_player_toggled_map_editor]: OnPrePlayerToggledMapEditorEvent
|
3120
|
-
[defines.events.on_pre_script_inventory_resized]: OnPreScriptInventoryResizedEvent
|
3121
|
-
[defines.events.on_script_inventory_resized]: OnScriptInventoryResizedEvent
|
3122
|
-
[defines.events.on_entity_destroyed]: OnEntityDestroyedEvent
|
3123
|
-
[defines.events.on_player_clicked_gps_tag]: OnPlayerClickedGpsTagEvent
|
3124
|
-
[defines.events.on_player_flushed_fluid]: OnPlayerFlushedFluidEvent
|
3125
|
-
[defines.events.on_permission_group_edited]: OnPermissionGroupEditedEvent
|
3126
|
-
[defines.events.on_pre_permission_string_imported]: OnPrePermissionStringImportedEvent
|
3127
|
-
[defines.events.on_permission_string_imported]: OnPermissionStringImportedEvent
|
3128
|
-
[defines.events.on_pre_permission_group_deleted]: OnPrePermissionGroupDeletedEvent
|
3129
|
-
[defines.events.on_permission_group_deleted]: OnPermissionGroupDeletedEvent
|
3130
|
-
[defines.events.on_permission_group_added]: OnPermissionGroupAddedEvent
|
3131
|
-
[defines.events.on_cutscene_cancelled]: OnCutsceneCancelledEvent
|
3132
|
-
[defines.events.on_player_configured_spider_remote]: OnPlayerConfiguredSpiderRemoteEvent
|
3133
|
-
[defines.events.on_player_used_spider_remote]: OnPlayerUsedSpiderRemoteEvent
|
3134
|
-
[defines.events.on_spider_command_completed]: OnSpiderCommandCompletedEvent
|
3135
|
-
[defines.events.on_entity_logistic_slot_changed]: OnEntityLogisticSlotChangedEvent
|
3136
|
-
[defines.events.on_equipment_inserted]: OnEquipmentInsertedEvent
|
3137
|
-
[defines.events.on_equipment_removed]: OnEquipmentRemovedEvent
|
3138
|
-
}
|
3139
|
-
|
3140
|
-
interface EventFilters {
|
3141
|
-
[defines.events.on_entity_died]: LuaEntityDiedEventFilter
|
3142
|
-
[defines.events.on_post_entity_died]: LuaPostEntityDiedEventFilter
|
3143
|
-
[defines.events.on_entity_damaged]: LuaEntityDamagedEventFilter
|
3144
|
-
[defines.events.on_built_entity]: LuaPlayerBuiltEntityEventFilter
|
3145
|
-
[defines.events.on_sector_scanned]: LuaSectorScannedEventFilter
|
3146
|
-
[defines.events.on_pre_player_mined_item]: LuaPrePlayerMinedEntityEventFilter
|
3147
|
-
[defines.events.on_robot_built_entity]: LuaRobotBuiltEntityEventFilter
|
3148
|
-
[defines.events.on_robot_pre_mined]: LuaPreRobotMinedEntityEventFilter
|
3149
|
-
[defines.events.on_marked_for_deconstruction]: LuaEntityMarkedForDeconstructionEventFilter
|
3150
|
-
[defines.events.on_cancelled_deconstruction]: LuaEntityDeconstructionCancelledEventFilter
|
3151
|
-
[defines.events.on_player_mined_entity]: LuaPlayerMinedEntityEventFilter
|
3152
|
-
[defines.events.on_robot_mined_entity]: LuaRobotMinedEntityEventFilter
|
3153
|
-
[defines.events.script_raised_built]: LuaScriptRaisedBuiltEventFilter
|
3154
|
-
[defines.events.script_raised_destroy]: LuaScriptRaisedDestroyEventFilter
|
3155
|
-
[defines.events.script_raised_revive]: LuaScriptRaisedReviveEventFilter
|
3156
|
-
[defines.events.on_pre_ghost_deconstructed]: LuaPreGhostDeconstructedEventFilter
|
3157
|
-
[defines.events.on_marked_for_upgrade]: LuaEntityMarkedForUpgradeEventFilter
|
3158
|
-
[defines.events.on_cancelled_upgrade]: LuaUpgradeCancelledEventFilter
|
3159
|
-
[defines.events.on_entity_cloned]: LuaEntityClonedEventFilter
|
3160
|
-
[defines.events.on_player_repaired_entity]: LuaPlayerRepairedEntityEventFilter
|
2964
|
+
/** An event id. */
|
2965
|
+
type EventId<T extends table, F = unknown> = uint & {
|
2966
|
+
readonly _eventData: T
|
2967
|
+
readonly _filter: F
|
2968
|
+
}
|
2969
|
+
|
2970
|
+
/**
|
2971
|
+
* An event id generated by {@link LuaBootstrap.generate_event_name LuaBootstrap::generate_event_name} and raisable via
|
2972
|
+
* {@link LuaBootstrap.raise_event LuaBootstrap::raise_event}.
|
2973
|
+
*/
|
2974
|
+
type CustomEventId<T extends table> = EventId<T> & {
|
2975
|
+
_customEventIdBrand: any
|
3161
2976
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "typed-factorio",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.7.3",
|
4
4
|
"description": "Featureful typescript definitions for the the Factorio modding lua api.",
|
5
5
|
"keywords": [
|
6
6
|
"factorio",
|
@@ -25,7 +25,6 @@
|
|
25
25
|
},
|
26
26
|
"dependencies": {
|
27
27
|
"lua-types": "^2.10.1",
|
28
|
-
"typescript": "~4.3.5",
|
29
28
|
"typescript-to-lua": "^1.0.0"
|
30
29
|
},
|
31
30
|
"devDependencies": {
|
@@ -34,6 +33,7 @@
|
|
34
33
|
"jest": "^27.0.6",
|
35
34
|
"prettier": "^2.3.2",
|
36
35
|
"ts-jest": "^27.0.4",
|
37
|
-
"ts-node": "^10.1.0"
|
36
|
+
"ts-node": "^10.1.0",
|
37
|
+
"typescript": "~4.3.5"
|
38
38
|
}
|
39
39
|
}
|