ECSx
▼
Project version
v0.5.2
v0.5.1
v0.5.0
v0.4.0
v0.3.1
v0.3.0
v0.2.0
v0.1.1
v0.1.0
GUIDES
Modules
Mix
Tasks
API Reference
Modules
Mix Tasks
Installation
Elixir and erlang/OTP
Phoenix
Create project
Install ECSx
Setup ECSx
Changelog
v0.5.2 (2025-01-25)
v0.5.1 (2024-01-24)
v0.5 (2023-09-23)
v0.4 (2023-06-02)
v0.3.1 (2023-01-12)
v0.3.0 (2023-01-03)
v0.2.0 (2022-08-26)
v0.1.1 (2022-07-21)
v0.1.0 (2022-07-15)
Upgrade Guide
0.4 to 0.5
0.3.x to 0.4
ECS Design
Entities and Components
Systems
one-to-many associations
Common Caveats
Database Queries
External Requests
Tutorial Project
Initial Setup
Backend Basics
Defining Component Types
Our First System
Targeting & Attacking
Cooldowns
Death & Destruction
Initializing Component Data
Web Frontend with LiveView
Player Auth
Client Input via LiveView
Handling Client Events
Creating a Phoenix Route
Loading Screen
Player GUI using SVG
Projectile Animations
Limiting Ship Movement
ECSx
Sections
Configuration
Summary
Functions
manager/0
manager_path/0
persist_interval/0
tick_rate/0
ECSx.ClientEvents
Summary
Types
id/0
Functions
add/2
get_and_clear/0
ECSx.Component
Sections
Usage
Summary
Types
id/0
value/0
Callbacks
add/3
at_least/1
at_most/1
between/2
exists?/1
get/2
get_all/0
remove/1
search/1
update/2
ECSx.Manager
Sections
components/0 and systems/0
setup/0 and startup/0
Example
Summary
Callbacks
setup/0
startup/0
ECSx.Persistence.Behaviour
Sections
persist_components/2 and retrieve_components/1
Configuring ECSx to use a custom persistence adapter
Summary
Types
components/0
Callbacks
persist_components/2
retrieve_components/1
ECSx.System
Summary
Callbacks
run/0
ECSx.Tag
Summary
Types
id/0
Callbacks
add/1
exists?/1
get_all/0
remove/1
Exceptions
ECSx.AlreadyExistsError
ECSx.MultipleResultsError
ECSx.NoResultsError
mix ecsx.gen.component
mix ecsx.gen.system
mix ecsx.gen.tag
mix ecsx.setup
Search documentation of ECSx
Settings
View Source
ECSx.MultipleResultsError
exception
(ECSx v0.5.2)
×