mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-02 20:33:54 -04:00
Holy shit I just wrote documentation
This commit is contained in:
parent
8810005217
commit
63d8c39b31
9 changed files with 159 additions and 111 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue