command

package
v0.0.0-...-9fe3520 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTeam

func NewTeam() cmd.Command

Types

type AllowerPlayer

type AllowerPlayer struct{}

func (AllowerPlayer) Allow

func (AllowerPlayer) Allow(src cmd.Source) bool

type DebugActiveClass

type DebugActiveClass struct {
	AllowerPlayer
	Sub cmd.SubCommand `cmd:"class"`
}

func (DebugActiveClass) Run

func (c DebugActiveClass) Run(src cmd.Source, out *cmd.Output, _ *world.Tx)

type EnumUserInvitations

type EnumUserInvitations string

func (EnumUserInvitations) Options

func (u EnumUserInvitations) Options(src cmd.Source) []string

func (EnumUserInvitations) Type

func (u EnumUserInvitations) Type() string

type TeamCreate

type TeamCreate struct {
	AllowerPlayer

	Sub  cmd.SubCommand `cmd:"create"`
	Name string
}

func (TeamCreate) Run

func (t TeamCreate) Run(src cmd.Source, out *cmd.Output, _ *world.Tx)

type TeamInvite

type TeamInvite struct {
	AllowerPlayer

	Sub    cmd.SubCommand `cmd:"invite"`
	Target []cmd.Target
}

func (TeamInvite) Run

func (t TeamInvite) Run(src cmd.Source, out *cmd.Output, _ *world.Tx)

type TeamJoin

type TeamJoin struct {
	AllowerPlayer

	Sub        cmd.SubCommand `cmd:"join"`
	Invitation EnumUserInvitations
}

func (TeamJoin) Run

func (t TeamJoin) Run(src cmd.Source, out *cmd.Output, tx *world.Tx)

type TeamLeave

type TeamLeave struct {
	AllowerPlayer

	Sub cmd.SubCommand `cmd:"leave"`
}

func (TeamLeave) Run

func (t TeamLeave) Run(src cmd.Source, out *cmd.Output, tx *world.Tx)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL