Skip to content
ConcordConcordConcord

Components

Container for registered ComponentClasses.

If the concord folder is in the root directory of your game, you can import this module like so:

concord.component = require('concord.components')

Use Components.get(name), Components.has(name), or Components[name] / Components.name (same as get; errors if missing).

Name Type Description
__REJECT_PREFIX string Reject prefix for filter lists ("!"); see Components.reject and FilterDefinition
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