1
0
Fork 0
mirror of https://github.com/italicsjenga/valence.git synced 2025-02-03 09:06:35 +11:00
Commit graph

18 commits

Author SHA1 Message Date
Ryan Johnson
9ec1df1978
Entity Hitbox Improvements ()
Solves . With help from @guac420
2022-09-17 23:14:48 -07:00
guac420
96f5614941
Add support for Slot data decoding ()
* Impl Seek for reader in Decode Trait

* Add support for Slot data type

* Update tests and rust fmt

* Add tests for Slot

Also fixed bugs I found while testing

* Update slot signature

* Resolved requested changes

Updated decode trait signature and removed unnecessary getters/setters in `Slot`
2022-09-08 21:39:08 -07:00
Ryan
5fb46178dd Don't hide the protocol module behind a feature 2022-08-31 19:20:49 -07:00
Ryan
49d63a39c0 Clean up client and fix names 2022-08-05 12:36:34 -07:00
Ryan
6b5e795f81 Rename entity data 2022-08-02 19:02:05 -07:00
Ryan
2e22946ffc Rewrite the entity generator 2022-07-27 07:10:35 -07:00
Ryan
865ab76699 Add custom data 2022-07-15 20:40:39 -07:00
Ryan
3f150b4c8a Document most items 2022-07-11 05:08:02 -07:00
Ryan
24cf864ed1 Don't export items arbitrarily at the crate root 2022-07-06 18:27:59 -07:00
Ryan
3ac711ca74 Use idiomatic names
The Rust stdlib uses "Kind" instead of "Type".
2022-07-05 19:21:52 -07:00
Ryan
fcda380f2a Improve entity event API 2022-07-05 18:08:40 -07:00
Ryan
6ef634ca2c Use Rust 1.62.0 features 2022-06-30 13:22:08 -07:00
Ryan
560163fd2e Expose the protocol API behind a feature flag
This could be useful for building proxies or clients in the future.
2022-06-30 11:53:57 -07:00
Ryan
c86b8286ce Update to 1.19
Authentication is currently broken. Looks like the EncryptionResponse
packet changed.
2022-06-21 04:55:32 -07:00
Ryan
adc8a4faae Give World ownership over entities, clients, and chunks.
This change was made to make it easier for invariants to be upheld. When
the spatial partition is added, we can ensure that changes to entities
are immediately reflected in the partition. Additionally, chunks being
shared between worlds was a leaky abstraction to begin with and is now
removed. A method in `Config` is now necessary to determine what world a
client should join.

Along with this, most mutable references have been wrapped in a newtype
to ensure that `mem::swap` cannot be used on them, which would break
invariants. This is analogous to `Pin<&mut T>`. The reason we can't use
Pin directly is because it would require unnecessary unsafe code
within the library.
2022-05-16 02:36:14 -07:00
Ryan
a0892faa72 Put all config options in a single trait 2022-04-30 05:06:20 -07:00
Ryan
732183dd62 Rip out the ECS. 2022-04-29 00:48:41 -07:00
Ryan
5bbbb258d1 move from private repo 2022-04-14 14:55:45 -07:00