Electric Vehicles Lib

by mknejp

Contains all the support code that allows for electric vehicles and their recharging. Powers the the Electric Vehicles mod.

8 years ago
0.14
13
Owner:
mknejp
Source:
N/A
Homepage:
https://mods.factorio.com/mods/mknejp...
License:
MIT
Created:
8 years ago
Latest Version:
0.2.8 (8 years ago)
Factorio version:
0.14
Downloaded by:
13 users

Support library containing all the logic required by Electric Vehicles to do its job. Useful for mods who want to make use of the functionality but are not interested in all the baggage prototypes that comes with Electric Vehicles. To do that simply register your own item and equipment prototypes using the remote interface which is described in remote.lua. See the electric-vehicles mod for a more involved usage example.

All the library does is recognize a special item called a transformer inside a vehicle's equipment grid, and consume its energy to fill the vehicle's energy buffer, allowing it to drive using electricity generated or stored in the equipment grid.