mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
interacting with sprites and rustfmt decides to format a bunch of stuff... * Add PartialEq impls between ItemDefinitionId<'_> and ItemDefinitionIdOwned. * Remove unused Serialize and Deserialize derives from ItemDefinitionId<'_> * Add Inventory::get_slot_of_item_by_def_id which acts like Inventory::get_slot_of_item but accepts a ItemDefinitionIdOwned reference instead of an Item reference. * Add some TODOs for some potential optimizations * Rustfmt decided now was the time to format some random stuff I didn't touch. Maybe I fixed something it was getting stuck on???? But some files I didn't make any changes (although might have inadvertantly saved them when viewing in editor (with fmt on save)). * InvSlotId passed to SpriteInteract character state instead of refinding the item in the inventory (if it moved we simply give up on the state as if the requirements weren't met). (overall in this change 3 searches for the item in the inventory are reduced to a single one) |
||
---|---|---|
.. | ||
assets | ||
base | ||
benches | ||
dynlib | ||
ecs | ||
frontend | ||
net | ||
src | ||
state | ||
systems | ||
build.rs | ||
Cargo.toml |