typed-factorio 0.5.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +12 -12
- package/generated/classes.d.ts +33 -23
- package/generated/concepts.d.ts +387 -255
- package/generated/defines.d.ts +279 -200
- package/generated/events.d.ts +15 -198
- package/package.json +4 -4
package/generated/defines.d.ts
CHANGED
@@ -649,359 +649,438 @@ 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
|
-
/**
|
999
|
-
* See the {@link https://lua-api.factorio.com/next/events.html events page} for more info on what events contain and
|
1000
|
-
* when they get raised.
|
1001
|
-
*
|
1002
|
-
* {@link https://lua-api.factorio.com/next/defines.html#defines.events View documentation}
|
1003
|
-
*/
|
1004
|
-
type events = typeof events[keyof typeof events]
|
1005
1084
|
enum flow_precision_index {
|
1006
1085
|
five_seconds,
|
1007
1086
|
one_minute,
|