Module:ShipAsset

Revision as of 12:35, 12 May 2021 by Botkaze (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:ShipAsset/doc

local BaseAsset = require('Module:BaseAsset')
local Ship = require('Module:Ship')

local ShipAsset = BaseAsset()

function ShipAsset:create_object(args)
	if args.name then
		return Ship(args.name, args.model)
	else
		return Ship(args[1])
	end
end

return ShipAsset