use std::ops::{Deref, DerefMut};
use datatypes::Position;
use super::Entity;
#[derive(PartialEq)]
pub struct EndCrystal {
entity: Entity,
pub beam_target: Option<Position>,
pub show_bottom: bool,
}
impl Deref for EndCrystal {
type Target = Entity;
fn deref(&self) -> &Self::Target {
&self.entity
}
}
impl DerefMut for EndCrystal {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.entity
}
}
impl Default for EndCrystal {
fn default() -> Self {
Self {
entity: Entity::default(),
beam_target: None,
show_bottom: true,
}
}
}