wicked-waifus-rs/game-server/src/logic/components/owner_player.rs

10 lines
221 B
Rust
Raw Normal View History

2024-09-11 16:37:46 +00:00
use crate::logic::ecs::component::Component;
pub struct OwnerPlayer(pub i32);
impl Component for OwnerPlayer {
fn set_pb_data(&self, pb: &mut shorekeeper_protocol::EntityPb) {
pb.player_id = self.0;
}
}