-
-
Save rubenwardy/7c515e6d1a08bfdd1710b88bb14f5f8e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function company.load() | |
local table = minetest.deserialize(storage:get_string("companies")) or {} | |
_.map(table, function(v) | |
local comp = company.Company:new() | |
assert(comp:from_table(v)) | |
company.register_company(comp.name, comp) | |
end) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment