chunkedge_protocol/
sound.rs1use chunkedge_binary::{Decode, Encode, IdOr};
2pub use chunkedge_generated::sound::Sound;
3use chunkedge_ident::Ident;
4
5pub type SoundId = IdOr<SoundDirect>;
6
7#[derive(Clone, Debug, Encode, Decode, PartialEq)]
8pub struct SoundDirect {
9 pub id: Ident<String>,
10 pub range: Option<f32>,
11}
12
13#[derive(Copy, Clone, PartialEq, Eq, Debug, Encode, Decode)]
14pub enum SoundCategory {
15 Master,
16 Music,
17 Record,
18 Weather,
19 Block,
20 Hostile,
21 Neutral,
22 Player,
23 Ambient,
24 Voice,
25}