Skip to content

Commit 3b7f4e4

Browse files
ECS chapter structure (#288)
I intend to close and split #182 to improve both development and review workflows. This is a tiny PR to make reviewing that work less painful by reducing weird branch issues.
1 parent e4471e8 commit 3b7f4e4

File tree

11 files changed

+41
-82
lines changed

11 files changed

+41
-82
lines changed

code-validation/src/lib.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,20 @@ mod learn {
4444
mod ecs {
4545
#[doc = include_str!("../../content/learn/book/ecs/commands/_index.md")]
4646
mod commands {}
47+
#[doc = include_str!("../../content/learn/book/ecs/detecting-changes/_index.md")]
48+
mod detecting_changes {}
49+
#[doc = include_str!("../../content/learn/book/ecs/ecs-magic/_index.md")]
50+
mod ecs_magic {}
4751
#[doc = include_str!("../../content/learn/book/ecs/entities-components/_index.md")]
4852
mod entities_components {}
4953
#[doc = include_str!("../../content/learn/book/ecs/exclusive-world-access/_index.md")]
5054
mod exclusive_world_access {}
51-
#[doc = include_str!("../../content/learn/book/ecs/filtering-queries/_index.md")]
52-
mod filtering_queries {}
53-
#[doc = include_str!("../../content/learn/book/ecs/generic-systems/_index.md")]
54-
mod generic_systems {}
55-
#[doc = include_str!("../../content/learn/book/ecs/reliable-change-detection/_index.md")]
56-
mod reliable_change_detection {}
55+
#[doc = include_str!("../../content/learn/book/ecs/queries/_index.md")]
56+
mod queries {}
5757
#[doc = include_str!("../../content/learn/book/ecs/resources/_index.md")]
5858
mod resources {}
59-
#[doc = include_str!("../../content/learn/book/ecs/systems-queries/_index.md")]
60-
mod system_queries {}
59+
#[doc = include_str!("../../content/learn/book/ecs/systems/_index.md")]
60+
mod systems {}
6161
}
6262

6363
#[doc = include_str!("../../content/learn/book/game-logic/_index.md")]
Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
+++
2-
title = "Manipulating entities with commands"
3-
weight = 4
2+
title = "Commands queue up work"
3+
weight = 5
44
template = "book-section.html"
55
page_template = "book-section.html"
66
insert_anchor_links = "right"
77
+++
8-
9-
TODO: explain what commands are used for
10-
11-
TODO: explain that they only run at the end of the stage, mention that they have exclusive world access
12-
13-
TODO: show how to spawn, despawn and modify entities with commands
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
+++
2+
title = "Detecting changes"
3+
weight = 6
4+
template = "book-section.html"
5+
page_template = "book-section.html"
6+
insert_anchor_links = "right"
7+
+++
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
+++
2+
title = "Understanding the magic"
3+
weight = 8
4+
template = "book-section.html"
5+
page_template = "book-section.html"
6+
insert_anchor_links = "right"
7+
+++

content/learn/book/ecs/exclusive-world-access/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
+++
2-
title = "Exclusive `World` access"
3-
weight = 8
2+
title = "Exclusive world access"
3+
weight = 7
44
template = "book-section.html"
55
page_template = "book-section.html"
66
insert_anchor_links = "right"

content/learn/book/ecs/filtering-queries/_index.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

content/learn/book/ecs/generic-systems/_index.md

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
+++
2+
title = "Fetching data with queries"
3+
weight = 2
4+
template = "book-section.html"
5+
page_template = "book-section.html"
6+
insert_anchor_links = "right"
7+
+++

content/learn/book/ecs/reliable-change-detection/_index.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

content/learn/book/ecs/systems-queries/_index.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)