use std::ops::{Deref, DerefMut};
use super::AbstractVehicle;
mod chest_boat;
pub use chest_boat::*;
#[derive(PartialEq, Clone, Copy, Default)]
pub enum BoatWoodType {
#[default] Oak = 0,
Spruce = 1,
Birch = 2,
Jungle = 3,
Acacia = 4,
DarkOak = 5,
}
#[derive(PartialEq, Default)]
pub struct Boat {
abstract_vehicle: AbstractVehicle,
pub wood_type: BoatWoodType,
pub left_paddle_turning: bool,
pub right_paddle_turning: bool,
pub splash_timer: i32,
}
impl Deref for Boat {
type Target = AbstractVehicle;
fn deref(&self) -> &Self::Target {
&self.abstract_vehicle
}
}
impl DerefMut for Boat {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.abstract_vehicle
}
}