amethyst / amethyst/rustrogueliketutorial

Section 1.9 missing some rename mentions

Đang mở
#136 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Rust
Star
970
Fork
166
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Some renames which were done in the source code were not mentioned in the book which causes confusion as the code snippets don't match up with the code from the previous chapter.

Specifically, the following renames are not mentioned in the book.
- structure `WantsToDrinkPotion` to `WantsToUseItem`
- field `potion` to `item` of the above structure
- variable `wants_drink` to `useitem` in the `run` method of `PotionUseSystem`

Also, the renames of all instances where the above were used in `inventory_system.rs` and `main.rs`.

Thank you for this amazing book !

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.