# esu

> Entity-System-Universe, a pattern similar to entity-component-system.

Latest version **0.1.0** (published 2015-10-20) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install esu
pnpm add esu
yarn add esu
bun add esu
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2015-10-20 |
| First published | 2015-10-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Samm Cooper |
| Maintainers | koopero |
| Keywords | entity, system, universe, component, ecs |

## Links

- npm: https://www.npmjs.com/package/esu
- Repository: https://github.com/koopero/esu
- Issues: https://github.com/koopero/esu/issues
- npm.io page: https://npm.io/package/esu

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^3.10.1

## Recent versions

- 0.1.0 (latest) — 2015-10-20

## README

# Example

```javascript
var esu = require('esu')
var universe = new esu.Universe

var counter = universe.system( 'counter', {
  'addEntity': function ( entity, data ) {
    this.component( entity, parseInt( data ) || 0 )
  },

  'increment': function () {
    this.map( function ( entity ) {
      var value = this.component( entity )
      value = value + 1
      this.component( entity, value )
    })
  }
} )

var entity = universe.entity( { counter: 1 } )

counter.increment()
```


# Status

This module is under construction.

---
_Source: https://npm.io/package/esu · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
