mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-01 20:03:55 -04:00
Document full project. Lots of small fixes
This commit is contained in:
parent
f6669b2e63
commit
69a9e83759
14 changed files with 342 additions and 156 deletions
|
@ -1,4 +1,5 @@
|
|||
-- Worlds
|
||||
--- Worlds
|
||||
-- Container for registered Worlds
|
||||
|
||||
local PATH = (...):gsub('%.[^%.]+$', '')
|
||||
|
||||
|
@ -6,6 +7,9 @@ local Type = require(PATH..".type")
|
|||
|
||||
local Worlds = {}
|
||||
|
||||
--- Registers a World.
|
||||
-- @param name Name to register under
|
||||
-- @param world World to register
|
||||
function Worlds.register(name, world)
|
||||
if (type(name) ~= "string") then
|
||||
error("bad argument #1 to 'Worlds.register' (string expected, got "..type(name)..")", 3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue