-
Notifications
You must be signed in to change notification settings - Fork 144
Refactor such that libcraft contains all generated files (almost). #461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
7b8010b
Refactoring ongoing
Miro-Andrin ae66bf0
Added libcraft-inventory
Tracreed ed09cd9
Merge pull request #1 from Tracreed/libcraft-inventory
Miro-Andrin f0f785b
cha-cha-cha-Changes
Miro-Andrin 71856b4
Turn and face the stranger
Miro-Andrin 569366f
Ch-ch-Changes
Miro-Andrin e11f723
Don't want to be a richer one
Miro-Andrin fb26154
Ch-ch-ch-ch-Changes
Miro-Andrin a6971fd
(Turn and face the stranger)
Miro-Andrin ac9edf0
hHAHAHA
Tracreed ceb0266
Changed stuff as a test
Tracreed 1646e78
Changed stuff.
Tracreed 62ba993
Something
Tracreed dc838b5
Fixed a problem
Tracreed e04d562
Fixed most things. Some problems left.
Tracreed 0895297
Merge branch 'refactor' into refactor-new
Miro-Andrin 163187e
Merge pull request #4 from Tracreed/refactor-new
Miro-Andrin 560cd5c
Finnished up.
Miro-Andrin a85db46
removed Filled from use.
Miro-Andrin 14956ca
Merge remote-tracking branch 'upstream/main' into refactor
Tracreed 9123aa7
Ongoing refactor.
Miro-Andrin c938abc
Fixed so it compiles and runs fine.
Tracreed d803603
Fix missing offhand area in inventory.json.
Tracreed b82ae7d
Merge pull request #5 from Tracreed/refactor
Miro-Andrin 59e00b2
Clippy issues.
Miro-Andrin 59d3d7b
Appease the clippy gods.
Tracreed 52f058a
Merge pull request #6 from Tracreed/refactor
Miro-Andrin 42229e2
cargo fmt
Tracreed d87f78b
Merge pull request #7 from Tracreed/refactor
Miro-Andrin 67f7544
Added clippy ignore to inventory generator.
Tracreed 407b31f
Just fixed the generator instead. No need to ignore clippy.
Tracreed 7d1b05b
Fix Some(slot + 0)
Tracreed 1fdf4a7
Fixed `let slot = index - 0;`
Tracreed 715bf9b
Merge pull request #8 from Tracreed/refactor
Miro-Andrin dddfc35
Removed unnecessary borrows.
Tracreed 044e608
Added _ to unread struct field.
Tracreed e7e8a96
Derived default where it was possible.
Tracreed d823f2d
Spelling error.
Tracreed 00c1d73
Merge pull request #9 from Tracreed/refactor
Miro-Andrin 0910497
`cargo fmt` wants new lines at the end of files.
Tracreed 8c5f47a
Merge pull request #10 from Tracreed/refactor
Miro-Andrin 31ecb3a
Merge remote-tracking branch 'upstream/main' into refactor
Tracreed ab6e54d
Fix merge issues.
Tracreed e883f3a
Removed commented out code.
Tracreed 4dfe403
Format doc comment better.
Tracreed ac3130e
Remove default derive on HotbarSlot.
Tracreed f3eaca3
Clarify why the `unreachable!()` is unreachable.
Tracreed b386b7b
Add trailing newline.
Tracreed 52e7123
Update feather/base/src/anvil/entity.rs
Miro-Andrin 39bab9e
Merge branch 'refactor' into refactor
Tracreed 9e03bb6
Merge pull request #11 from Tracreed/refactor
Miro-Andrin 768c19d
set_slot takes a reference instead.
Tracreed fe06cfe
remove clone from handle_click_window.
Tracreed 249b59b
Made damage an i32 on ItemStackMeta
Miro-Andrin 2994058
Changed code to use filter_map.
Miro-Andrin c44b012
Merge pull request #12 from Tracreed/refactor
Miro-Andrin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| use generated::Biome; | ||
| use libcraft_core::Biome; | ||
|
|
||
| use crate::{CHUNK_HEIGHT, CHUNK_WIDTH}; | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,9 +38,3 @@ impl HotbarSlot { | |
| Ok(()) | ||
| } | ||
| } | ||
|
|
||
| impl Default for HotbarSlot { | ||
| fn default() -> Self { | ||
| HotbarSlot(0) | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.