typed-factorio 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -64,9 +64,7 @@ If you have a need for types to more lualib modules, feel free to open an issue
64
64
 
65
65
  ## Type features
66
66
 
67
- Typed-factorio has nearly 100% complete types for the runtime stage. Description-only concepts and some not documented types are filled in manually.
68
-
69
- The only incomplete type is `BlueprintControlBehavior`, which isn't documented anywhere.
67
+ Typed-factorio has 100% complete types for the runtime stage. Description-only concepts and some not documented types are filled in manually.
70
68
 
71
69
  ### Lua features
72
70
 
@@ -5595,5 +5595,41 @@ interface MapGenPreset {
5595
5595
  }
5596
5596
  }
5597
5597
 
5598
- /** There are not yet full definitions for this type. See {@link https://lua-api.factorio.com/1.1.36/LuaControlBehavior.html}. */
5599
- type BlueprintControlBehavior = unknown
5598
+ interface BlueprintControlBehavior {
5599
+ readonly condition?: CircuitCondition
5600
+ readonly circuit_condition?: CircuitCondition
5601
+ readonly filters?: Signal[]
5602
+ readonly is_on?: boolean
5603
+ readonly arithmetic_conditions?: ArithmeticCombinatorParameters
5604
+ readonly decider_conditions?: DeciderCombinatorParameters
5605
+ readonly circuit_enable_disable?: boolean
5606
+ readonly circuit_read_resources?: boolean
5607
+ readonly circuit_resource_read_mode?: defines.control_behavior.mining_drill.resource_read_mode
5608
+ readonly read_stopped_train?: boolean
5609
+ readonly train_stopped_signal?: SignalID
5610
+ readonly read_from_train?: boolean
5611
+ readonly send_to_train?: boolean
5612
+ readonly circuit_mode_of_operation?: number
5613
+ readonly circuit_read_hand_contents?: boolean
5614
+ readonly circuit_hand_read_mode?: defines.control_behavior.inserter.hand_read_mode
5615
+ readonly circuit_set_stack_size?: boolean
5616
+ readonly stack_control_input_signal?: SignalID
5617
+ readonly use_colors?: boolean
5618
+ readonly read_robot_stats?: boolean
5619
+ readonly read_logistics?: boolean
5620
+ readonly available_logistic_output_signal?: boolean
5621
+ readonly total_logistic_output_signal?: boolean
5622
+ readonly available_construction_output_signal?: boolean
5623
+ readonly total_construction_output_signal?: boolean
5624
+ readonly circuit_contents_read_mode?: defines.control_behavior.transport_belt.content_read_mode
5625
+ readonly output_signal?: SignalID
5626
+ readonly circuit_close_signal?: boolean
5627
+ readonly circuit_read_signal?: boolean
5628
+ readonly red_output_signal?: SignalID
5629
+ readonly orange_output_signal?: SignalID
5630
+ readonly green_output_signal?: SignalID
5631
+ readonly blue_output_signal?: SignalID
5632
+ readonly circuit_open_gate?: boolean
5633
+ readonly circuit_read_sensor?: boolean
5634
+ readonly circuit_parameters?: ProgrammableSpeakerCircuitParameters
5635
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typed-factorio",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Featureful typescript definitions for the the Factorio modding lua api.",
5
5
  "keywords": [
6
6
  "factorio",