mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
Pathfinding is very much not done, but it works enough and I want to get this merged. TODO: fast replanning, goals that aren't a single node, falling moves (it should be able to play the dropper), parkour moves
30 lines
710 B
Rust
Executable file
30 lines
710 B
Rust
Executable file
use azalea_buf::McBuf;
|
|
use azalea_core::Slot;
|
|
use azalea_protocol_macros::ClientboundGamePacket;
|
|
|
|
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
|
|
pub struct ClientboundMerchantOffersPacket {
|
|
#[var]
|
|
pub container_id: u32,
|
|
pub offers: Vec<MerchantOffer>,
|
|
#[var]
|
|
pub villager_level: u32,
|
|
#[var]
|
|
pub villager_xp: u32,
|
|
pub show_progress: bool,
|
|
pub can_restock: bool,
|
|
}
|
|
|
|
#[derive(Clone, Debug, McBuf)]
|
|
pub struct MerchantOffer {
|
|
pub base_cost_a: Slot,
|
|
pub result: Slot,
|
|
pub cost_b: Slot,
|
|
pub out_of_stock: bool,
|
|
pub uses: u32,
|
|
pub max_uses: u32,
|
|
pub xp: u32,
|
|
pub special_price_diff: i32,
|
|
pub price_multiplier: f32,
|
|
pub demand: u32,
|
|
}
|