All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.pidoveproject.showdown.protocol.server.tournament.TournamentAutoDq.scala Maven / Gradle / Ivy

The newest version!
package io.github.pidoveproject.showdown.protocol.server.tournament

import io.github.pidoveproject.showdown.Timestamp
import io.github.pidoveproject.showdown.protocol.MessageDecoder

/**
 * The auto-disqualification policy for tournaments.
 */
enum TournamentAutoDq derives MessageDecoder:

  /**
   * Disqualify inactive players each `disqualifyTimer` time.
   */
  case On(disqualifyTimer: Timestamp)

  /**
   * Disabled.
   */
  case Off()

  /**
   * Disqualify players AFK for `disqualifyTimer`.
   */
  case Target(time: Timestamp)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy