Skip to content

Commit 2feb9c9

Browse files
committed
feat(多线程模式): update article.md; update code;
1 parent 0ce5890 commit 2feb9c9

File tree

11 files changed

+727
-145
lines changed

11 files changed

+727
-145
lines changed

doc/TODO.org

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,8 @@ TODO handle 依赖隔离模式
324324

325325
* TODO 简化抽象代码
326326

327+
* TODO 简化文中的示例代码
328+
327329
* TODO 简化UML
328330

329331

@@ -351,7 +353,19 @@ TODO handle 依赖隔离模式
351353
* TODO 在给出代码->结束一段代码的分析时,给出承上启下语句:总结上段代码,引出下段代码
352354

353355

354-
* TODO 统一给出代码:首先,我们看下xxx;然后,我们看下xxx;。。。
356+
# * TODO 统一给出代码:首先,我们看下xxx;然后,我们看下xxx;。。。
357+
* TODO 给出代码
358+
359+
refer to 多线程模式:
360+
使用总-分结构:
361+
总:
362+
首先,我们看下xxx代码;。。。
363+
分:
364+
### [步骤1]
365+
首先,我们看下xxx代码;。。。
366+
### [步骤2]
367+
首先,我们看下xxx代码;。。。
368+
355369

356370

357371
* TODO “运行代码”要说明运行Client代码
@@ -411,6 +425,11 @@ e.g. most, commonlib
411425

412426

413427

428+
* TODO 改错
429+
430+
ECS:heros ->heroes
431+
432+
414433
* TODO 整理每个package代码,给出运行代码的script;并在README中说明如何运行,怎样运行
415434

416435

packages/ECS模式/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ loop(worldState, [update, renderOneByOne, renderInstances])
270270

271271

272272
我们来看下主循环相关代码:
273-
ecs_pattern_utils->World
273+
utils->World
274274
```ts
275275
export let loop = (worldState, [update, renderOneByOne, renderInstances]) => {
276276
worldState = update(worldState)
@@ -347,7 +347,7 @@ export let update = (superHeroState: superHeroState): superHeroState => {
347347

348348

349349
我们回到主循环代码,来看下更新之后的渲染相关的代码:
350-
ecs_pattern_utils->World
350+
utils->World
351351
```ts
352352
export let loop = (worldState, [update, renderOneByOne, renderInstances]) => {
353353
worldState = update(worldState)

0 commit comments

Comments
 (0)