forked from wickedwaifus/wicked-waifus-rs
9 lines
221 B
Rust
9 lines
221 B
Rust
use crate::logic::ecs::component::Component;
|
|
|
|
pub struct Visibility(pub bool);
|
|
|
|
impl Component for Visibility {
|
|
fn set_pb_data(&self, pb: &mut shorekeeper_protocol::EntityPb) {
|
|
pb.is_visible = self.0;
|
|
}
|
|
}
|