multiworld

package
v0.0.0-...-3433490 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Worlds = make(map[string](*world.World))

Functions

func GetWorld

func GetWorld(id string) *world.World

func LoadWorld

func LoadWorld(id string, path string, log *logrus.Logger) *world.World

func Register

func Register(srv *server.Server)

func TransferWorld

func TransferWorld(p *player.Player, w *world.World, pos mgl64.Vec3)

Types

type MultiWorldHandler

type MultiWorldHandler struct {
	world.NopHandler
}

func (MultiWorldHandler) HandleClose

func (MultiWorldHandler) HandleClose()

type TransferWorldCommand

type TransferWorldCommand struct {
	Id  string
	Pos cmd.Optional[mgl64.Vec3]
}

func (TransferWorldCommand) Allow

func (TransferWorldCommand) Allow(source cmd.Source) bool

func (TransferWorldCommand) Run

func (c TransferWorldCommand) Run(source cmd.Source, output *cmd.Output)

type WorldListCommand

type WorldListCommand struct{}

func (WorldListCommand) Allow

func (WorldListCommand) Allow(source cmd.Source) bool

func (WorldListCommand) Run

func (c WorldListCommand) Run(source cmd.Source, output *cmd.Output)

Jump to

Keyboard shortcuts

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