Skip to content

Local Mining Process

Nhan Ho edited this page Oct 17, 2016 · 1 revision

The source code of MiningProcess is in src/components/processes/mining/mining.ts To start a MiningProcess, use __("mining sourceID roomName").

When a MiningProcess is running, it will start one MinerProcess and a number of CourierProcess to do the task.

Note that there are two different types of miner processes right now, MinerProcess and MinerProcessWithLink, the latter would be used when there is a Storage right next to a mining spot such that the miner can deposit its energy directly. No courier will be spawned in this case. Right now, it only considers Storage, but future structures (Link, Terminal etc.) will be added.

Clone this wiki locally