Class Component
Inheritance
Object | Component 🡄 Object |
Properties
Component [ int ] | Array containing the child components. |
ComponentByName [ string ] | Returns a component based on the name. |
ComponentCount | Number of child components. |
Name | The name of the component. |
Owner | Returns the owner of this object. |
Tag | Free to use storage space (Useful for id's). |
Methods
findComponentByName ( name ) | Returns the component with this name. |
getComponent ( index ) | Returns the specific component. |
getComponentCount () | Returns the number of components attached to his component. |
getName () | Return the name. |
getOwner () | Returns the owner of this component. |
getTag () | Sets an integer value. |
setName ( newname ) | Changes the name. |
setTag ( tagvalue ) | Get the tag value. |
Inheritance
Properties
- Component [ int ]
-
Array containing the child components. Starts at 0. Readonly.
Type:
- ComponentByName [ string ]
-
Returns a component based on the name. Readonly.
Type:
- ComponentCount
-
Number of child components. Readonly.
Type:
`integer` - Name
-
The name of the component.
Type:
`string` - Owner
-
Returns the owner of this object. Nil if it has none.
Type:
- Tag
-
Free to use storage space (Useful for id's).
Type:
`integer`
Methods
- findComponentByName ( name )
-
Returns the component with this name.
Parameters:
- name
- getComponent ( index )
-
Returns the specific component.
Parameters:
- index integer
- getComponentCount ()
- Returns the number of components attached to his component.
- getName ()
- Return the name.
- getOwner ()
- Returns the owner of this component.
- getTag ()
- Sets an integer value. You can use this for ID's.
- setName ( newname )
-
Changes the name.
Parameters:
- newname string
- setTag ( tagvalue )
-
Get the tag value.
Parameters:
- tagvalue