Remove old code

This commit is contained in:
timokoesters 2019-08-31 09:00:20 +02:00
parent bb71bdd4a2
commit ecbf7cad5b
4 changed files with 0 additions and 48 deletions

View File

@ -100,12 +100,6 @@ impl Client {
// We reduce the thread count by 1 to keep rendering smooth
thread_pool.set_num_threads((num_cpus::get() - 1).max(1));
// Set client-only components
let _ = state
.ecs_mut()
.write_storage()
.insert(entity, comp::AnimationInfo::default());
Ok(Self {
client_state,
thread_pool,

View File

@ -1,37 +0,0 @@
use specs::{Component, FlaggedStorage};
use specs_idvs::IDVStorage;
#[derive(Copy, Clone, Debug, PartialEq, Serialize, Deserialize)]
pub enum Animation {
Idle,
Stand,
Run,
Lean,
Jump,
Gliding,
Attack,
Block,
Roll,
Crun,
Cidle,
Cjump,
}
#[derive(Copy, Clone, Debug, Serialize, Deserialize)]
pub struct AnimationInfo {
pub animation: Animation,
pub time: f64,
}
impl Default for AnimationInfo {
fn default() -> Self {
Self {
animation: Animation::Idle,
time: 0.0,
}
}
}
impl Component for AnimationInfo {
type Storage = FlaggedStorage<Self, IDVStorage<Self>>;
}

View File

@ -1,6 +1,5 @@
mod admin;
mod agent;
mod animation;
mod body;
mod character_state;
mod controller;
@ -15,7 +14,6 @@ mod visual;
// Reexports
pub use admin::Admin;
pub use agent::Agent;
pub use animation::{Animation, AnimationInfo};
pub use body::{humanoid, object, quadruped, quadruped_medium, Body};
pub use character_state::{ActionState, CharacterState, MovementState};
pub use controller::Controller;

View File

@ -133,9 +133,6 @@ impl State {
ecs.register::<comp::Ori>();
ecs.register::<comp::Inventory>();
// Register client-local components
ecs.register::<comp::AnimationInfo>();
// Register server-local components
ecs.register::<comp::Last<comp::Pos>>();
ecs.register::<comp::Last<comp::Vel>>();