20 lines
533 B
Rust
20 lines
533 B
Rust
|
|
||
|
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
|
||
|
}
|