chunkdb

package
v0.0.0-...-75e2e84 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2014 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CC

type CC struct {
	// Values are scaled by CHUNK_SIZE to get block coordinates
	X, Y, Z int32 // Relative world center
}

A chunk coordinate, an address of any chunk in the world. This will limit the size of the world to 0x100000000 * 32 = 1,37E11 blocks

func (CC) Equal

func (chunk CC) Equal(chunk2 CC) bool

Compare two chunk coordinates for equality

func (CC) UpdateLSB

func (this CC) UpdateLSB(x, y, z uint8) (ret CC)

Given only the LSB of the chunk coordinate, compute the full coordinate, relative to a given coordinate. A requirement is that the distance from the relative chunk is small.

Jump to

Keyboard shortcuts

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