mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-01 20:03:55 -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
|
||||
end
|
||||
|
||||
--- Removes all entities from the Instance
|
||||
-- @return self
|
||||
function Instance:clear()
|
||||
self.entities:clear()
|
||||
end
|
||||
|
||||
return setmetatable(Instance, {
|
||||
__call = function(_, ...) return Instance.new(...) end,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue