library

package
v0.0.0-...-0e8e2b8 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfig

func DefaultConfig(gen world.Generator) (server.Config, error)

Types

type Generator

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

func NewGenerator

func NewGenerator(str structure.Structure) Generator

func (Generator) GenerateChunk

func (g Generator) GenerateChunk(_ world.ChunkPos, chunk *chunk.Chunk)

func (Generator) LoopChunk

func (g Generator) LoopChunk(callback func(x uint8, y uint8, z uint8))

type Library

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

func New

func New(c server.Config, pro *session.Provider) *Library

func (*Library) HandleJoin

func (l *Library) HandleJoin(ses *session.Session)

func (*Library) HandleQuit

func (l *Library) HandleQuit(ses *session.Session)

func (*Library) Start

func (l *Library) Start()

type NopLogger

type NopLogger struct{}

func (NopLogger) Debugf

func (n NopLogger) Debugf(string, ...any)

func (NopLogger) Errorf

func (n NopLogger) Errorf(string, ...any)

func (NopLogger) Fatalf

func (n NopLogger) Fatalf(string, ...any)

func (NopLogger) Infof

func (n NopLogger) Infof(string, ...any)

func (NopLogger) Warnf

func (n NopLogger) Warnf(string, ...any)

type TeleportPlayer

type TeleportPlayer struct {
	Target []cmd.Target `cmd:"target"`
}

func (TeleportPlayer) Run

func (t TeleportPlayer) Run(src cmd.Source, out *cmd.Output)

type TeleportRoom

type TeleportRoom struct {
	X   int                  `cmd:"x"`
	Y   int                  `cmd:"y"`
	Z   int                  `cmd:"z"`
	Hex cmd.Optional[string] `cmd:"hex"`
}

func (TeleportRoom) Run

func (t TeleportRoom) Run(src cmd.Source, out *cmd.Output)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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