mirror of
https://github.com/Zenithsiz/dcb.git
synced 2026-02-09 03:40:23 +00:00
Changed imports style.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
//! Interface for converting various structures to and from bytes
|
||||
|
||||
// Std
|
||||
// Imports
|
||||
use std::{error::Error, fmt::Debug};
|
||||
|
||||
/// Conversions to and from bytes for the game file
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
#![doc(include = "digimon.md")]
|
||||
|
||||
// byteorder
|
||||
use byteorder::{ByteOrder, LittleEndian};
|
||||
|
||||
// Crate
|
||||
// Imports
|
||||
use crate::game::{
|
||||
card::property::{self, ArrowColor, CrossMoveEffect, Effect, EffectCondition, Level, Move, Speciality},
|
||||
util, Bytes,
|
||||
};
|
||||
use byteorder::{ByteOrder, LittleEndian};
|
||||
|
||||
/// A digimon card
|
||||
///
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#![doc(include = "digivolve.md")]
|
||||
|
||||
// Crate
|
||||
// Imports
|
||||
use crate::game::{util, Bytes};
|
||||
|
||||
/// A digivolve card
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
#![doc(include = "item.md")]
|
||||
|
||||
// byteorder
|
||||
use byteorder::{ByteOrder, LittleEndian};
|
||||
|
||||
// Crate
|
||||
// Imports
|
||||
use crate::game::{
|
||||
card::property::{self, ArrowColor, Effect, EffectCondition},
|
||||
util, Bytes,
|
||||
};
|
||||
use byteorder::{ByteOrder, LittleEndian};
|
||||
|
||||
/// An item card
|
||||
///
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
#![doc(include = "effect.md")]
|
||||
|
||||
// byteorder
|
||||
use byteorder::{ByteOrder, LittleEndian};
|
||||
|
||||
// Crate
|
||||
// Imports
|
||||
use crate::game::{
|
||||
card::property::{self, AttackType, DigimonProperty, EffectOperation, PlayerType, Slot},
|
||||
util, Bytes,
|
||||
};
|
||||
use byteorder::{ByteOrder, LittleEndian};
|
||||
|
||||
/// A digimon's support effects
|
||||
///
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
#![doc(include = "effect_condition.md")]
|
||||
|
||||
// byteorder
|
||||
use byteorder::{ByteOrder, LittleEndian};
|
||||
|
||||
// Crate
|
||||
// Imports
|
||||
use crate::game::{
|
||||
card::property::{self, DigimonProperty, EffectConditionOperation},
|
||||
util, Bytes,
|
||||
};
|
||||
use byteorder::{ByteOrder, LittleEndian};
|
||||
|
||||
/// A digimon's support effect condition
|
||||
#[derive(PartialEq, Eq, Clone, Copy, Hash, Debug)]
|
||||
|
||||
@@ -4,11 +4,9 @@
|
||||
#[cfg(test)]
|
||||
mod test;
|
||||
|
||||
// byteorder
|
||||
use byteorder::{ByteOrder, LittleEndian};
|
||||
|
||||
// Crate
|
||||
// Imports
|
||||
use crate::game::{util, Bytes};
|
||||
use byteorder::{ByteOrder, LittleEndian};
|
||||
|
||||
/// A digimon's move
|
||||
#[derive(PartialEq, Eq, Clone, Hash, Debug)]
|
||||
|
||||
@@ -1,12 +1,6 @@
|
||||
#![doc(include = "table.md")]
|
||||
|
||||
// Std
|
||||
use std::io::{Read, Seek, Write};
|
||||
|
||||
// byteorder
|
||||
use byteorder::{ByteOrder, LittleEndian};
|
||||
|
||||
// Crate
|
||||
// Imports
|
||||
use crate::{
|
||||
game::{
|
||||
card::{
|
||||
@@ -18,6 +12,8 @@ use crate::{
|
||||
},
|
||||
io::{address::Data, GameFile},
|
||||
};
|
||||
use byteorder::{ByteOrder, LittleEndian};
|
||||
use std::io::{Read, Seek, Write};
|
||||
|
||||
/// The table storing all cards
|
||||
#[derive(Debug)]
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
//! Decks
|
||||
|
||||
// byteorder
|
||||
use byteorder::{ByteOrder, LittleEndian};
|
||||
|
||||
// Crate
|
||||
// Imports
|
||||
use crate::game::{util, Bytes};
|
||||
use byteorder::{ByteOrder, LittleEndian};
|
||||
|
||||
/// A deck
|
||||
#[derive(Debug)]
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
//! The table of all decks in the game
|
||||
|
||||
// Std
|
||||
use std::io::{Read, Seek, Write};
|
||||
|
||||
// Crate
|
||||
// Imports
|
||||
use crate::{
|
||||
game::{deck::deck, Bytes, Deck},
|
||||
io::{address::Data, GameFile},
|
||||
};
|
||||
use std::io::{Read, Seek, Write};
|
||||
|
||||
/// The decks table, where all decks are stored
|
||||
///
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
//! File data-only addresses
|
||||
|
||||
// Address
|
||||
// Imports
|
||||
use crate::io::address::Real;
|
||||
|
||||
/// A type for defining addresses on the data parts of `.bin` file.
|
||||
|
||||
@@ -2,10 +2,8 @@
|
||||
//!
|
||||
//! See [`GameFile`] for details
|
||||
|
||||
// Addresses
|
||||
// Imports
|
||||
use crate::io::address::{Data as DataAddress, Real as RealAddress, RealToDataError};
|
||||
|
||||
// Read / Write
|
||||
use std::io::{Read, Seek, Write};
|
||||
|
||||
/// A type that abstracts over a the game reader.
|
||||
|
||||
Reference in New Issue
Block a user