command

package
v0.0.0-...-205331c Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ban

type Ban struct {
	Target   OfflineTarget `cmd:"target"`
	Duration int           `cmd:"duration"`
	Reason   cmd.Varargs   `cmd:"reason"`
	// contains filtered or unexported fields
}

func (Ban) Allow

func (Ban) Allow(s cmd.Source) bool

func (Ban) Run

func (b Ban) Run(s cmd.Source, o *cmd.Output, tx *world.Tx)

type Duel

type Duel struct {
	Target onlineTarget `cmd:"target"`
	// contains filtered or unexported fields
}

func (Duel) Allow

func (Duel) Allow(s cmd.Source) bool

func (Duel) Run

func (d Duel) Run(s cmd.Source, o *cmd.Output, tx *world.Tx)

type GameMode

type GameMode struct {
	Type    gameModeEnum               `cmd:"gamemode"`
	Targets cmd.Optional[onlineTarget] `cmd:"target"`
	// contains filtered or unexported fields
}

func (GameMode) Allow

func (GameMode) Allow(s cmd.Source) bool

func (GameMode) Run

func (g GameMode) Run(s cmd.Source, o *cmd.Output, tx *world.Tx)

type Lobby

type Lobby struct {
	// contains filtered or unexported fields
}

func (Lobby) Allow

func (Lobby) Allow(s cmd.Source) bool

func (Lobby) Run

func (l Lobby) Run(s cmd.Source, o *cmd.Output, tx *world.Tx)

type OfflineTarget

type OfflineTarget string

func (OfflineTarget) Parse

func (o OfflineTarget) Parse(line *cmd.Line, v reflect.Value) error

func (OfflineTarget) Position

func (o OfflineTarget) Position() mgl64.Vec3

Position ...

func (OfflineTarget) Type

func (o OfflineTarget) Type() string

type Pardon

type Pardon struct {
	Target OfflineTarget `cmd:"target"`
	// contains filtered or unexported fields
}

func (Pardon) Allow

func (Pardon) Allow(s cmd.Source) bool

func (Pardon) Run

func (p Pardon) Run(s cmd.Source, o *cmd.Output, tx *world.Tx)

type Reply

type Reply struct {
	Message cmd.Varargs `cmd:"message"`
	// contains filtered or unexported fields
}

func (Reply) Allow

func (Reply) Allow(s cmd.Source) bool

func (Reply) Run

func (r Reply) Run(s cmd.Source, o *cmd.Output, tx *world.Tx)

type TeleportTargetToPos

type TeleportTargetToPos struct {
	Target onlineTarget `name:"target"`
	Pos    mgl64.Vec3   `name:"pos"`
	// contains filtered or unexported fields
}

TeleportTargetToPos is a command that teleports a target to a specific position.

func (TeleportTargetToPos) Allow

func (TeleportTargetToPos) Allow(s cmd.Source) bool

func (TeleportTargetToPos) Run

func (t TeleportTargetToPos) Run(s cmd.Source, o *cmd.Output, tx *world.Tx)

type TeleportTargetToTarget

type TeleportTargetToTarget struct {
	From onlineTarget `name:"from"`
	To   onlineTarget `name:"to"`
	// contains filtered or unexported fields
}

TeleportTargetToTarget is a command that teleports a target to another target.

func (TeleportTargetToTarget) Allow

func (TeleportTargetToTarget) Allow(s cmd.Source) bool

func (TeleportTargetToTarget) Run

func (t TeleportTargetToTarget) Run(s cmd.Source, o *cmd.Output, _ *world.Tx)

type TeleportToPos

type TeleportToPos struct {
	Pos mgl64.Vec3 `name:"pos"`
	// contains filtered or unexported fields
}

TeleportToPos is a command that teleports the sender to a specific position.

func (TeleportToPos) Allow

func (TeleportToPos) Allow(s cmd.Source) bool

func (TeleportToPos) Run

func (t TeleportToPos) Run(s cmd.Source, o *cmd.Output, tx *world.Tx)

type TeleportToTarget

type TeleportToTarget struct {
	Target onlineTarget `name:"target"`
	// contains filtered or unexported fields
}

TeleportToTarget is a command that teleports the sender to a specific target.

func (TeleportToTarget) Allow

func (TeleportToTarget) Allow(s cmd.Source) bool

func (TeleportToTarget) Run

func (t TeleportToTarget) Run(s cmd.Source, o *cmd.Output, tx *world.Tx)

type Whisper

type Whisper struct {
	Target  onlineTarget `cmd:"target"`
	Message cmd.Varargs  `cmd:"message"`
	// contains filtered or unexported fields
}

func (Whisper) Allow

func (Whisper) Allow(s cmd.Source) bool

func (Whisper) Run

func (w Whisper) Run(s cmd.Source, o *cmd.Output, tx *world.Tx)

Jump to

Keyboard shortcuts

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