lib

package
v0.0.0-...-7daa7de Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attributes

type Attributes struct {
	WorldType   *string
	TagType     *string
	ChunkCoords *bool
}

Attributes ... Stores the required world and chunk tag attributes

type Coordinates

type Coordinates struct {
	X *int
	Y *int
	Z *int
}

Coordinates ... Stores the (X, Y, Z) world location

type HexKey

type HexKey struct {
	ChunkX   uint32
	ChunkY   int8
	ChunkZ   uint32
	WorldKey world.WorldType
	TagKey   tagbytes.TagType
}

func (*HexKey) ToString

func (hk *HexKey) ToString() string

type LDBKeyParameters

type LDBKeyParameters struct {
	Coords Coordinates
	Attrs  Attributes
}

LDBKeyParameters .. Stores all required parameters to create the hex key

func (*LDBKeyParameters) CalculateHexKey

func (lkp *LDBKeyParameters) CalculateHexKey() (hexKey HexKey)

Jump to

Keyboard shortcuts

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