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”Fields
Section titled “Fields”| Name | Type | Description |
|---|---|---|
Entity |
Entity | |
Component |
Component | |
Components |
Components | |
System |
System | |
World |
World | |
utils |
Utils | |
builtins |
Builtins | |
_VERSION |
string | |
_DESCRIPTION |
string | |
_LICENCE |
string |
Classes
Section titled “Classes”- Component — A pure data container that is contained by a single entity.
- Entity — An object that exists in a world. An entity
- Filter — List of component names for one filter (
!nameto reject). - List — Data structure that allows for fast removal at the cost of order.
- System — Iterates over Entities. From these Entities it gets Components and modifies them.
- World — A collection of Systems and Entities.
Sub-modules
Section titled “Sub-modules”- Components — Container for registered ComponentClasses
- Type — Helper module to do easy type checking for Concord types
- Utils — Helper module for misc operations
- Overview — All the built-in components.