Commit graph

97 commits

Author SHA1 Message Date
Sculas
d4d4ba054f
refactor: remove println statements (#31)
This PR removes all println statements and logs them on trace level instead. Normally, libraries shouldn't print to stdout using println, since there's no control over them.
2022-10-17 13:18:25 -05:00
Ubuntu
69d30378e5 (cargo-release) version 0.2.0 2022-10-17 16:28:53 +00:00
mat
c9b4dccd7e
All block shapes & collisions (#22)
* start adding shapes

* add more collision stuff

* DiscreteCubeMerger

* more mergers

* start adding BitSetDiscreteVoxelShape::join

* i love rust 😃 😃 😃

* r

* IT COMPILES????

* fix warning

* fix error

* fix more clippy issues

* add box_shape

* more shape stuff

* make DiscreteVoxelShape an enum

* Update shape.rs

* also make VoxelShape an enum

* implement BitSet::clear

* add more missing things

* it compiles

W

* start block shape codegen

* optimize shape codegen

* make az-block/blocks.rs look better (broken)

* almost new block macro

* make the codegen not generate 'type'

* try to fix

* work more on the blocks macro

* wait it compiles

* fix clippy issues

* shapes codegen works

* well it's almost working

* simplify some shape codegen

* enum type names are correct

* W it compiles

* cargo check no longer warns

* fix some clippy issues

* start making it so the shape impl is on BlockStates

* insane code

* new impl compiles

* fix wrong find_bits + TESTS PASS!

* add a test for slab collision

* fix clippy issues

* ok rust

* fix error that happens when on stairs

* add test for top slabs

* start adding join_is_not_empty

* add more to join_is_not_empty

* top slabs still don't work!!

* x..=0 doesn't work in rust 😃 😃 😃 😃 😃 😃 😃 😃 😃 😃 😃 😃 😃 😃

* remove comment since i added more useful names

* remove some printlns

* fix walls in some configurations erroring

* fix some warnings

* change comment to \`\`\`ignore instead of \`\`\`no_run

* players are .6 wide not .8

* fix clippy's complaints

* i missed one clippy warning
2022-10-02 12:29:47 -05:00
mat
e9f88ce546 Publish everything* to crates.io
Except azalea-client since it's not ready yet
2022-09-05 10:36:48 -05:00
mat
f42d630544
Physics (#11)
* Put physics module in azalea-entity

* port aabb

* add more stuff to PositionXYZ

* azalea-physics

* important collision things

* more physics stuff

* backup because i'm about to delete shapes

* more shape stuff

* CubeVoxelShape

* no compile errors???

insane

* impl VoxelShape for ArrayVoxelShape

* Shapes stuff

* collide_x but it doesn't work yet

* binary_search

* it compiles

* Entity has bounding box

* Update discrete_voxel_shape.rs

* Entity::make_bounding_box

* ok i'm about to merge az-entity and az-world

might be a terrible idea which is why i'm committing first

* ok so i moved entity to world

* on_pos and move_entity compiles

* add send_position

* move collision stuff to collision module in az-physics

* dimension is no longer an Option

* start trying to do collision for the client

* collision works 🎉

* start adding palette resizing

* get_and_set (pain)

* it compiles but probably won't work

* add a test

* remove printlns

* add more tests for palette stuff

* ClientboundMoveVec3Packet -> ClientboundMoveEntityPosPacket

i think i changed this on accident once

* palette resizing works

todo: remove the printlns

* Remove printlns in palette.rs

* fix issues from merge

* fixes + work a bit more on physics

* Better entities (#19)

* well it compiles

* add tests to entity storage

* add suggestions in azalea-brigadier

* this probably causes ub

* fix brigadiersuggestions

* get rid of entityid

* test From<EntityMut> for EntityRef

* don't mention other libraries since there's too many

* fix warnings

* do todos in brigadier suggestions

* work on physics

* more physics stuff

* remove trait feature on az-block

i think rust gets confused and compiles the macro without the feature

* bump ahash

* aes tests in az-crypto

* optimize aes's deps

* fix crashes

* fix section_index for negative numbers and test

* fix BlockPos protocol implementation

* remove some debug prints

* prepare to add ai_step

* make ai step work

* clippy
2022-08-29 20:41:01 -05:00
Ubuntu
d818bce866 add suggestions in azalea-brigadier 2022-08-22 19:27:23 +00:00
mat
69f97dbf02 clippo the sequel 2022-07-31 18:05:41 -05:00
mat
248f752748 simplify error handling 2022-04-22 04:33:58 +00:00
mat
78e692efc3 move tests into tests directory 2022-04-18 19:45:32 -05:00
mat
b8ceb56e71 move parsers into arguments 2022-04-18 19:38:08 -05:00
mat
8d71fbf813 change a BTreeMap to a HashMap 2022-04-18 18:14:25 +00:00
mat
b3864af9c4 split stuff into more modules 2022-04-18 18:13:15 +00:00
mat
17d9f676cc general cleanup 2022-04-18 17:59:21 +00:00
mat
e2c6131ac9 fix issues with clippy 2022-04-18 15:35:02 +00:00
mat
bd83459bb1 remove temporary comments 2022-04-18 15:31:38 +00:00
mat
3f87fc5068 add find_node 2022-04-18 15:28:30 +00:00
mat
d25c9926d7 add get_path 2022-04-18 15:18:54 +00:00
mat
b7d4b437dc add more tests 2022-04-18 00:42:21 -05:00
mat
1d28c7cfb5 forking stuff 2022-04-17 21:38:57 -05:00
mat
d68233e0b1 simplify the <S> generic so it's not an Rc 2022-04-17 20:46:43 -05:00
mat
af4b0d0add Implement working redirects 2022-04-17 18:36:14 -05:00
mat
14625e2bce Change ArgumentBuilder to have a CommandNode 2022-04-17 18:17:20 -05:00
mat
e945bfac77 more tests and start adding redirects 2022-04-17 18:08:19 -05:00
mat
6f3c41e01c add .requires 2022-04-17 16:52:34 -05:00
mat
2e90422561 Fix clippy issues and add a couple tests to dispatcher 2022-04-17 15:57:28 -05:00
mat
10cd1733cb add execute & get_integer 2022-04-17 14:40:26 -05:00
mat
82ed6baea5 Clean up some old stuff 2022-04-17 14:03:21 -05:00
mat
a72a47ced7 Rewrite brigadier 2022-04-17 14:02:13 -05:00
mat
4ff67d4917 a 2022-02-03 02:16:24 +00:00
mat
1b88888151 f 2022-02-02 07:57:50 -06:00
mat
d9e52f8d96 b 2022-02-01 00:12:46 -06:00
Ubuntu
30a86e1de5 bbbbbbbbbbbb 2022-01-20 00:49:10 +00:00
mat
760816c81f stuff 2022-01-13 20:08:53 -06:00
Ubuntu
eb111be1f1 a 2022-01-13 00:43:09 +00:00
Ubuntu
270507736a a 2022-01-12 00:40:43 +00:00
mat
cc4fe62fc8 adfsfasdfaSDQAWERTERYTUYghyubnjnrdfxcv etgvbhy0ujn- 2022-01-11 00:01:47 -06:00
mat
60b129b3a6 progress 2022-01-10 20:29:46 -06:00
Ubuntu
cb4d871f6f work a bit on brigadier 2022-01-11 00:42:30 +00:00
mat
fec7a2bfed AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2022-01-09 23:46:23 -06:00
mat
315f225819 add some more stuff from brigadier 2022-01-09 22:33:45 -06:00
mat
d56f60c05f add all the string reader tests 2022-01-09 15:40:54 -06:00
mat
c7554b40d5 add some more tests 2022-01-09 15:13:08 -06:00
mat
4626bd45cd fix a couple tests 2022-01-09 14:58:14 -06:00
mat
8331851d97 string reader 2022-01-09 14:50:41 -06:00
mat
d959fb2d0c add string_reader 2022-01-09 00:14:39 -06:00
mat
e3ecb607b8 add argument type trait 2022-01-03 22:53:53 -06:00
mat
bd87cbb443 create all empty brigadier modules 2022-01-03 13:36:02 -06:00