Discover Packages
github.com/larspensjo/ephenation-server
src
chunkdb
package
Version:
v0.0.0-...-75e2e84
Opens a new window with list of versions in this module.
Published: Dec 8, 2014
License: GPL-3.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type CC struct {
X, Y, Z int32
}
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
Compare two chunk coordinates for equality
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.