io.github.pidoveproject.showdown.protocol.client.package.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scala-showdown-api_3 Show documentation
Show all versions of scala-showdown-api_3 Show documentation
A Scala wrapper of Pokemon Showdown's API
The newest version!
package io.github.pidoveproject.showdown.protocol.client
import io.github.iltotore.iron.*
import io.github.iltotore.iron.constraint.all.*
import io.github.pidoveproject.showdown.protocol.MessageEncoder
type ClientMessage = AuthCommand | BattleRoomCommand | DataCommand | GlobalCommand | HighlightCommand | InformationCommand | OptionCommand
opaque type Modifier = String :| Not[Blank]
object Modifier extends RefinedTypeOps[String, Not[Blank], Modifier]
object ClientMessage:
def encoder: MessageEncoder[ClientMessage] = MessageEncoder.derivedUnion[ClientMessage]