gameServer2/src/server/actions.rs
author unc0rr
Mon, 23 Jan 2017 23:43:29 +0300
changeset 12142 4d7d41be1993
parent 12141 78925eff02c2
child 12143 7e874846afe3
permissions -rw-r--r--
Start refactoring path from getting message from client to reacting to it
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12138
e0bf51609062 Introduce actions, just like in the old server
unc0rr
parents:
diff changeset
     1
use protocol::messages::HWProtocolMessage;
e0bf51609062 Introduce actions, just like in the old server
unc0rr
parents:
diff changeset
     2
e0bf51609062 Introduce actions, just like in the old server
unc0rr
parents:
diff changeset
     3
pub enum Action {
e0bf51609062 Introduce actions, just like in the old server
unc0rr
parents:
diff changeset
     4
    SendMe(String),
12139
f3121d7dedec - Handle errors
unc0rr
parents: 12138
diff changeset
     5
    RemoveClient,
f3121d7dedec - Handle errors
unc0rr
parents: 12138
diff changeset
     6
    ByeClient(String),
12142
4d7d41be1993 Start refactoring path from getting message from client to reacting to it
unc0rr
parents: 12141
diff changeset
     7
    ReactProtocolMessage(HWProtocolMessage),
12138
e0bf51609062 Introduce actions, just like in the old server
unc0rr
parents:
diff changeset
     8
}