Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandError ¶
func AuthenticationFailedError ¶
func AuthenticationFailedError() CommandError
func BadFormatError ¶
func BadFormatError() CommandError
func CommandLimitReachedError ¶
func CommandLimitReachedError() CommandError
func UnknownCommandError ¶
func UnknownCommandError() CommandError
func (*CommandError) ShouldWait ¶
func (err *CommandError) ShouldWait() bool
type CommandResult ¶
type CommandResult struct { Err *CommandError Params [][]interface{} }
func ErrResult ¶
func ErrResult(err CommandError) CommandResult
func NewErrResult ¶
func NewErrResult(id int, desc string) CommandResult
func NewOkResult ¶
func NewOkResult(params ...[]interface{}) CommandResult
type Game ¶
type Game interface { Execute(team Team, cmd Command) CommandResult Tick() }
Click to show internal directories.
Click to hide internal directories.