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

771 commits

Author SHA1 Message Date
8415aaccfe az-physics tests pass 🎉 2023-01-30 17:58:47 +00:00
284a5b645e azalea-ecs stuff compiles 2023-01-30 16:24:37 +00:00
mat
57d91b5220 azalea-ecs 2023-01-29 22:40:18 -06:00
4c6657fe40 start trying to fix tests 2023-01-27 21:15:31 +00:00
eb1c9f14bf document plugins a bit 2023-01-25 21:10:55 +00:00
49fe5fa66a merge main 2023-01-25 20:52:14 +00:00
4d79ee2817 fix some warnings 2023-01-25 20:36:23 +00:00
d195f400ed replace some string ranges with function equivalents 2023-01-25 17:56:32 +00:00
EightFactorial
9a66cb97a6
Fix test and packets (#60)
* Fix test and packets

* Fix bug, fix a couple more packets

* add tests and fix stuff

* fix warnings

Co-authored-by: Ubuntu <github@matdoes.dev>
2023-01-25 11:51:27 -06:00
8139246055 client builder 2023-01-24 17:59:29 +00:00
mat
9e42b61fc7 fix death event 2023-01-23 20:49:04 -06:00
mat
8940e90863 make swarm use builder
still have to fix some stuff and make client use builder
2023-01-22 17:07:24 -06:00
mat
473c74175c oops
accidentally left this random person's server ip in lmao
2023-01-21 22:36:59 -06:00
mat
c652bbc609 clippy 2023-01-21 22:25:22 -06:00
EightFactorial
9ee5e71bb1
Server functions and proxy example (#59)
* A couple useful things for servers

* Add proxy example

* Use Uuid's serde feature

* Add const options to proxy example

* Example crates go in dev-dependencies

* Warn instead of error

* Log address on login

* Requested changes

* add a test for deserializing game profile + random small changes

Co-authored-by: mat <github@matdoes.dev>
2023-01-21 22:14:23 -06:00
mat
f8230e40af continue switching swarm to builder and fix stuff 2023-01-21 20:11:10 -06:00
228e53adad start converting swarm to use builder 2023-01-21 18:39:27 +00:00
Nemo157
1059afa6fc
Allow using azalea-chat without azalea-buf to avoid unstable features (#58) 2023-01-20 15:31:02 -06:00
8ea3d728c1 everything compiles 2023-01-20 19:01:52 +00:00
8921ae4887 try to make entity_by work
well it does work but i couldn't figure out how to make it look not terrible. Will hopefully change in the future
2023-01-20 17:57:09 +00:00
a971a30fd1 merge main 2023-01-18 17:56:09 +00:00
c6b5664972 update a thing in cargo.toml 2023-01-18 17:52:40 +00:00
mat
9e4e417e50 try to add a .entity_by function
still doesn't work because i want to make the predicate magic
2023-01-16 22:58:20 -06:00
mat
3dc910f079 physics (ticking) works 2023-01-15 22:53:29 -06:00
mat
a3033321f2 the repo is NOT called Cargo.toml 2023-01-15 22:05:31 -06:00
mat
89cee81276 fix entities
basically moved some stuff from being in the world to just being components
2023-01-15 22:03:06 -06:00
EightFactorial
54e00eb3df
Add function to get message sender's UUID (#56)
* Add uuid function for chat messages

* Does this please you, clippy?
2023-01-14 21:56:09 -06:00
c74ffc03ec use systemstate for packet handler 2023-01-13 22:05:51 +00:00
9f634a4d83 azalea compiles lol 2023-01-13 19:53:04 +00:00
mat
259e7b44ce use the default plugins 2023-01-11 23:08:28 -06:00
473b9f9297 make physicsstate its own component 2023-01-12 02:24:18 +00:00
1b83277a0c maybe fix deadlock idk
can't test it rn lmao
2023-01-11 19:13:23 +00:00
mat
6da1bced1e 🐛 2023-01-10 23:21:06 -06:00
c0829e6d0e simple example for azalea-client 2023-01-11 04:56:11 +00:00
dependabot[bot]
b86a89fa1e
Bump tokio from 1.22.0 to 1.23.1 (#55)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.22.0 to 1.23.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.22.0...tokio-1.23.1)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-10 22:01:50 -06: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
EightFactorial
0c30138d26
Add reason for disconnect (#54)
* Add reason for disconnect

Handles messages like "The server is full!" and "Banned by an operator."
Ban reasons are shown like "You are banned from this server.\nReason: foo"

* keep the kick reason as a Component in the error

Co-authored-by: mat <github@matdoes.dev>
2023-01-06 18:30:55 -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