use std::fmt;
use bevy::prelude::*;
use de_types::objects::ObjectType;
#[derive(Component)]
pub struct Active;
#[derive(Component)]
pub struct Local;
#[derive(Component)]
pub struct Playable;
#[derive(Component)]
pub struct StaticSolid;
#[derive(Component)]
pub struct MovableSolid;
#[derive(Component, Deref, Clone, Copy)]
pub struct ObjectTypeComponent(ObjectType);
impl fmt::Display for ObjectTypeComponent {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.0)
}
}
impl From<ObjectType> for ObjectTypeComponent {
fn from(object_type: ObjectType) -> Self {
Self(object_type)
}
}