eq for images/sounds
parent
7affb73f95
commit
93e6119604
|
@ -178,7 +178,7 @@ pub struct Color8(u8, u8, u8);
|
|||
|
||||
/// An RGB16 image.
|
||||
#[cfg_attr(feature = "serde_obj", derive(serde::Serialize))]
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Eq, PartialEq)]
|
||||
pub struct Image16
|
||||
{
|
||||
w: usize,
|
||||
|
@ -190,7 +190,7 @@ pub struct Image16
|
|||
|
||||
/// An RGB8 image.
|
||||
#[cfg_attr(feature = "serde_obj", derive(serde::Serialize))]
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Eq, PartialEq)]
|
||||
pub struct Image8
|
||||
{
|
||||
w: usize,
|
||||
|
|
|
@ -83,7 +83,7 @@ impl Sound for Sound16
|
|||
|
||||
/// A 16-bit PCM stream.
|
||||
#[cfg_attr(feature = "serde_obj", derive(serde::Serialize))]
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Eq, PartialEq)]
|
||||
pub struct Sound16
|
||||
{
|
||||
rate: u16,
|
||||
|
|
|
@ -124,7 +124,7 @@ pub fn read_sounds(b: &[u8]) -> ResultS<Vec<SoundTable>>
|
|||
}
|
||||
|
||||
/// A sound definition containing one, many or no sounds.
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Eq, PartialEq)]
|
||||
pub struct SoundDef
|
||||
{
|
||||
/// The volume type for this sound.
|
||||
|
|
|
@ -135,7 +135,7 @@ pub fn read_wad(b: &[u8]) -> ResultS<Wad>
|
|||
|
||||
/// Any kind of chunk in an `Entry`.
|
||||
#[cfg_attr(feature = "serde_obj", derive(serde::Serialize))]
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Eq, PartialEq)]
|
||||
pub enum Chunk
|
||||
{
|
||||
/// A `PICT` chunk.
|
||||
|
@ -187,7 +187,7 @@ pub enum Chunk
|
|||
|
||||
/// An entry containing chunks and application-specific data.
|
||||
#[cfg_attr(feature = "serde_obj", derive(serde::Serialize))]
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Eq, PartialEq)]
|
||||
pub struct Entry
|
||||
{
|
||||
/// All of the chunks in this `Entry`.
|
||||
|
@ -199,7 +199,7 @@ pub struct Entry
|
|||
|
||||
/// A Map file containing entries.
|
||||
#[cfg_attr(feature = "serde_obj", derive(serde::Serialize))]
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Eq, PartialEq)]
|
||||
pub struct Wad
|
||||
{
|
||||
/// The original name of this file.
|
||||
|
|
Loading…
Reference in New Issue