Type
Runtime type predicates for Concord values (extension code, tooling, defensive checks).
Require
Section titled “Require”If the concord folder is in the root directory of your game, you can import this module like so:
concord.type = require('concord.type')Methods
Section titled “Methods”| Method | Description |
|---|---|
| Type.isCallable | Returns true if the value is a function or has a __call metamethod. |
| Type.isEntity | Returns true if the value is an Entity instance. |
| Type.isComponentClass | Returns true if the value is a registered ComponentClass (not a component instance). |
| Type.isComponent | Returns true if the value is a Component instance attached to an entity. |
| Type.isSystemClass | Returns true if the value is a SystemClass template (not a live system instance). |
| Type.isSystem | Returns true if the value is a System instance belonging to a World. |
| Type.isWorld | Returns true if the value is a World instance. |
| Type.isFilter | Returns true if the value is a Filter instance (internal pool driver; rarely needed in game code). |