ESEngine provides a rich set of modules that can be imported as needed.
| Module | Package | Description |
|---|
| Behavior Tree | @esengine/behavior-tree | AI behavior tree with visual editor |
| State Machine | @esengine/fsm | Finite state machine for character/AI states |
| Module | Package | Description |
|---|
| Timer | @esengine/timer | Timer and cooldown system |
| Spatial | @esengine/spatial | Spatial queries, AOI management |
| Pathfinding | @esengine/pathfinding | A* pathfinding, NavMesh navigation |
| World Streaming | @esengine/world-streaming | Chunk-based world streaming for open worlds |
| Module | Package | Description |
|---|
| Blueprint | @esengine/blueprint | Visual scripting system |
| Procgen | @esengine/procgen | Noise functions, random utilities |
| Module | Package | Description |
|---|
| Network | @esengine/network | Multiplayer game networking |
| Transaction | @esengine/transaction | Game transactions with distributed support |
All modules can be installed independently:
# Install a single module
npm install @esengine/behavior-tree
# Or use CLI to add to existing project
npx @esengine/cli add behavior-tree
All modules are pure TypeScript and compatible with:
- Cocos Creator 3.x
- Laya 3.x
- Node.js
- Browser