wicked-waifus-rs/game-server/src/logic/components/owner_player.rs
2024-09-11 19:37:46 +03:00

9 lines
221 B
Rust

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;
}
}