factorio-types 1.2.25 → 1.2.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/classes.d.ts +117 -4
- package/dist/concepts.d.ts +12 -2
- package/dist/datacollection.d.ts +7 -1
- package/dist/defines.d.ts +105 -97
- package/dist/events.d.ts +1 -1
- package/dist/global.d.ts +1 -1
- package/dist/prototypes.d.ts +36 -1
- package/dist/types.d.ts +11 -1
- package/package.json +2 -2
package/dist/classes.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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 2.0.
|
|
5
|
+
// Factorio version 2.0.38
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -196,6 +196,10 @@ interface LuaAirbornePollutantPrototype extends LuaPrototypeBase {
|
|
|
196
196
|
*/
|
|
197
197
|
interface LuaAmmoCategoryPrototype extends LuaPrototypeBase {
|
|
198
198
|
readonly bonus_gui_order: string;
|
|
199
|
+
/**
|
|
200
|
+
* An alternative prototype that will be used to display info about this prototype in Factoriopedia.
|
|
201
|
+
*/
|
|
202
|
+
readonly factoriopedia_alternative?: LuaAmmoCategoryPrototype;
|
|
199
203
|
/**
|
|
200
204
|
* The class name of this object. Available even when `valid` is false. For LuaStruct objects it may also be suffixed with a dotted path to a member of the struct.
|
|
201
205
|
*/
|
|
@@ -292,6 +296,10 @@ interface LuaAssemblingMachineControlBehavior extends LuaGenericOnOffControlBeha
|
|
|
292
296
|
* Prototype of an asteroid chunk.
|
|
293
297
|
*/
|
|
294
298
|
interface LuaAsteroidChunkPrototype extends LuaPrototypeBase {
|
|
299
|
+
/**
|
|
300
|
+
* An alternative prototype that will be used to display info about this prototype in Factoriopedia.
|
|
301
|
+
*/
|
|
302
|
+
readonly factoriopedia_alternative?: LuaAsteroidChunkPrototype;
|
|
295
303
|
readonly hide_from_signal_gui: boolean;
|
|
296
304
|
readonly item_signal_alias?: LuaItemPrototype;
|
|
297
305
|
readonly mineable_properties: MineableProperties;
|
|
@@ -5848,6 +5856,10 @@ interface LuaEntity extends LuaControl {
|
|
|
5848
5856
|
* The burnt result inventory for this entity or `nil` if this entity doesn't have a burnt result inventory.
|
|
5849
5857
|
*/
|
|
5850
5858
|
get_burnt_result_inventory(this: void): LuaInventory | null;
|
|
5859
|
+
/**
|
|
5860
|
+
* Gets the cargo bays connected to this cargo landing pad or space platform hub.
|
|
5861
|
+
*/
|
|
5862
|
+
get_cargo_bays(this: void): LuaEntity[];
|
|
5851
5863
|
/**
|
|
5852
5864
|
* Returns all child signals. Child signals can be either RailSignal or RailChainSignal. Child signals are signals which are checked by this signal to determine a chain state.
|
|
5853
5865
|
*/
|
|
@@ -7098,6 +7110,14 @@ interface LuaEntity extends LuaControl {
|
|
|
7098
7110
|
* The target entity for this item-request-proxy, if any.
|
|
7099
7111
|
*/
|
|
7100
7112
|
readonly proxy_target?: LuaEntity;
|
|
7113
|
+
/**
|
|
7114
|
+
* Entity of which inventory is exposed by this ProxyContainer
|
|
7115
|
+
*/
|
|
7116
|
+
proxy_target_entity?: LuaEntity;
|
|
7117
|
+
/**
|
|
7118
|
+
* Inventory index of the inventory that is exposed by this ProxyContainer
|
|
7119
|
+
*/
|
|
7120
|
+
proxy_target_inventory: defines.inventory;
|
|
7101
7121
|
/**
|
|
7102
7122
|
* The rail target of this pump, if any.
|
|
7103
7123
|
*/
|
|
@@ -7806,6 +7826,10 @@ interface LuaEntityPrototype extends LuaPrototypeBase {
|
|
|
7806
7826
|
* Whether this explosion rotates.
|
|
7807
7827
|
*/
|
|
7808
7828
|
readonly explosion_rotate?: double;
|
|
7829
|
+
/**
|
|
7830
|
+
* An alternative prototype that will be used to display info about this prototype in Factoriopedia.
|
|
7831
|
+
*/
|
|
7832
|
+
readonly factoriopedia_alternative?: LuaEntityPrototype;
|
|
7809
7833
|
/**
|
|
7810
7834
|
* The group of mutually fast-replaceable entities, if any.
|
|
7811
7835
|
*/
|
|
@@ -9126,6 +9150,10 @@ interface LuaFluidPrototype extends LuaPrototypeBase {
|
|
|
9126
9150
|
* A multiplier on the amount of emissions produced when this fluid is burnt in a generator. A value above `1.0` increases emissions and vice versa. The multiplier can't be negative.
|
|
9127
9151
|
*/
|
|
9128
9152
|
readonly emissions_multiplier: double;
|
|
9153
|
+
/**
|
|
9154
|
+
* An alternative prototype that will be used to display info about this prototype in Factoriopedia.
|
|
9155
|
+
*/
|
|
9156
|
+
readonly factoriopedia_alternative?: LuaFluidPrototype;
|
|
9129
9157
|
readonly flow_color: Color;
|
|
9130
9158
|
/**
|
|
9131
9159
|
* The amount of energy in Joules one unit of this fluid will produce when burnt in a generator. A value of `0` means this fluid can't be used for energy generation. The value can't be negative.
|
|
@@ -12391,6 +12419,10 @@ interface LuaItemPrototype extends LuaPrototypeBase {
|
|
|
12391
12419
|
* The prototype of this armor's equipment grid, if any.
|
|
12392
12420
|
*/
|
|
12393
12421
|
readonly equipment_grid?: LuaEquipmentGridPrototype;
|
|
12422
|
+
/**
|
|
12423
|
+
* An alternative prototype that will be used to display info about this prototype in Factoriopedia.
|
|
12424
|
+
*/
|
|
12425
|
+
readonly factoriopedia_alternative?: LuaItemPrototype;
|
|
12394
12426
|
/**
|
|
12395
12427
|
* The durability message key used when displaying the durability of this tool in Factoriopedia.
|
|
12396
12428
|
*/
|
|
@@ -13501,6 +13533,19 @@ interface LuaPlayer extends LuaControl {
|
|
|
13501
13533
|
* @param entity If the alert is clicked, the map will open at the position of this entity.
|
|
13502
13534
|
*/
|
|
13503
13535
|
add_custom_alert(this: void, entity: LuaEntity, icon: SignalID, message: LocalisedString, show_on_map: boolean): void;
|
|
13536
|
+
/**
|
|
13537
|
+
* Adds a pin to this player for the given pin specification. Either entity, player, or surface and position must be defined.
|
|
13538
|
+
* @param table.entity The entity to pin.
|
|
13539
|
+
* @param table.player The player to pin.
|
|
13540
|
+
* @param table.surface The surface to create the pin on.
|
|
13541
|
+
* @param table.position Where to create the pin. Required when surface is defined.
|
|
13542
|
+
*/
|
|
13543
|
+
add_pin(this: void, table: {
|
|
13544
|
+
entity?: LuaEntity;
|
|
13545
|
+
player?: PlayerIdentification;
|
|
13546
|
+
surface?: SurfaceIdentification;
|
|
13547
|
+
position?: MapPosition;
|
|
13548
|
+
}): void;
|
|
13504
13549
|
/**
|
|
13505
13550
|
* Adds the given recipe to the list of recipe notifications for this player.
|
|
13506
13551
|
* @param recipe Recipe to add.
|
|
@@ -14223,6 +14268,10 @@ interface LuaProgrammableSpeakerControlBehavior extends LuaControlBehavior {
|
|
|
14223
14268
|
* Base for all prototype classes.
|
|
14224
14269
|
*/
|
|
14225
14270
|
interface LuaPrototypeBase {
|
|
14271
|
+
/**
|
|
14272
|
+
* Provides additional description used in factoriopedia.
|
|
14273
|
+
*/
|
|
14274
|
+
readonly factoriopedia_description: LocalisedString;
|
|
14226
14275
|
/**
|
|
14227
14276
|
* Group of this prototype.
|
|
14228
14277
|
*/
|
|
@@ -14519,6 +14568,23 @@ interface LuaPrototypes {
|
|
|
14519
14568
|
*/
|
|
14520
14569
|
readonly virtual_signal: Record<string, LuaVirtualSignalPrototype>;
|
|
14521
14570
|
}
|
|
14571
|
+
/**
|
|
14572
|
+
* Control behavior for proxy container.
|
|
14573
|
+
*/
|
|
14574
|
+
interface LuaProxyContainerControlBehavior extends LuaControlBehavior {
|
|
14575
|
+
/**
|
|
14576
|
+
* The class name of this object. Available even when `valid` is false. For LuaStruct objects it may also be suffixed with a dotted path to a member of the struct.
|
|
14577
|
+
*/
|
|
14578
|
+
readonly object_name: string;
|
|
14579
|
+
/**
|
|
14580
|
+
* `true` if this proxy container is sending inventory contents to a circuit network
|
|
14581
|
+
*/
|
|
14582
|
+
read_contents: boolean;
|
|
14583
|
+
/**
|
|
14584
|
+
* Is this object valid? This Lua object holds a reference to an object within the game engine. It is possible that the game-engine object is removed whilst a mod still holds the corresponding Lua object. If that happens, the object becomes invalid, i.e. this attribute will be `false`. Mods are advised to check for object validity if any change to the game state might have occurred between the creation of the Lua object and its access.
|
|
14585
|
+
*/
|
|
14586
|
+
readonly valid: boolean;
|
|
14587
|
+
}
|
|
14522
14588
|
/**
|
|
14523
14589
|
* Control behavior for pumps.
|
|
14524
14590
|
*/
|
|
@@ -14939,6 +15005,10 @@ interface LuaRecipePrototype extends LuaPrototypeBase {
|
|
|
14939
15005
|
* Energy required to execute this recipe. This directly affects the crafting time: Recipe's energy is exactly its crafting time in seconds, when crafted in an assembling machine with crafting speed exactly equal to one.
|
|
14940
15006
|
*/
|
|
14941
15007
|
readonly energy: double;
|
|
15008
|
+
/**
|
|
15009
|
+
* An alternative prototype that will be used to display info about this prototype in Factoriopedia.
|
|
15010
|
+
*/
|
|
15011
|
+
readonly factoriopedia_alternative?: LuaRecipePrototype;
|
|
14942
15012
|
/**
|
|
14943
15013
|
* Is the recipe hidden from flow statistics (item/fluid production statistics)?
|
|
14944
15014
|
*/
|
|
@@ -15958,13 +16028,14 @@ interface LuaSchedule {
|
|
|
15958
16028
|
*/
|
|
15959
16029
|
add_interrupt(this: void, interrupt: ScheduleInterrupt): void;
|
|
15960
16030
|
/**
|
|
15961
|
-
* Adds
|
|
16031
|
+
* Adds the given record to the end of the current schedule or at the given index using the provided data.
|
|
16032
|
+
* @returns The index the record was added at.
|
|
15962
16033
|
*/
|
|
15963
|
-
add_record(this: void, data: AddRecordData):
|
|
16034
|
+
add_record(this: void, data: AddRecordData): uint | null;
|
|
15964
16035
|
/**
|
|
15965
16036
|
* Adds the given wait condition to the given record.
|
|
15966
16037
|
*/
|
|
15967
|
-
add_wait_condition(this: void, record_index: ScheduleRecordPosition, condition_index: uint, type:
|
|
16038
|
+
add_wait_condition(this: void, record_index: ScheduleRecordPosition, condition_index: uint, type: WaitConditionType): void;
|
|
15968
16039
|
/**
|
|
15969
16040
|
* Changes the interrupt at the given index to the provided values. Note, the names must match.
|
|
15970
16041
|
*/
|
|
@@ -15973,6 +16044,14 @@ interface LuaSchedule {
|
|
|
15973
16044
|
* Changes the wait condition on the given record to the new values.
|
|
15974
16045
|
*/
|
|
15975
16046
|
change_wait_condition(this: void, record_index: ScheduleRecordPosition, condition_index: uint, wait_condition: WaitCondition): void;
|
|
16047
|
+
/**
|
|
16048
|
+
* Removes all interrupts.
|
|
16049
|
+
*/
|
|
16050
|
+
clear_interrupts(this: void): void;
|
|
16051
|
+
/**
|
|
16052
|
+
* @param uint If provided, clears the records for this interrupt.
|
|
16053
|
+
*/
|
|
16054
|
+
clear_records(this: void, interrupt_index?: uint): void;
|
|
15976
16055
|
/**
|
|
15977
16056
|
* Copies the record from the given schedule at the given index into this schedule at the given index.
|
|
15978
16057
|
*/
|
|
@@ -15987,12 +16066,17 @@ interface LuaSchedule {
|
|
|
15987
16066
|
*/
|
|
15988
16067
|
drag_wait_condition(this: void, index: ScheduleRecordPosition, from: uint, to: uint): void;
|
|
15989
16068
|
get_interrupt(this: void, index: uint): ScheduleInterrupt | null;
|
|
16069
|
+
get_interrupts(this: void): ScheduleInterrupt[];
|
|
15990
16070
|
get_record(this: void, index: ScheduleRecordPosition): ScheduleRecord | null;
|
|
15991
16071
|
/**
|
|
15992
16072
|
* If the given index is invalid, `nil` is returned.
|
|
15993
16073
|
* @param interrupt_index If provided, the record count in this interrupt is read.
|
|
15994
16074
|
*/
|
|
15995
16075
|
get_record_count(this: void, interrupt_index?: uint): uint | null;
|
|
16076
|
+
/**
|
|
16077
|
+
* @param uint If provided, gets the records for this interrupt.
|
|
16078
|
+
*/
|
|
16079
|
+
get_records(this: void, interrupt_index?: uint): ScheduleRecord[] | null;
|
|
15996
16080
|
/**
|
|
15997
16081
|
* Gets the wait condition at the given index if one exists.
|
|
15998
16082
|
*/
|
|
@@ -16030,6 +16114,11 @@ interface LuaSchedule {
|
|
|
16030
16114
|
* Sets if unloading is allowed at the given schedule index.
|
|
16031
16115
|
*/
|
|
16032
16116
|
set_allow_unloading(this: void, index: ScheduleRecordPosition, allow: boolean): void;
|
|
16117
|
+
set_interrupts(this: void, interrupts: ScheduleInterrupt[]): void;
|
|
16118
|
+
/**
|
|
16119
|
+
* @param uint If provided, the records will be set on this interrupt.
|
|
16120
|
+
*/
|
|
16121
|
+
set_records(this: void, records: ScheduleRecord[], interrupt_index?: uint): void;
|
|
16033
16122
|
set_stopped(this: void, stopped: boolean): void;
|
|
16034
16123
|
/**
|
|
16035
16124
|
* Sets the comparison on the given wait condition.
|
|
@@ -16270,6 +16359,10 @@ interface LuaSimulation {
|
|
|
16270
16359
|
*/
|
|
16271
16360
|
interface LuaSpaceConnectionPrototype extends LuaPrototypeBase {
|
|
16272
16361
|
readonly asteroid_spawn_definitions?: SpaceConnectionAsteroidSpawnDefinition[];
|
|
16362
|
+
/**
|
|
16363
|
+
* An alternative prototype that will be used to display info about this prototype in Factoriopedia.
|
|
16364
|
+
*/
|
|
16365
|
+
readonly factoriopedia_alternative?: LuaSpaceConnectionPrototype;
|
|
16273
16366
|
readonly from: LuaSpaceLocationPrototype;
|
|
16274
16367
|
readonly length: uint;
|
|
16275
16368
|
/**
|
|
@@ -16289,6 +16382,10 @@ interface LuaSpaceLocationPrototype extends LuaPrototypeBase {
|
|
|
16289
16382
|
readonly asteroid_spawn_definitions?: SpaceLocationAsteroidSpawnDefinition[];
|
|
16290
16383
|
readonly asteroid_spawn_influence: double;
|
|
16291
16384
|
readonly entities_require_heating?: boolean;
|
|
16385
|
+
/**
|
|
16386
|
+
* An alternative prototype that will be used to display info about this prototype in Factoriopedia.
|
|
16387
|
+
*/
|
|
16388
|
+
readonly factoriopedia_alternative?: LuaSpaceLocationPrototype;
|
|
16292
16389
|
readonly map_gen_settings?: MapGenSettings;
|
|
16293
16390
|
readonly map_seed_offset?: uint;
|
|
16294
16391
|
/**
|
|
@@ -18143,6 +18240,10 @@ interface LuaSurfacePropertyPrototype extends LuaPrototypeBase {
|
|
|
18143
18240
|
* Prototype of a surface.
|
|
18144
18241
|
*/
|
|
18145
18242
|
interface LuaSurfacePrototype extends LuaPrototypeBase {
|
|
18243
|
+
/**
|
|
18244
|
+
* An alternative prototype that will be used to display info about this prototype in Factoriopedia.
|
|
18245
|
+
*/
|
|
18246
|
+
readonly factoriopedia_alternative?: LuaSurfacePrototype;
|
|
18146
18247
|
/**
|
|
18147
18248
|
* The class name of this object. Available even when `valid` is false. For LuaStruct objects it may also be suffixed with a dotted path to a member of the struct.
|
|
18148
18249
|
*/
|
|
@@ -18262,6 +18363,10 @@ interface LuaTechnologyPrototype extends LuaPrototypeBase {
|
|
|
18262
18363
|
* If this technology prototype is essential, meaning it is shown in the condensed technology graph.
|
|
18263
18364
|
*/
|
|
18264
18365
|
readonly essential: boolean;
|
|
18366
|
+
/**
|
|
18367
|
+
* An alternative prototype that will be used to display info about this prototype in Factoriopedia.
|
|
18368
|
+
*/
|
|
18369
|
+
readonly factoriopedia_alternative?: LuaTechnologyPrototype;
|
|
18265
18370
|
/**
|
|
18266
18371
|
* If this technology ignores the technology cost multiplier setting.
|
|
18267
18372
|
*
|
|
@@ -18437,6 +18542,10 @@ interface LuaTilePrototype extends LuaPrototypeBase {
|
|
|
18437
18542
|
readonly default_cover_tile?: LuaTilePrototype;
|
|
18438
18543
|
readonly default_destroyed_dropped_item_trigger?: TriggerItem[];
|
|
18439
18544
|
readonly destroys_dropped_items?: boolean;
|
|
18545
|
+
/**
|
|
18546
|
+
* An alternative prototype that will be used to display info about this prototype in Factoriopedia.
|
|
18547
|
+
*/
|
|
18548
|
+
readonly factoriopedia_alternative?: LuaTilePrototype;
|
|
18440
18549
|
/**
|
|
18441
18550
|
* The fluid offshore pump produces on this tile, if any.
|
|
18442
18551
|
*/
|
|
@@ -19115,6 +19224,10 @@ interface LuaUndoRedoStack {
|
|
|
19115
19224
|
* Prototype of a virtual signal.
|
|
19116
19225
|
*/
|
|
19117
19226
|
interface LuaVirtualSignalPrototype extends LuaPrototypeBase {
|
|
19227
|
+
/**
|
|
19228
|
+
* An alternative prototype that will be used to display info about this prototype in Factoriopedia.
|
|
19229
|
+
*/
|
|
19230
|
+
readonly factoriopedia_alternative?: LuaVirtualSignalPrototype;
|
|
19118
19231
|
/**
|
|
19119
19232
|
* The class name of this object. Available even when `valid` is false. For LuaStruct objects it may also be suffixed with a dotted path to a member of the struct.
|
|
19120
19233
|
*/
|
package/dist/concepts.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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 2.0.
|
|
5
|
+
// Factorio version 2.0.38
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -36,10 +36,20 @@ interface AchievementPrototypeFilterType extends BaseAchievementPrototypeFilter
|
|
|
36
36
|
'type': string | string[];
|
|
37
37
|
}
|
|
38
38
|
interface AddRecordData {
|
|
39
|
+
/**
|
|
40
|
+
* One of station or rail must be given.
|
|
41
|
+
*/
|
|
39
42
|
station?: string;
|
|
40
43
|
rail?: LuaEntity;
|
|
44
|
+
// defined as RailDirection, which has no info on it
|
|
45
|
+
rail_direction?: any;
|
|
46
|
+
wait_conditions?: WaitCondition[];
|
|
41
47
|
temporary?: boolean;
|
|
42
|
-
|
|
48
|
+
allows_unloading?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* If index is not given, the record is appended.
|
|
51
|
+
*/
|
|
52
|
+
index?: ScheduleRecordPosition;
|
|
43
53
|
}
|
|
44
54
|
interface AdvancedMapGenSettings {
|
|
45
55
|
pollution: PollutionMapSettings;
|
package/dist/datacollection.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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/prototype-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 2.0.
|
|
5
|
+
// Factorio version 2.0.38
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -355,6 +355,9 @@ interface dataCollection {
|
|
|
355
355
|
'impact-category': {
|
|
356
356
|
[key: string]: ImpactCategory;
|
|
357
357
|
};
|
|
358
|
+
'infinity-cargo-wagon': {
|
|
359
|
+
[key: string]: InfinityCargoWagonPrototype;
|
|
360
|
+
};
|
|
358
361
|
'infinity-container': {
|
|
359
362
|
[key: string]: InfinityContainerPrototype;
|
|
360
363
|
};
|
|
@@ -529,6 +532,9 @@ interface dataCollection {
|
|
|
529
532
|
'projectile': {
|
|
530
533
|
[key: string]: ProjectilePrototype;
|
|
531
534
|
};
|
|
535
|
+
'proxy-container': {
|
|
536
|
+
[key: string]: ProxyContainerPrototype;
|
|
537
|
+
};
|
|
532
538
|
'pump': {
|
|
533
539
|
[key: string]: PumpPrototype;
|
|
534
540
|
};
|
package/dist/defines.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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 2.0.
|
|
5
|
+
// Factorio version 2.0.38
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace defines {
|
|
@@ -276,6 +276,10 @@ namespace control_behavior {
|
|
|
276
276
|
* {@link LuaProgrammableSpeakerControlBehavior | runtime:LuaProgrammableSpeakerControlBehavior}
|
|
277
277
|
*/
|
|
278
278
|
programmable_speaker = 17,
|
|
279
|
+
/**
|
|
280
|
+
* {@link LuaProxyContainerControlBehavior | runtime:LuaProxyContainerControlBehavior}
|
|
281
|
+
*/
|
|
282
|
+
proxy_container = 33,
|
|
279
283
|
/**
|
|
280
284
|
* {@link LuaPumpControlBehavior | runtime:LuaPumpControlBehavior}
|
|
281
285
|
*/
|
|
@@ -1272,6 +1276,7 @@ enum inventory {
|
|
|
1272
1276
|
lab_modules = 29,
|
|
1273
1277
|
logistic_container_trash = 3,
|
|
1274
1278
|
mining_drill_modules = 30,
|
|
1279
|
+
proxy_main = 54,
|
|
1275
1280
|
roboport_material = 20,
|
|
1276
1281
|
roboport_robot = 19,
|
|
1277
1282
|
robot_cargo = 21,
|
|
@@ -1532,79 +1537,81 @@ namespace prototypes {
|
|
|
1532
1537
|
'heat-interface' = 54,
|
|
1533
1538
|
'heat-pipe' = 55,
|
|
1534
1539
|
'highlight-box' = 56,
|
|
1535
|
-
'infinity-
|
|
1536
|
-
'infinity-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
'item-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
'
|
|
1544
|
-
'
|
|
1545
|
-
'legacy-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
'
|
|
1549
|
-
'linked-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
'logistic-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
'
|
|
1558
|
-
'
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
'
|
|
1564
|
-
'
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
'rail-
|
|
1571
|
-
'rail-
|
|
1572
|
-
'rail-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
'rocket-silo
|
|
1579
|
-
|
|
1580
|
-
'
|
|
1581
|
-
|
|
1582
|
-
'
|
|
1583
|
-
'
|
|
1584
|
-
'simple-entity
|
|
1585
|
-
'
|
|
1586
|
-
'
|
|
1587
|
-
'
|
|
1588
|
-
'
|
|
1589
|
-
'
|
|
1590
|
-
'
|
|
1591
|
-
'spider-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
'
|
|
1598
|
-
|
|
1599
|
-
'
|
|
1600
|
-
|
|
1601
|
-
'
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
'
|
|
1607
|
-
|
|
1540
|
+
'infinity-cargo-wagon' = 57,
|
|
1541
|
+
'infinity-container' = 58,
|
|
1542
|
+
'infinity-pipe' = 59,
|
|
1543
|
+
inserter = 60,
|
|
1544
|
+
'item-entity' = 61,
|
|
1545
|
+
'item-request-proxy' = 62,
|
|
1546
|
+
lab = 63,
|
|
1547
|
+
lamp = 64,
|
|
1548
|
+
'land-mine' = 65,
|
|
1549
|
+
'lane-splitter' = 66,
|
|
1550
|
+
'legacy-curved-rail' = 67,
|
|
1551
|
+
'legacy-straight-rail' = 68,
|
|
1552
|
+
lightning = 69,
|
|
1553
|
+
'lightning-attractor' = 70,
|
|
1554
|
+
'linked-belt' = 71,
|
|
1555
|
+
'linked-container' = 72,
|
|
1556
|
+
loader = 73,
|
|
1557
|
+
'loader-1x1' = 74,
|
|
1558
|
+
locomotive = 75,
|
|
1559
|
+
'logistic-container' = 76,
|
|
1560
|
+
'logistic-robot' = 77,
|
|
1561
|
+
market = 78,
|
|
1562
|
+
'mining-drill' = 79,
|
|
1563
|
+
'offshore-pump' = 80,
|
|
1564
|
+
'particle-source' = 81,
|
|
1565
|
+
pipe = 82,
|
|
1566
|
+
'pipe-to-ground' = 83,
|
|
1567
|
+
plant = 84,
|
|
1568
|
+
'player-port' = 85,
|
|
1569
|
+
'power-switch' = 86,
|
|
1570
|
+
'programmable-speaker' = 87,
|
|
1571
|
+
projectile = 88,
|
|
1572
|
+
'proxy-container' = 89,
|
|
1573
|
+
pump = 90,
|
|
1574
|
+
radar = 91,
|
|
1575
|
+
'rail-chain-signal' = 92,
|
|
1576
|
+
'rail-ramp' = 93,
|
|
1577
|
+
'rail-remnants' = 94,
|
|
1578
|
+
'rail-signal' = 95,
|
|
1579
|
+
'rail-support' = 96,
|
|
1580
|
+
reactor = 97,
|
|
1581
|
+
resource = 98,
|
|
1582
|
+
roboport = 99,
|
|
1583
|
+
'rocket-silo' = 100,
|
|
1584
|
+
'rocket-silo-rocket' = 101,
|
|
1585
|
+
'rocket-silo-rocket-shadow' = 102,
|
|
1586
|
+
segment = 103,
|
|
1587
|
+
'segmented-unit' = 104,
|
|
1588
|
+
'selector-combinator' = 105,
|
|
1589
|
+
'simple-entity' = 106,
|
|
1590
|
+
'simple-entity-with-force' = 107,
|
|
1591
|
+
'simple-entity-with-owner' = 108,
|
|
1592
|
+
'smoke-with-trigger' = 109,
|
|
1593
|
+
'solar-panel' = 110,
|
|
1594
|
+
'space-platform-hub' = 111,
|
|
1595
|
+
'speech-bubble' = 112,
|
|
1596
|
+
'spider-leg' = 113,
|
|
1597
|
+
'spider-unit' = 114,
|
|
1598
|
+
'spider-vehicle' = 115,
|
|
1599
|
+
splitter = 116,
|
|
1600
|
+
sticker = 117,
|
|
1601
|
+
'storage-tank' = 118,
|
|
1602
|
+
'straight-rail' = 119,
|
|
1603
|
+
stream = 120,
|
|
1604
|
+
'temporary-container' = 121,
|
|
1605
|
+
thruster = 122,
|
|
1606
|
+
'tile-ghost' = 123,
|
|
1607
|
+
'train-stop' = 124,
|
|
1608
|
+
'transport-belt' = 125,
|
|
1609
|
+
tree = 126,
|
|
1610
|
+
turret = 127,
|
|
1611
|
+
'underground-belt' = 128,
|
|
1612
|
+
unit = 129,
|
|
1613
|
+
'unit-spawner' = 130,
|
|
1614
|
+
wall = 131
|
|
1608
1615
|
}
|
|
1609
1616
|
enum equipment {
|
|
1610
1617
|
'active-defense-equipment' = 0,
|
|
@@ -1941,29 +1948,30 @@ enum relative_gui_type {
|
|
|
1941
1948
|
power_switch_gui = 48,
|
|
1942
1949
|
production_gui = 49,
|
|
1943
1950
|
programmable_speaker_gui = 50,
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1951
|
+
proxy_container_gui = 51,
|
|
1952
|
+
pump_gui = 52,
|
|
1953
|
+
rail_signal_base_gui = 53,
|
|
1954
|
+
reactor_gui = 54,
|
|
1955
|
+
resource_entity_gui = 55,
|
|
1956
|
+
roboport_gui = 56,
|
|
1957
|
+
rocket_silo_gui = 57,
|
|
1958
|
+
script_inventory_gui = 58,
|
|
1959
|
+
selector_combinator_gui = 59,
|
|
1960
|
+
server_config_gui = 60,
|
|
1961
|
+
space_platform_hub_gui = 61,
|
|
1962
|
+
spider_vehicle_gui = 62,
|
|
1963
|
+
splitter_gui = 63,
|
|
1964
|
+
standalone_character_gui = 64,
|
|
1965
|
+
storage_tank_gui = 65,
|
|
1966
|
+
tile_variations_gui = 66,
|
|
1967
|
+
tips_and_tricks_gui = 67,
|
|
1968
|
+
train_gui = 68,
|
|
1969
|
+
train_stop_gui = 69,
|
|
1970
|
+
trains_gui = 70,
|
|
1971
|
+
transport_belt_gui = 71,
|
|
1972
|
+
turret_gui = 72,
|
|
1973
|
+
upgrade_item_gui = 73,
|
|
1974
|
+
wall_gui = 74
|
|
1967
1975
|
}
|
|
1968
1976
|
enum render_mode {
|
|
1969
1977
|
chart = 1,
|
package/dist/events.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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 2.0.
|
|
5
|
+
// Factorio version 2.0.38
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
package/dist/global.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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 2.0.
|
|
5
|
+
// Factorio version 2.0.38
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
/**
|
package/dist/prototypes.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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/prototype-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 2.0.
|
|
5
|
+
// Factorio version 2.0.38
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -4279,6 +4279,20 @@ interface ImpactCategory {
|
|
|
4279
4279
|
name: string;
|
|
4280
4280
|
type: 'impact-category';
|
|
4281
4281
|
}
|
|
4282
|
+
/**
|
|
4283
|
+
* A cargo wagon that can spawn or void items at will.
|
|
4284
|
+
*/
|
|
4285
|
+
interface InfinityCargoWagonPrototype extends CargoWagonPrototype {
|
|
4286
|
+
erase_contents_when_mined?: bool;
|
|
4287
|
+
/**
|
|
4288
|
+
* Controls which players can control what the chest spawns.
|
|
4289
|
+
*/
|
|
4290
|
+
gui_mode?: 'all' | 'none' | 'admins';
|
|
4291
|
+
/**
|
|
4292
|
+
* When true, items created inside the infinity cargo wagon will not start to spoil until they have been removed from the wagon.
|
|
4293
|
+
*/
|
|
4294
|
+
preserve_contents_when_created?: bool;
|
|
4295
|
+
}
|
|
4282
4296
|
/**
|
|
4283
4297
|
* A generic container, such as a chest, that can spawn or void items and interact with the logistics network.
|
|
4284
4298
|
*/
|
|
@@ -6122,6 +6136,23 @@ interface PrototypeBase {
|
|
|
6122
6136
|
*/
|
|
6123
6137
|
type: string;
|
|
6124
6138
|
}
|
|
6139
|
+
/**
|
|
6140
|
+
* A container that must be set to point at other entity and inventory index so it can forward all inventory interactions to the other entity.
|
|
6141
|
+
*/
|
|
6142
|
+
interface ProxyContainerPrototype extends EntityWithOwnerPrototype {
|
|
6143
|
+
circuit_connector?: CircuitConnectorDefinition;
|
|
6144
|
+
/**
|
|
6145
|
+
* The maximum circuit wire distance for this entity.
|
|
6146
|
+
*/
|
|
6147
|
+
circuit_wire_max_distance?: double;
|
|
6148
|
+
draw_circuit_wires?: bool;
|
|
6149
|
+
draw_copper_wires?: bool;
|
|
6150
|
+
/**
|
|
6151
|
+
* If the content of the inventory should be rendered in alt mode.
|
|
6152
|
+
*/
|
|
6153
|
+
draw_inventory_content?: bool;
|
|
6154
|
+
picture?: Sprite;
|
|
6155
|
+
}
|
|
6125
6156
|
/**
|
|
6126
6157
|
* The pump is used to transfer fluids between tanks, fluid wagons and pipes.
|
|
6127
6158
|
*/
|
|
@@ -10856,6 +10887,8 @@ type dataExtendType = ({
|
|
|
10856
10887
|
} & HighlightBoxEntityPrototype) | ({
|
|
10857
10888
|
type: 'impact-category';
|
|
10858
10889
|
} & ImpactCategory) | ({
|
|
10890
|
+
type: 'infinity-cargo-wagon';
|
|
10891
|
+
} & InfinityCargoWagonPrototype) | ({
|
|
10859
10892
|
type: 'infinity-container';
|
|
10860
10893
|
} & InfinityContainerPrototype) | ({
|
|
10861
10894
|
type: 'infinity-pipe';
|
|
@@ -10972,6 +11005,8 @@ type dataExtendType = ({
|
|
|
10972
11005
|
} & ProgrammableSpeakerPrototype) | ({
|
|
10973
11006
|
type: 'projectile';
|
|
10974
11007
|
} & ProjectilePrototype) | ({
|
|
11008
|
+
type: 'proxy-container';
|
|
11009
|
+
} & ProxyContainerPrototype) | ({
|
|
10975
11010
|
type: 'pump';
|
|
10976
11011
|
} & PumpPrototype) | ({
|
|
10977
11012
|
type: 'quality';
|
package/dist/types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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/prototype-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 2.0.
|
|
5
|
+
// Factorio version 2.0.38
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -920,6 +920,9 @@ HighlightBoxEntityPrototype | /**
|
|
|
920
920
|
* `'impact-category'`
|
|
921
921
|
*/
|
|
922
922
|
ImpactCategory | /**
|
|
923
|
+
* `'infinity-cargo-wagon'`
|
|
924
|
+
*/
|
|
925
|
+
InfinityCargoWagonPrototype | /**
|
|
923
926
|
* `'infinity-container'`
|
|
924
927
|
*/
|
|
925
928
|
InfinityContainerPrototype | /**
|
|
@@ -1094,6 +1097,9 @@ ProgrammableSpeakerPrototype | /**
|
|
|
1094
1097
|
* `'projectile'`
|
|
1095
1098
|
*/
|
|
1096
1099
|
ProjectilePrototype | /**
|
|
1100
|
+
* `'proxy-container'`
|
|
1101
|
+
*/
|
|
1102
|
+
ProxyContainerPrototype | /**
|
|
1097
1103
|
* `'pump'`
|
|
1098
1104
|
*/
|
|
1099
1105
|
PumpPrototype | /**
|
|
@@ -9441,6 +9447,10 @@ interface SpiderVehicleGraphicsSet extends SpiderTorsoGraphicsSet {
|
|
|
9441
9447
|
autopilot_destination_visualisation_render_layer?: RenderLayer;
|
|
9442
9448
|
autopilot_path_visualisation_line_width?: float;
|
|
9443
9449
|
autopilot_path_visualisation_on_map_line_width?: float;
|
|
9450
|
+
/**
|
|
9451
|
+
* The default mask color for the spider vehicle. Defaults to orange.
|
|
9452
|
+
*/
|
|
9453
|
+
default_color?: float;
|
|
9444
9454
|
/**
|
|
9445
9455
|
* Placed in multiple positions, as determined by `light_positions`.
|
|
9446
9456
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "factorio-types",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.26",
|
|
4
4
|
"description": "Typescript declarations for the Factorio mod API",
|
|
5
5
|
"main": "index.d.ts",
|
|
6
6
|
"repository": "https://github.com/sguest/factorio-types.git",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"src/**/*.d.ts",
|
|
24
24
|
"dist/**/*.d.ts"
|
|
25
25
|
],
|
|
26
|
-
"factorioVersion": "2.0.
|
|
26
|
+
"factorioVersion": "2.0.38",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"lua-types": "^2.13.1"
|
|
29
29
|
},
|