Components
Container for registered ComponentClasses.
Require
Section titled “Require”If the concord folder is in the root directory of your game, you can import this module like so:
concord.component = require('concord.components')Components
Section titled “Components”Use Components.get(name), Components.has(name), or Components[name] / Components.name (same as get; errors if missing).
Fields
Section titled “Fields”| Name | Type | Description |
|---|---|---|
__REJECT_PREFIX |
string | Reject prefix for filter lists ("!"); see Components.reject and FilterDefinition |
Methods
Section titled “Methods”| Method | Description |
|---|---|
| Components.has | Returns true if the container has the ComponentClass with the specified name |
| Components.reject | Prefix a component’s name with the currently set Reject Prefix |
| Components.try | Returns true and the ComponentClass if one was registered with the specified name |
| Components.get | Returns the ComponentClass with the specified name |