mirror of
https://github.com/Xevion/project-cybersyn.git
synced 2025-12-12 09:11:05 -06:00
api update
This commit is contained in:
22
.vscode/factorio/runtime-api-LuaGameScript.lua
vendored
22
.vscode/factorio/runtime-api-LuaGameScript.lua
vendored
@@ -1,7 +1,7 @@
|
||||
---@meta
|
||||
---@diagnostic disable
|
||||
|
||||
--$Factorio 1.1.69
|
||||
--$Factorio 1.1.70
|
||||
--$Overlay 5
|
||||
--$Section LuaGameScript
|
||||
-- This file is automatically generated. Edits will be overwritten.
|
||||
@@ -500,7 +500,7 @@ force_crc=function()end,
|
||||
---**Note:** This is very expensive to determine.
|
||||
---
|
||||
---[View documentation](https://lua-api.factorio.com/latest/LuaGameScript.html#LuaGameScript.get_active_entities_count)
|
||||
---@param surface SurfaceIdentification?@If give, only the entities active on this surface are counted.
|
||||
---@param surface SurfaceIdentification?@If given, only the entities active on this surface are counted.
|
||||
---@return uint
|
||||
get_active_entities_count=function(surface)end,
|
||||
---[View documentation](https://lua-api.factorio.com/latest/LuaGameScript.html#LuaGameScript.get_entity_by_tag)
|
||||
@@ -656,10 +656,16 @@ get_script_inventories=function(mod)end,
|
||||
get_surface=function(surface)end,
|
||||
---[View documentation](https://lua-api.factorio.com/latest/LuaGameScript.html#LuaGameScript.get_train_stops)
|
||||
---@class LuaGameScript.get_train_stops_param
|
||||
---The name(s) of the train stops. Not providing names will match any stop.
|
||||
---
|
||||
---[View documentation](https://lua-api.factorio.com/latest/LuaGameScript.html#LuaGameScript.get_train_stops)
|
||||
---@field name? string|string[]
|
||||
---The surface to search. Not providing a surface will match stops on any surface.
|
||||
---
|
||||
---[View documentation](https://lua-api.factorio.com/latest/LuaGameScript.html#LuaGameScript.get_train_stops)
|
||||
---@field surface? SurfaceIdentification
|
||||
---The force to search. Not providing a force will match stops in any force.
|
||||
---
|
||||
---[View documentation](https://lua-api.factorio.com/latest/LuaGameScript.html#LuaGameScript.get_train_stops)
|
||||
---@field force? ForceIdentification
|
||||
|
||||
@@ -841,18 +847,18 @@ server_save=function(name)end,
|
||||
---[View documentation](https://lua-api.factorio.com/latest/LuaGameScript.html#LuaGameScript.set_game_state)
|
||||
---@class LuaGameScript.set_game_state_param
|
||||
---[View documentation](https://lua-api.factorio.com/latest/LuaGameScript.html#LuaGameScript.set_game_state)
|
||||
---@field game_finished boolean
|
||||
---@field game_finished? boolean
|
||||
---[View documentation](https://lua-api.factorio.com/latest/LuaGameScript.html#LuaGameScript.set_game_state)
|
||||
---@field player_won boolean
|
||||
---@field player_won? boolean
|
||||
---[View documentation](https://lua-api.factorio.com/latest/LuaGameScript.html#LuaGameScript.set_game_state)
|
||||
---@field next_level string
|
||||
---@field next_level? string
|
||||
---[View documentation](https://lua-api.factorio.com/latest/LuaGameScript.html#LuaGameScript.set_game_state)
|
||||
---@field can_continue boolean
|
||||
---@field can_continue? boolean
|
||||
---[View documentation](https://lua-api.factorio.com/latest/LuaGameScript.html#LuaGameScript.set_game_state)
|
||||
---@field victorious_force ForceIdentification
|
||||
---@field victorious_force? ForceIdentification
|
||||
|
||||
|
||||
---Set scenario state.
|
||||
---Set scenario state. Any parameters not provided do not change the current state.
|
||||
---
|
||||
---[View documentation](https://lua-api.factorio.com/latest/LuaGameScript.html#LuaGameScript.set_game_state)
|
||||
---@param param LuaGameScript.set_game_state_param
|
||||
|
||||
Reference in New Issue
Block a user