demipixel / factorio-blueprint

Import and Export blueprint strings automagically with this handy dandy blueprint API
MIT License
105 stars 30 forks source link

Implement blueprint books #15

Closed aekrylov closed 7 years ago

aekrylov commented 7 years ago

Blueprint.getBook(str) parses blueprint book from a string. Blueprint(data) can now create a blueprint from an object already parsed. Some common pieces of code are moved to the separate util module.

aekrylov commented 7 years ago

also resolves #6

demipixel commented 7 years ago

restore original code style in some places

Haha, I can assure you that you didn't catch all of them, but luckily I'm fine with the changes :P