Holy shit I just wrote documentation

This commit is contained in:
Justin van der Leij 2018-03-07 11:05:30 +01:00
parent 8810005217
commit 63d8c39b31
9 changed files with 159 additions and 111 deletions

View file

@ -56,14 +56,14 @@ function Entity:apply()
return self
end
--- Gets a Component from the Entity
--- Gets a Component from the Entity.
-- @param component The Component to get
-- @return The Bag from the Component
function Entity:get(component)
return self.components[component]
end
--- Returns true if the Entity has the Component
--- Returns true if the Entity has the Component.
-- @params component The Component to check against
-- @return True if the entity has the Bag. False otherwise
function Entity:has(component)