|
@ -15,9 +15,7 @@ pub trait ServerState { |
|
|
type Packet: ServerPacket;
|
|
|
type Packet: ServerPacket;
|
|
|
type PacketError;
|
|
|
type PacketError;
|
|
|
|
|
|
|
|
|
//fn handle(&mut self, pkt: &Self::Packet) -> Result<Vec<Box<dyn PSOPacket>>, Self::PacketError>;
|
|
|
|
|
|
fn on_connect(&mut self) -> Vec<OnConnect>;
|
|
|
fn on_connect(&mut self) -> Vec<OnConnect>;
|
|
|
//fn handle(&mut self, pkt: &Self::Packet) -> Result<Box<dyn Iterator<Item = Box<dyn PSOPacket>>>, Self::PacketError>;
|
|
|
|
|
|
fn handle(&mut self, pkt: &Self::Packet) -> Box<dyn Iterator<Item = Box<dyn PSOPacket>>>;
|
|
|
fn handle(&mut self, pkt: &Self::Packet) -> Box<dyn Iterator<Item = Box<dyn PSOPacket>>>;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|