Skip to content

Commit d3be879

Browse files
committed
[DOCS] Syntax fixes
1 parent 7b7a3ce commit d3be879

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

Docs/PipeECS.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ They can be easily copied, serialized, subset, etc.
3333
### Id Scope
3434
**Scopes** represent guaranteed access to a subset of component pools of a **Context** or of another **Scope**.
3535

36-
This means while with the context you can work with any component. In an scope you are limited to a few.
36+
This means while with the context you can work with any component. In a scope you are limited to a few.
3737

3838
Some examples:
39-
- An scope that can **read** *Location* and *Velocity* **can't read** *Player*.
40-
- An scope that can **write** *Location* **can read** *Location*.
41-
- An scope that can **read** *Location* **can't write** *Location*.
39+
- A scope that can **read** *Location* and *Velocity* **can't read** *Player*.
40+
- A scope that can **write** *Location* **can read** *Location*.
41+
- A scope that can **read** *Location* **can't write** *Location*.
4242

4343
In the case of a Scope being a **subset of another Scope**, it simply doesn't allow the use of components that are not in the parent.
44-
- An scope that can **read** *Location* **can't** have a parent that **can't read or write** *Velocity*.
45-
- An scope that can **read** *Location* **can't** have a parent that **can't read or write** *Velocity*.
44+
- A scope that can **read** *Location* **can't** have a parent that **can't read or write** *Velocity*.
45+
- A scope that can **read** *Location* **can't** have a parent that **can't read or write** *Velocity*.
4646

4747
As to why we need scopes, two main reasons: **Performance** and **Thread-safety**
4848
- Scopes **increase performance (significantly)** by caching the pools they can read or write.
@@ -91,16 +91,16 @@ context.Remove<Location>(id); // Removes component
9191
```cpp
9292
p::IdContext context;
9393

94-
// An scope that can READ Location
94+
// Scope that can READ Location
9595
p::TScope<Location> scope1(context);
9696

97-
// An scope that can READ Location and Velocity
97+
// Scope that can READ Location and Velocity
9898
p::TScope<Location, Velocity> scope2(context);
9999

100-
// An scope that can WRITE Location, and READ Location and Velocity
100+
// Scope that can WRITE Location, and READ Location and Velocity
101101
p::TScope<p::Writes<Location>, Velocity> scope3(context);
102102

103-
// An scope that can WRITE or READ Location and Velocity
103+
// Scope that can WRITE or READ Location and Velocity
104104
p::TScope<p::Writes<Location, Velocity>> scope4(context);
105105
```
106106

0 commit comments

Comments
 (0)