gameServer2/src/server/server.rs
changeset 13426 f091f69d59e4
parent 13422 5fb27f94fc3b
child 13442 c6a3784ff2c1
equal deleted inserted replaced
13425:50f852e7ad82 13426:f091f69d59e4
    62     }
    62     }
    63 
    63 
    64     fn get_recipients(&self, client_id: ClientId, destination: Destination) -> Vec<ClientId> {
    64     fn get_recipients(&self, client_id: ClientId, destination: Destination) -> Vec<ClientId> {
    65         let mut ids = match destination {
    65         let mut ids = match destination {
    66             Destination::ToSelf => vec![client_id],
    66             Destination::ToSelf => vec![client_id],
       
    67             Destination::ToId(id) => vec![id],
    67             Destination::ToAll {room_id: Some(id), ..} =>
    68             Destination::ToAll {room_id: Some(id), ..} =>
    68                 self.room_clients(id),
    69                 self.room_clients(id),
    69             Destination::ToAll {protocol: Some(proto), ..} =>
    70             Destination::ToAll {protocol: Some(proto), ..} =>
    70                 self.protocol_clients(proto),
    71                 self.protocol_clients(proto),
    71             Destination::ToAll {..} =>
    72             Destination::ToAll {..} =>