mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-02 04:13:58 -04:00
Added Instance:clear
This commit is contained in:
parent
713956cc6e
commit
fdb7fe4849
1 changed files with 6 additions and 0 deletions
|
@ -211,6 +211,12 @@ function Instance:emit(eventName, ...)
|
||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- Removes all entities from the Instance
|
||||||
|
-- @return self
|
||||||
|
function Instance:clear()
|
||||||
|
self.entities:clear()
|
||||||
|
end
|
||||||
|
|
||||||
return setmetatable(Instance, {
|
return setmetatable(Instance, {
|
||||||
__call = function(_, ...) return Instance.new(...) end,
|
__call = function(_, ...) return Instance.new(...) end,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue