world

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type World

type World interface {
	Compress(chunkX int32, chunkZ int32) uint64

	GetChunk(chunkX int32, chunkZ int32) *chunks.Chunk
	SetChunk(chunkX int32, chunkZ int32, chunk *chunks.Chunk)

	UnloadChunk(chunkX int32, chunkZ int32)
	GetAllChunks() []*chunks.Chunk
}

type WorldManager

type WorldManager interface {
	GetWorld(name string) *World

	UnloadWorld(world *World)
	LoadWorld(filePath string)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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