Skip to content

Commit

Permalink
compat and better README
Browse files Browse the repository at this point in the history
  • Loading branch information
louisponet committed Oct 20, 2019
1 parent 70c3dc5 commit 4ba2b0d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ version = "0.1.0"
[deps]
Parameters = "d96e819e-fc66-5662-9728-84c9c7592b0a"

[compat]
Parameters = "^0"
julia = "^1"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ECS (Entity Component System)
# ECS (Entity Component System)
[![Build Status](https://travis-ci.org/louisponet/ECS.jl.svg?branch=master)](https://travis-ci.org/louisponet/ECS.jl)
[![Coverage Status](https://coveralls.io/repos/github/louisponet/ECS.jl/badge.svg?branch=master)](https://coveralls.io/github/louisponet/ECS.jl?branch=master)

Expand All @@ -20,8 +20,8 @@ Each `ComponentData` should be purely a store for data, with no more logic attac

### System & SystemStage
This where all the logic should take place. Each system should be an empty struct [(except for maybe holding settings info)](https://github.com/louisponet/Glimpse.jl/blob/43d9e0d6f116343324b4a083d3cb80943225ac4e/src/systems/rendering/depthpeeling.jl#L18) that subtypes `System` and overloads 2 functions:
- `ECS.update(::System, m::AbstractManager)`
- `ECS.requested_components(::System)`
- `ECS.update(::System, m::AbstractManager)`
- `ECS.requested_components(::System)`

The first one will be used to perform each update, i.e. perform the system's main logic, while the latter is used when the system is added to an `AbstractManager` to make sure that all `Component`s that the system cares for are present.

Expand Down

0 comments on commit 4ba2b0d

Please sign in to comment.