interface.go 527 B

123456789101112131415
  1. package client
  2. // 游戏结束后先OnRoomUserScoreChanged,再调用OnRoomEnd
  3. type IPrivateRoomStatusReceiver interface {
  4. OnRoomStart(roomNo int)
  5. OnRoomEnd(roomNo int, winners []int)
  6. OnRoomUserScoreChanged(roomNo int, userId int, score int)
  7. OnRoomStatusChanged(roomNo int, old, new int)
  8. }
  9. type IPrivateServerStatusReceiver interface {
  10. OnGameRuleRegistered(gameId int, gameRule string, desc string,
  11. targetOptions []int, userOptions []int, playTimeOptions []int)
  12. OnGameRuleDeregistered(gameId int, gameRule string)
  13. }