elseware/src/ship/chatcommand.rs

20 lines
533 B
Rust
Raw Normal View History

2023-02-03 16:03:33 -07:00
use libpso::packet::ship::PlayerChat;
use crate::entity::gateway::EntityGateway;
use crate::common::serverstate::ClientId;
use crate::ship::ship::{ShipServerState, SendShipPacket};
pub async fn handle_chat_command<EG>(id: ClientId,
message: PlayerChat,
state: &mut ShipServerState<EG>)
-> Option<Result<Vec<(ClientId, SendShipPacket)>, anyhow::Error>>
where
EG: EntityGateway + Clone + 'static,
{
None
}