|
2 | 2 | // Factorio API reference https://lua-api.factorio.com/latest/index.html
|
3 | 3 | // Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
|
4 | 4 | // Definition source https://github.com/sguest/factorio-types
|
5 |
| -// Factorio version 1.1.109 |
| 5 | +// Factorio version 1.1.110 |
6 | 6 | // API version 5
|
7 | 7 |
|
8 | 8 | declare namespace runtime {
|
@@ -5672,7 +5672,7 @@ interface LuaEntity extends LuaControl {
|
5672 | 5672 | */
|
5673 | 5673 | toggle_equipment_movement_bonus(this: void): void;
|
5674 | 5674 | /**
|
5675 |
| - * Reconnect loader, beacon, cliff and mining drill connections to entities that might have been teleported out or in by the script. The game doesn't do this automatically as we don't want to loose performance by checking this in normal games. |
| 5675 | + * Reconnect loader, beacon, cliff and mining drill connections to entities that might have been teleported out or in by the script. The game doesn't do this automatically as we don't want to lose performance by checking this in normal games. |
5676 | 5676 | */
|
5677 | 5677 | update_connections(this: void): void;
|
5678 | 5678 | readonly absorbed_pollution: double;
|
@@ -6394,6 +6394,8 @@ interface LuaEntity extends LuaControl {
|
6394 | 6394 | readonly stickers?: LuaEntity[];
|
6395 | 6395 | /**
|
6396 | 6396 | * The storage filter for this logistic storage container.
|
| 6397 | + * |
| 6398 | + * Useable only on logistic containers with the `"storage"` {@link logistic_mode | runtime:LuaEntityPrototype::logistic_mode}. |
6397 | 6399 | */
|
6398 | 6400 | storage_filter?: LuaItemPrototype;
|
6399 | 6401 | /**
|
@@ -7389,7 +7391,7 @@ interface LuaEntityPrototype {
|
7389 | 7391 | */
|
7390 | 7392 | readonly rotation_speed?: double;
|
7391 | 7393 | /**
|
7392 |
| - * The current movement speed of this character, including effects from exoskeletons, tiles, stickers and shooting. |
| 7394 | + * The movement speed of this character prototype. |
7393 | 7395 | */
|
7394 | 7396 | readonly running_speed?: double;
|
7395 | 7397 | /**
|
@@ -12144,7 +12146,7 @@ interface LuaLogisticContainerControlBehavior extends LuaControlBehavior {
|
12144 | 12146 | */
|
12145 | 12147 | help(this: void): string;
|
12146 | 12148 | /**
|
12147 |
| - * The circuit mode of operations for the logistic container. Can only be set on containers whose {@link logistic_mode | runtime:LuaEntityPrototype::logistic_mode} is set to "requester". |
| 12149 | + * The circuit mode of operations for the logistic container. Can only be set on containers whose {@link logistic_mode | runtime:LuaEntityPrototype::logistic_mode} is set to `"requester"` or `"buffer"`. |
12148 | 12150 | */
|
12149 | 12151 | circuit_mode_of_operation: defines.control_behavior.logistic_container.circuit_mode_of_operation;
|
12150 | 12152 | /**
|
@@ -13490,7 +13492,7 @@ interface LuaRandomGenerator {
|
13490 | 13492 | */
|
13491 | 13493 | readonly valid: boolean;
|
13492 | 13494 | /**
|
13493 |
| - * Generates a random number. If no parameters are given a number in the `[0, 1)` range is returned. If a single parameter is given a floored number in the [1, N] range is returned. If 2 parameters are given a floored number in the [N1, N2] range is returned. |
| 13495 | + * Generates a random number. If no parameters are given a number in the `[0, 1)` range is returned. If a single parameter is given a floored number in the `[1, N]` range is returned. If 2 parameters are given a floored number in the `[N1, N2]` range is returned. |
13494 | 13496 | * @param lower Inclusive lower bound on the result
|
13495 | 13497 | * @param upper Inclusive upper bound on the result
|
13496 | 13498 | */
|
@@ -15861,7 +15863,7 @@ interface LuaSurface {
|
15861 | 15863 | */
|
15862 | 15864 | wind_speed: double;
|
15863 | 15865 | }
|
15864 |
| -type LuaSurfaceCreateEntityParams = BaseLuaSurfaceCreateEntityParams | LuaSurfaceCreateEntityParamsArtilleryFlare | LuaSurfaceCreateEntityParamsArtilleryProjectile | LuaSurfaceCreateEntityParamsAssemblingMachine | LuaSurfaceCreateEntityParamsBeam | LuaSurfaceCreateEntityParamsCharacterCorpse | LuaSurfaceCreateEntityParamsCliff | LuaSurfaceCreateEntityParamsContainer | LuaSurfaceCreateEntityParamsEntityGhost | LuaSurfaceCreateEntityParamsFire | LuaSurfaceCreateEntityParamsFlyingText | LuaSurfaceCreateEntityParamsHighlightBox | LuaSurfaceCreateEntityParamsInserter | LuaSurfaceCreateEntityParamsItemEntity | LuaSurfaceCreateEntityParamsItemRequestProxy | LuaSurfaceCreateEntityParamsLoader | LuaSurfaceCreateEntityParamsLoader1x1 | LuaSurfaceCreateEntityParamsLocomotive | LuaSurfaceCreateEntityParamsLogisticContainer | LuaSurfaceCreateEntityParamsParticle | LuaSurfaceCreateEntityParamsProgrammableSpeaker | LuaSurfaceCreateEntityParamsProjectile | LuaSurfaceCreateEntityParamsResource | LuaSurfaceCreateEntityParamsRollingStock | LuaSurfaceCreateEntityParamsSimpleEntityWithForce | LuaSurfaceCreateEntityParamsSimpleEntityWithOwner | LuaSurfaceCreateEntityParamsSpeechBubble | LuaSurfaceCreateEntityParamsStream | LuaSurfaceCreateEntityParamsUndergroundBelt; |
| 15866 | +type LuaSurfaceCreateEntityParams = BaseLuaSurfaceCreateEntityParams | LuaSurfaceCreateEntityParamsArtilleryFlare | LuaSurfaceCreateEntityParamsArtilleryProjectile | LuaSurfaceCreateEntityParamsAssemblingMachine | LuaSurfaceCreateEntityParamsBeam | LuaSurfaceCreateEntityParamsCharacterCorpse | LuaSurfaceCreateEntityParamsCliff | LuaSurfaceCreateEntityParamsContainer | LuaSurfaceCreateEntityParamsEntityGhost | LuaSurfaceCreateEntityParamsFire | LuaSurfaceCreateEntityParamsFlyingText | LuaSurfaceCreateEntityParamsHighlightBox | LuaSurfaceCreateEntityParamsInserter | LuaSurfaceCreateEntityParamsItemEntity | LuaSurfaceCreateEntityParamsItemRequestProxy | LuaSurfaceCreateEntityParamsLoader | LuaSurfaceCreateEntityParamsLoader1x1 | LuaSurfaceCreateEntityParamsLocomotive | LuaSurfaceCreateEntityParamsLogisticContainer | LuaSurfaceCreateEntityParamsParticle | LuaSurfaceCreateEntityParamsProgrammableSpeaker | LuaSurfaceCreateEntityParamsProjectile | LuaSurfaceCreateEntityParamsResource | LuaSurfaceCreateEntityParamsRollingStock | LuaSurfaceCreateEntityParamsSimpleEntityWithForce | LuaSurfaceCreateEntityParamsSimpleEntityWithOwner | LuaSurfaceCreateEntityParamsSpeechBubble | LuaSurfaceCreateEntityParamsStream | LuaSurfaceCreateEntityParamsTileGhost | LuaSurfaceCreateEntityParamsUndergroundBelt; |
15865 | 15867 | interface BaseLuaSurfaceCreateEntityParams {
|
15866 | 15868 | /**
|
15867 | 15869 | * If fast_replace is true simulate fast replace using this character.
|
@@ -15939,7 +15941,6 @@ interface LuaSurfaceCreateEntityParamsArtilleryFlare extends BaseLuaSurfaceCreat
|
15939 | 15941 | * Applies to variant case `artillery-projectile`
|
15940 | 15942 | */
|
15941 | 15943 | interface LuaSurfaceCreateEntityParamsArtilleryProjectile extends BaseLuaSurfaceCreateEntityParams {
|
15942 |
| - 'max_range'?: double; |
15943 | 15944 | 'speed': double;
|
15944 | 15945 | }
|
15945 | 15946 | /**
|
@@ -16016,6 +16017,10 @@ interface LuaSurfaceCreateEntityParamsEntityGhost extends BaseLuaSurfaceCreateEn
|
16016 | 16017 | * The prototype name of the entity contained in the ghost.
|
16017 | 16018 | */
|
16018 | 16019 | 'inner_name': string;
|
| 16020 | + /** |
| 16021 | + * The {@link LuaEntity::tags | runtime:LuaEntity::tags} associated with this entity ghost. |
| 16022 | + */ |
| 16023 | + 'tags'?: Tags; |
16019 | 16024 | }
|
16020 | 16025 | /**
|
16021 | 16026 | *
|
@@ -16162,6 +16167,9 @@ interface LuaSurfaceCreateEntityParamsProgrammableSpeaker extends BaseLuaSurface
|
16162 | 16167 | * Applies to variant case `projectile`
|
16163 | 16168 | */
|
16164 | 16169 | interface LuaSurfaceCreateEntityParamsProjectile extends BaseLuaSurfaceCreateEntityParams {
|
| 16170 | + /** |
| 16171 | + * Defaults to 1000. |
| 16172 | + */ |
16165 | 16173 | 'max_range'?: double;
|
16166 | 16174 | 'speed': double;
|
16167 | 16175 | }
|
@@ -16238,6 +16246,20 @@ interface LuaSurfaceCreateEntityParamsStream extends BaseLuaSurfaceCreateEntityP
|
16238 | 16246 | */
|
16239 | 16247 | 'target_position'?: MapPosition;
|
16240 | 16248 | }
|
| 16249 | +/** |
| 16250 | + * |
| 16251 | + * Applies to variant case `tile-ghost` |
| 16252 | + */ |
| 16253 | +interface LuaSurfaceCreateEntityParamsTileGhost extends BaseLuaSurfaceCreateEntityParams { |
| 16254 | + /** |
| 16255 | + * If `false` the ghost tile will not expire. Default is `false`. Creating ghost with `expires = true` when ghost_time_to_live of this force is 0 will result in a script error. |
| 16256 | + */ |
| 16257 | + 'expires'?: boolean; |
| 16258 | + /** |
| 16259 | + * The prototype name of the tile contained in the ghost. |
| 16260 | + */ |
| 16261 | + 'inner_name': string; |
| 16262 | +} |
16241 | 16263 | /**
|
16242 | 16264 | *
|
16243 | 16265 | * Applies to variant case `underground-belt`
|
@@ -16443,8 +16465,9 @@ interface LuaTile {
|
16443 | 16465 | /**
|
16444 | 16466 | * Gets all tile ghosts on this tile.
|
16445 | 16467 | * @param force Get tile ghosts of this force.
|
| 16468 | + * @returns The tile ghosts. |
16446 | 16469 | */
|
16447 |
| - get_tile_ghosts(this: void, force?: ForceIdentification): LuaTile[]; |
| 16470 | + get_tile_ghosts(this: void, force?: ForceIdentification): LuaEntity[]; |
16448 | 16471 | /**
|
16449 | 16472 | * Does this tile have any tile ghosts on it.
|
16450 | 16473 | * @param force Check for tile ghosts of this force.
|
|
0 commit comments