Skip to content

Instantly share code, notes, and snippets.

@rubenwardy
Created July 15, 2017 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rubenwardy/7c515e6d1a08bfdd1710b88bb14f5f8e to your computer and use it in GitHub Desktop.
Save rubenwardy/7c515e6d1a08bfdd1710b88bb14f5f8e to your computer and use it in GitHub Desktop.
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