Skip to content

Commit

Permalink
readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
Littlefisher619 authored and Littlefisher619 committed Jun 9, 2020
1 parent 973b683 commit 3629a85
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions UNO_Server/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@

定义的交互规范见下表

| Identifier | Factory | Extractor | ExtractResult Class |
| :---------------: | ------------------------------------------------------------ | -------------------------------------------------- | ----------------------- |
| `JOIN_ROOM` | `join_room_factory(std::string)` | `join_room_extractor(const char * message)` | `ResultJoinROOM` |
| `JOIN_ACK` | `join_ack_factory(int player_count, int player_id, std::map<int, std::string> & player_map)` | `join_ack_extractor(const char * message)` | `ResultJoinACK` |
| `NEWPLAYER` | `newplayer_factory(int new_player_id, std::string player_name)` | `join_ack_extractor(const char * message)` | `ResultNewPlayer` |
| `PLAYERLEAVE` | `playerleave_factory(int player_id)` | `join_ack_extractor(const char * message)` | `ResultPlayerLeave` |
| `GAMESTART` | `gamestart_factory()` | `gamestart_extractor(const char * message)` | `ResultGameStart` |
| Identifier | Factory | Extractor | ExtractResult Class |
| :---------------- | :----------------------------------------------------------- | -------------------------------------------------- | :---------------------- |
| `JOIN_ROOM` | `join_room_factory(std::string)` | `join_room_extractor(const char * message)` | `ResultJoinROOM` |
| `JOIN_ACK` | `join_ack_factory(int player_count, int player_id, std::map<int, std::string> & player_map)` | `join_ack_extractor(const char * message)` | `ResultJoinACK` |
| `NEWPLAYER` | `newplayer_factory(int new_player_id, std::string player_name)` | `join_ack_extractor(const char * message)` | `ResultNewPlayer` |
| `PLAYERLEAVE` | `playerleave_factory(int player_id)` | `join_ack_extractor(const char * message)` | `ResultPlayerLeave` |
| `GAMESTART` | `gamestart_factory()` | `gamestart_extractor(const char * message)` | `ResultGameStart` |
| `CLIENTKEEPALIVE` | `client_keepalive_factory(int player_id)` | `client_keepalive_extractor(const char * message)` | `ResultClientKeepAlive` |
| `SERVERKEEPALIVE` | `server_keepalive_factory()` | `server_keepalive_extractor(const char * message)` | `ResultServerKeepAlive` |
| `PLAYERACTION` | `player_action_factory(int player_id, int draw_card_id, int put_card_id)` | `player_action_extractor(const char * message)` | `ResultPlayerAction` |
| `PLAYERACTION` | `player_action_factory(int player_id, int draw_card_id, int put_card_id)` | `player_action_extractor(const char * message)` | `ResultPlayerAction` |



Expand Down

0 comments on commit 3629a85

Please sign in to comment.