/tg/ Station 13 - Modules - TypesVar Details - Proc Details

bluespace_vendor

Vars

connected_machineThe bluespace sender that this vendor is connected to
empty_tanksAmount of usable tanks inside the machine
gas_priceStores the current price of the gases inside the tank
internal_tankReference to the current in use tank to be filled
map_spawnedHelper for mappers, will automatically connect to the sender (ensure to only place one sender per map)
modeCurrent operating mode of the vendor
new_tankTypepath to the tanks that vendor will make
pumpingIs the vendor trying to move gases from the network to the tanks?
purchased_gas_mixMixture of purchased gas, used only for checking prices
selected_gasPath of the gas selected from the UI to be pumped inside the tanks
tank_costBase price of the tank
tank_filling_amountAmount of the tank already filled with gas (from 0 to 100)
tank_purchasedHas a tank been dispensed from the machine?

Procs

check_modeCheck what is the current operating mode
check_priceCheck the price of the current tank, if the user doesn't have the money the gas will be merged back into the network
register_machineRegister the sender as the connected_machine
unregister_machineUnregister the connected_machine (either when qdel this or the sender)

Var Details

connected_machine

The bluespace sender that this vendor is connected to

empty_tanks

Amount of usable tanks inside the machine

gas_price

Stores the current price of the gases inside the tank

internal_tank

Reference to the current in use tank to be filled

map_spawned

Helper for mappers, will automatically connect to the sender (ensure to only place one sender per map)

mode

Current operating mode of the vendor

new_tank

Typepath to the tanks that vendor will make

pumping

Is the vendor trying to move gases from the network to the tanks?

purchased_gas_mix

Mixture of purchased gas, used only for checking prices

selected_gas

Path of the gas selected from the UI to be pumped inside the tanks

tank_cost

Base price of the tank

tank_filling_amount

Amount of the tank already filled with gas (from 0 to 100)

tank_purchased

Has a tank been dispensed from the machine?

Proc Details

check_mode

Check what is the current operating mode

check_price

Check the price of the current tank, if the user doesn't have the money the gas will be merged back into the network

register_machine

Register the sender as the connected_machine

unregister_machine

Unregister the connected_machine (either when qdel this or the sender)