Skip to content
ConcordConcordConcord

Concord

A feature-complete ECS library.

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

Concord = require('concord')

Entry point: local Concord = require("concord") (adjust the path to your package layout). Exports Entity, Component, Components, System, World, Filter, List, Type, utils, and builtins. Types are callable constructors, e.g. Concord.World(), Concord.Entity(world). Lowercase field names are deprecated compatibility aliases for the uppercase types.

Name Type Description
Entity Entity
Component Component
Components Components
System System
World World
Filter Filter
List List
Type Type
utils Utils
builtins Builtins
_VERSION string
_DESCRIPTION string
_LICENCE string
  • Component — A pure data container attached to a single Entity.
  • Entity — An object in a World that holds Components processed by Systems.
  • Filter — List of component names for one filter (!name to reject, or Components.reject).
  • List — Data structure that allows for fast removal at the cost of order.
  • System — Iterates over Entities, reads their Components, and updates game state.
  • World — A collection of Systems and Entities.
  • Components — Container for registered ComponentClasses.
  • Type — Runtime type predicates for Concord values (extension code, tooling, defensive checks).
  • Utils — Helper module for misc operations
  • Overview — All the built-in components.