Difference between revisions of "Prototype/DeconstructionItem"

From Official Factorio Wiki
Jump to: navigation, search
(Set prototype parent)
(Ignored properties, show_in_library update/fixes)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{{Prototype parent|Prototype/SelectionTool}}
 
{{Prototype parent|Prototype/SelectionTool}}
 +
A [[deconstruction planner]].
  
== Basics ==
+
{{Prototype TOC|deconstruction-item}}
Prototype type: '''deconstruction-item'''
 
 
 
A [[deconstruction planner]]. Extends [[Prototype/SelectionTool]].
 
  
 
== Optional properties ==
 
== Optional properties ==
 
This prototype inherits all the properties from [[Prototype/SelectionTool]].
 
This prototype inherits all the properties from [[Prototype/SelectionTool]].
  
=== entity_filter_count ===
+
{{Prototype property|entity_filter_count|[[Types/ItemStackIndex]]|0|optional=true}}
'''Type''': [[Types/ItemStackIndex]]
 
  
'''Default''': 0
+
{{Prototype property|tile_filter_count|[[Types/ItemStackIndex]]|0|optional=true}}
  
=== tile_filter_count ===
+
== Differing defaults ==
'''Type''': [[Types/ItemStackIndex]]
+
<code>show_in_library</code> defaults to true instead of false. <code>show_in_library</code> is unused as of 0.18.13 as the ability to show any selection tools in the blueprint library was removed.
  
'''Default''': 0
+
== Mandatory values ==
 +
Deconstruction planners must have a stack size of 1.
  
=== show_in_library ===
+
== Ignored properties ==
'''Type''': [[Types/bool]]
+
'''Prototype/DeconstructionItem''' ignores the following properties that it inherits from [[Prototype/SelectionTool]]:
 
+
* selection_mode (forced to be "deconstruct")
'''Default''': true
+
* alt_selection_mode (forced to be "cancel-deconstruct")
 
+
* always_include_tiles (forced to be false)
== Mandatory values ==
+
* entity_filters
Blueprints must have a stack size of 1.
+
* entity_type_filters
 +
* tile_filters
 +
* entity_filter_mode
 +
* tile_filter_mode
 +
* alt_entity_filters
 +
* alt_entity_type_filters
 +
* alt_tile_filters
 +
* alt_entity_filter_mode
 +
* alt_tile_filter_mode

Latest revision as of 08:17, 20 April 2020

Prototype definitions » PrototypeBase » Prototype/Item » Prototype/ItemWithLabel » Prototype/SelectionTool » Prototype/DeconstructionItem


A deconstruction planner.


Prototype/DeconstructionItem — deconstruction-item
entity_filter_count::Types/ItemStackIndex (optional)
tile_filter_count::Types/ItemStackIndex (optional)
Inherited from Prototype/SelectionTool
alt_selection_color::Color
alt_selection_cursor_box_type::CursorBoxType
alt_selection_mode::table of string
selection_color::Color
selection_cursor_box_type::CursorBoxType
selection_mode::table of string
alt_entity_filter_mode::string (optional)
alt_entity_filters::table of string (optional)
alt_entity_type_filters::table of string (optional)
alt_tile_filter_mode::string (optional)
alt_tile_filters::table of string (optional)
always_include_tiles::bool (optional)
entity_filter_mode::string (optional)
entity_filters::table of string (optional)
entity_type_filters::table of string (optional)
mouse_cursor::string (optional)
show_in_library::bool (optional)
tile_filter_mode::string (optional)
tile_filters::table of string (optional)
Inherited from Prototype/ItemWithLabel
default_label_color::Color (optional)
draw_label_for_cursor_render::bool (optional)
Inherited from Prototype/Item
icons, icon, icon_size (IconSpecification)::IconSpecification
stack_size::ItemCountType
burnt_result::string (optional)
dark_background_icons, dark_background_icon, icon_size (IconSpecification)::IconSpecification (optional)
default_request_amount::ItemCountType (optional)
flags::ItemPrototypeFlags (optional)
fuel_acceleration_multiplier::double (optional)
fuel_category::string (optional)
fuel_emissions_multiplier::double (optional)
fuel_glow_color::Color (optional)
fuel_top_speed_multiplier::double (optional)
fuel_value::Energy (optional)
pictures::SpriteVariations (optional)
place_as_tile::PlaceAsTile (optional)
place_result::string (optional)
placed_as_equipment_result::string (optional)
rocket_launch_product::ItemProductPrototype (optional)
rocket_launch_products::table (array) of ItemProductPrototype (optional)
subgroup::string (optional)
wire_count::ItemCountType (optional)
Inherited from PrototypeBase
name::string
type::string
localised_description::LocalisedString (optional)
localised_name::LocalisedString (optional)
order::Order (optional)

Optional properties

This prototype inherits all the properties from Prototype/SelectionTool.

entity_filter_count

Type: Types/ItemStackIndex
Default: 0

tile_filter_count

Type: Types/ItemStackIndex
Default: 0

Differing defaults

show_in_library defaults to true instead of false. show_in_library is unused as of 0.18.13 as the ability to show any selection tools in the blueprint library was removed.

Mandatory values

Deconstruction planners must have a stack size of 1.

Ignored properties

Prototype/DeconstructionItem ignores the following properties that it inherits from Prototype/SelectionTool:

  • selection_mode (forced to be "deconstruct")
  • alt_selection_mode (forced to be "cancel-deconstruct")
  • always_include_tiles (forced to be false)
  • entity_filters
  • entity_type_filters
  • tile_filters
  • entity_filter_mode
  • tile_filter_mode
  • alt_entity_filters
  • alt_entity_type_filters
  • alt_tile_filters
  • alt_entity_filter_mode
  • alt_tile_filter_mode