From Call of Duty Esports Wiki
Revision as of 22:37, 5 August 2020 by RheingoldRiver (talk | contribs) ([ST] rm log)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

local util_args = require("Module:ArgsUtil")
local util_vars = require("Module:VarsUtil")

local p = {}
function p.main(frame)
	local args = util_args.merge()
	local Entity = require('Module:' .. args.entityType)
	local object = Entity(args[1], args)
	if not args[2] then
		return object:get(args.len)
	return object[args[2]](object, args)
return p