veloren/common/src/comp/last.rs

10 lines
279 B
Rust
Raw Normal View History

use specs::{Component, VecStorage};
2019-09-04 23:03:49 +00:00
use std::marker::Send;
#[derive(Copy, Clone, Debug, Hash, Serialize, Deserialize)]
pub struct Last<C: Component + PartialEq>(pub C);
impl<C: Component + Send + Sync + PartialEq> Component for Last<C> {
type Storage = VecStorage<Self>;
}