mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
10 lines
305 B
Rust
10 lines
305 B
Rust
|
use specs::{Component, VecStorage};
|
||
|
use std::{fmt::Debug, marker::Send, ops::Deref};
|
||
|
|
||
|
#[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>;
|
||
|
}
|