Concord
A feature-complete ECS library.
Require
Section titled “Require”If the concord folder is in the root directory of your game, you can import this module like so:
Concord = require('concord')Concord
Section titled “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.
Fields
Section titled “Fields”| 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 |
Classes
Section titled “Classes”- 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 (
!nameto reject, orComponents.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.
Sub-modules
Section titled “Sub-modules”- 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.