LuaFluidPrototype

class LuaFluidPrototype
valid :: boolean [R] Is this object valid?
name :: string [R] Name of this prototype.
localised_name :: LocalisedString [R]
default_temperature :: double [R] Default temperature of the fluid.
max_temperature :: double [R] Maximum temperature the fluid can reach.
heat_capacity :: double [R] How much energy the fluid will generate at max temperature assuming 100% efficiency steam engine.
pressure_to_speed_ratio :: double [R] How much pressure -- difference in fluid levels -- will be converted to speed.
flow_to_energy_ratio :: double [R] How much will a volume of fluid transferred be converted to energy.
max_push_amount :: double [R]
ratio_to_push :: double [R]
order :: string [R] Order string for this prototype.
group :: LuaGroup [R] Group of this prototype.
subgroup :: LuaGroup [R] Subgroup of this prototype.

Prototype of a fluid.

valid :: boolean [Read-only]

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.

name :: string [Read-only]

Name of this prototype.

localised_name :: LocalisedString [Read-only]

default_temperature :: double [Read-only]

Default temperature of the fluid.

max_temperature :: double [Read-only]

Maximum temperature the fluid can reach.

heat_capacity :: double [Read-only]

How much energy the fluid will generate at max temperature assuming 100% efficiency steam engine.

pressure_to_speed_ratio :: double [Read-only]

How much pressure -- difference in fluid levels -- will be converted to speed.

flow_to_energy_ratio :: double [Read-only]

How much will a volume of fluid transferred be converted to energy.

max_push_amount :: double [Read-only]

ratio_to_push :: double [Read-only]

order :: string [Read-only]

Order string for this prototype.

group :: LuaGroup [Read-only]

Group of this prototype.

subgroup :: LuaGroup [Read-only]

Subgroup of this prototype.