mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-02 04:13:58 -04:00
Add helper functions to container. Allow name to be gotten
This commit is contained in:
parent
6cd66e6737
commit
55ae5fd987
8 changed files with 97 additions and 2 deletions
|
@ -63,10 +63,14 @@ function Component:__initialize(...)
|
|||
return component
|
||||
end
|
||||
|
||||
--- Returns true if the Component has a name.
|
||||
-- @return True if the Component has a name, false otherwise
|
||||
function Component:hasName()
|
||||
return self.__name and true or false
|
||||
end
|
||||
|
||||
--- Returns the name of the Component.
|
||||
-- @return Name of the Component
|
||||
function Component:getName()
|
||||
return self.__name
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue