This project is read-only.

C2S

  • change personal state
    • afk/normal
  • chat
    • public/room/private
    • content
  • new room
    • game settings
  • set room
    • roomId (enter/leave)
    • PlayerA1/PlayerA2/PlayerB1/PlayerB2/Spectator
  • change seat state
    • ready/sitting
  • game input (only available in Room)
    • input/giveup

S2C

  • new user
    • user info
  • remove user
    • userId
  • user state changed
    • userId
    • afk/normal
  • chat
    • from
    • public/private/room(room user only)
    • content
  • user seat state change
    • userId/0
    • roomId
    • game settings/null (if new room)
    • PlayerA1/PlayerA2/PlayerB1/PlayerB2/Spectator
  • room game start
    • roomId
  • room game end
    • roomId
    • battle result

Room User Only

  • game start
    • game
  • game outward update
  • require input (player only)

Last edited Apr 22, 2015 at 5:29 AM by Snowy, version 4

Comments

liuxinyu970226 Oct 20, 2013 at 1:38 AM 
聊天终于提上日程了么