Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Chapter 9: May not need `maintain` after each RunState call to dispatch

オープン
#173 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
45/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
rust
領域
documentation

調査の方向性

第9章の「Using Items」セクションから始め、引用されている RunState::PreRun の例、特に self.run_systems() と self.ecs.maintain() を調査します。説明されているポーション使用のフローと、システム実行中に maintain がすでに呼び出されているかを確認します。チュートリアルの本文と例が、いつメンテナンスが必要なのかを正確に説明できていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

In this section of Chapter 9 :

Testing this with cargo run gives a surprise: the potion isn't deleted after use! This is because the ECS simply marks entities as dead - it doesn't delete them in systems (so as to not mess up iterators and threading). So after every call to dispatch, we need to add a call to maintain. In main.ecs:

RunState::PreRun => {
    self.run_systems();
    self.ecs.maintain();
    newrunstate = RunState::AwaitingInput;
}

Maybe it is not necessary to do this here, because the maintain is called in self.run_systems();.

the potion isn't deleted after use!

It is because return to RunState::AwaitingInput when use the potion, It will keep waiting for input, and then keypress i, jump to the ShowInventory again.

主要言語
Rust
スター
967
フォーク
165
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

amethyst/rustrogueliketutorial のほかの issue

amethyst/rustrogueliketutorial の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。