Changes

Jump to: navigation, search

Module:Data

260 bytes added, 5 years ago
Allow accessing directly to the data module.
----------
-- @exports `D`: Interface to interact with [[Module:Data/data]].
return setmetatable( D, { __call = function( t, ... ) assert( t == D );  local arguments = { size = select( '#', ... ), ... };  local data = DATA; for i = 1, arguments.size do data = (data or {})[ arguments[ i ] ]; end  return data; end} );
-- </pre>
Bureaucrats, System administrator, Administrators
57,479
edits

Navigation menu