1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 14:26:04 +00:00
Commit graph

736 commits

Author SHA1 Message Date
c0829e6d0e simple example for azalea-client 2023-01-11 04:56:11 +00:00
45fd8a0e98 ok what if i just have a bunch of queries and a single packet handler system 2023-01-11 03:58:52 +00:00
f02db24e8c fix warnings 2023-01-10 18:05:38 +00:00
mat
a928d83ade make packet handler work
i still haven't actually tested any of this yet lol but in theory it should all work

i'll probably either actually test az-client and fix all the remaining issues or update the azalea crate next

ok also one thing that i'm not particularly happy with is how the packet handlers are doing ugly queries like
```rs
let local_player = ecs
    .query::<&LocalPlayer>()
    .get_mut(ecs, player_entity)
    .unwrap();
```
i think the right way to solve it would be by putting every packet handler in its own system but i haven't come up with a way to make that not be really annoying yet
2023-01-08 23:30:09 -06:00
109418de21 Merge branch 'improve-entities' of https://github.com/mat-1/azalea into improve-entities 2023-01-07 01:05:42 +00:00
590a5ded8d start fixing some packets 2023-01-07 01:05:27 +00:00
mat
c7a4e88a06 Merge branch 'main' into improve-entities 2023-01-06 18:52:56 -06:00
mat
0bca3d8f5d log headers on unknown sessionserver error 2023-01-05 19:24:21 -06:00
mat
4760488c4a fix 2023-01-05 18:36:44 -06:00
mat
82fad00240 fix auto reauthentication
THANKS MOJANG
2023-01-05 18:28:35 -06:00
Shayne Hartford
fc88dabd95
Fix binary compilation (#53)
* Fix binary compilation

* Unnecessary reference
2023-01-05 14:31:25 -06:00
cf7b2423d0 start fixing stuff 2023-01-05 20:08:04 +00:00
64fea0f660 huh az-client compiles 2023-01-03 21:18:02 +00:00
13794dd79a make writing packets work synchronously* 2023-01-03 21:00:46 +00:00
mat
21c08013b7 start figuring out how functions in Client will work
generally just lifetimes being annoying but i think i can get it all to work
2023-01-02 23:16:45 -06:00
mat
50f6578794 packet handling
now it runs the schedule only when we get a tick or packet 😄

also i systemified some more functions and did other random fixes so az-world and az-physics compile

making azalea-client use the ecs is almost done! all the hard parts are done now i hope, i just have to finish writing all the code so it actually works
2023-01-02 18:59:29 -06:00
mat
9193c1b408 separate minecraft entity ids from azalea entity ids + more ecs stuff
i guess i'm using bevy_app now too huh
it's necessary for plugins and it lets us control the tick rate anyways so it's fine i think

i'm still not 100% sure how packet handling that interacts with the world will work, but i think if i can sneak the ecs world into there it'll be fine. Can't put packet handling in the schedule because that'd make it tick-bound, which it's not (technically it'd still work but it'd be wrong and anticheats might realize).
2023-01-01 03:12:48 -06:00
mat
2de5a39f31 start splitting client
i'm probably gonna change it so azalea entity ids are separate from minecraft entity ids next (so stuff like player ids can be consistent and we don't have to wait for the login packet)
2022-12-29 18:58:56 -06:00
mat
12269a9dc0 start converting some functions in az-client into systems
committing because i'm about to try something that might go horribly wrong
2022-12-26 20:50:37 -06:00
mat
24fc8dc188 packet handler uses the ecs now
and other fun changes

i still need to make ticking use the ecs but that's tricker, i'm considering using bevy_ecs systems for those

bevy_ecs systems can't be async but the only async things in ticking is just sending packets which can just be done as a tokio task so that's not a big deal
2022-12-25 17:12:14 -06:00
mat
8a93a2c158 some ecs stuff in az-client 2022-12-24 20:13:53 -06:00
mat
13fc403484 change a bunch of entity things to use the components 2022-12-24 19:21:11 -06:00
mat
ba5b7b5cab random fixes 2022-12-24 17:43:33 -06:00
mat
eff339661f ok well it compiles but
it definitely doesn't work
2022-12-22 20:09:03 -06:00
mat
f6689e62fe more ecs stuff for entity storage 2022-12-20 13:55:33 -06:00
mat
1436a88ca2 start switching more entity stuff to use ecs 2022-12-17 21:47:40 -06:00
mat
1d26604ec6 generate metadata.rs correctly for bevy_ecs 2022-12-17 19:09:36 -06:00
mat
52772afe85 rename Component to FormattedText
also start making the metadata use bevy_ecs but bevy_ecs doesn't let you query on Bundles so it's annoying
2022-12-13 19:08:49 -06:00
129e2adf0a add bevy_ecs to deps 2022-12-13 22:58:20 +00:00
1b99803b21 get rid of worldhaver
it's not even used
2022-12-12 15:24:39 +00:00
mat
4c35a25dd4 fix registry codegen 2022-12-11 22:49:41 -06:00
mat
78cc1035ce make entity codegen generate ecs stuff 2022-12-11 22:46:56 -06:00
mat
767a834bbc start making metadata use hecs 2022-12-11 17:42:41 -06:00
mat
2813d532e7 add EntityData::kind 2022-12-11 15:18:57 -06:00
mat
fd18cae476 fix bot/main.rs 2022-12-11 13:34:36 -06:00
mat
fa290b30f2 fix PartialWorld::default() for tests 2022-12-11 03:23:20 -06:00
mat
b60a55e61e rename find_entity to entity_by & add entities_by 2022-12-11 02:24:31 -06:00
mat
37b9f10b3b make entities have a reference to WeakWorlds instead
... and other exciting bug fixes
2022-12-11 00:15:37 -06:00
2d6737b247 (cargo-release) version 0.5.0 2022-12-09 15:34:29 +00:00
b6d0b3744d (cargo-release) version 0.5.0 2022-12-09 15:34:29 +00:00
16be171fb4 (cargo-release) version 0.5.0 2022-12-09 15:34:29 +00:00
6a5008b0f7 (cargo-release) version 0.5.0 2022-12-09 15:34:28 +00:00
4484411489 (cargo-release) version 0.5.0 2022-12-09 15:34:28 +00:00
b0de28d9bd (cargo-release) version 0.5.0 2022-12-09 15:34:28 +00:00
0cce10d1a5 (cargo-release) version 0.5.0 2022-12-09 15:34:27 +00:00
a6a0839521 (cargo-release) version 0.5.0 2022-12-09 15:34:27 +00:00
ebffd5d77e (cargo-release) version 0.5.0 2022-12-09 15:34:26 +00:00
75db835bfc (cargo-release) version 0.5.0 2022-12-09 15:34:26 +00:00
3baae656c0 (cargo-release) version 0.5.0 2022-12-09 15:34:26 +00:00
aa05eeac50 (cargo-release) version 0.5.0 2022-12-09 15:34:26 +00:00