LuaEquipmentPrototype

class LuaEquipmentPrototype - sort
name :: string [R] Name of this prototype.
type :: string [R] Type of this equipment prototype.
order :: string [R] Order string of this prototype.
localised_name :: LocalisedString [R]
localised_description :: LocalisedString [R]
shape :: table [R] Shape of this equipment prototype.
take_result :: LuaItemPrototype [R] The result item when taking this equipment out of an equipment grid.
energy_production :: double [R] The max power generated by this equipment.
shield :: float [R] The shield value of this equipment.
energy_per_shield :: double [R] The energy per shield point restored.
logistic_parameters :: table [R] The logistic parameters for roboport equipment.
energy_consumption :: double [R]
movement_bonus :: float [R]
night_vision_tint :: Color [R]
energy_source :: LuaElectricEnergySourcePrototype [R] The energy source prototype for the equipment.
equipment_categories :: array of string [R] Category names for this equipment.
burner_prototype :: LuaBurnerPrototype [R] The burner energy source prototype this equipment uses or nil.
electric_energy_source_prototype :: LuaElectricEnergySourcePrototype [R] The electric energy source prototype this equipment uses or nil.
background_color :: Color [R] The background color of this equipment prototype.
valid :: boolean [R] Is this object valid?
help() → string All methods, and properties that this object supports.

Prototype of a modular equipment.

name :: string [Read-only]

Name of this prototype.

type :: string [Read-only]

Type of this equipment prototype.

order :: string [Read-only]

Order string of this prototype.

localised_name :: LocalisedString [Read-only]

localised_description :: LocalisedString [Read-only]

shape :: table [Read-only]

Shape of this equipment prototype. It is a table:

  • width :: uint
  • height :: uint
  • points :: array of point (optional): A point is a table with x and y values. Only set when the shape is "manual"

take_result :: LuaItemPrototype [Read-only]

The result item when taking this equipment out of an equipment grid. nil if there is no result item.

energy_production :: double [Read-only]

The max power generated by this equipment.

shield :: float [Read-only]

The shield value of this equipment. 0 for non-shield equipment.

energy_per_shield :: double [Read-only]

The energy per shield point restored. 0 for non-shield equipment.

logistic_parameters :: table [Read-only]

The logistic parameters for roboport equipment.

Table with the following fields:
  • spawn_and_station_height :: float
  • charge_approach_distance :: float
  • logistic_radius :: float
  • construction_radius :: float
  • charging_station_count :: uint
  • charging_distance :: float
  • charging_station_shift :: Vector
  • charging_energy :: double
  • charging_threshold_distance :: float
  • robot_vertical_acceleration :: float
  • stationing_offset :: Vector
  • robot_limit :: uint
  • logistics_connection_distance :: float

energy_consumption :: double [Read-only]

movement_bonus :: float [Read-only]

Can only be used if this is MovementBonusEquipmentPrototype
night_vision_tint :: Color [Read-only]

Can only be used if this is NightVisionEquipmentPrototype
energy_source :: LuaElectricEnergySourcePrototype [Read-only]

The energy source prototype for the equipment.

equipment_categories :: array of string [Read-only]

Category names for this equipment. These categories will be used to determine whether this equipment is allowed in a particular equipment grid.

burner_prototype :: LuaBurnerPrototype [Read-only]

The burner energy source prototype this equipment uses or nil.

electric_energy_source_prototype :: LuaElectricEnergySourcePrototype [Read-only]

The electric energy source prototype this equipment uses or nil.

background_color :: Color [Read-only]

The background color of this equipment prototype.