store

package
v0.0.0-...-b8cd253 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitStore

func InitStore() error

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}
var (
	Storage *Store
)

func NewStore

func NewStore(p string) (*Store, error)

func (*Store) Close

func (s *Store) Close()

func (*Store) GetChunkVersion

func (s *Store) GetChunkVersion(id Vec3) string

func (*Store) GetPlayerState

func (s *Store) GetPlayerState() types.PlayerState

func (*Store) RangeBlocks

func (s *Store) RangeBlocks(id Vec3, f func(bid Vec3, w *block.Block)) error

func (*Store) UpdateBlock

func (s *Store) UpdateBlock(id Vec3, w *block.Block) error

func (*Store) UpdateChunkVersion

func (s *Store) UpdateChunkVersion(id Vec3, version string) error

func (*Store) UpdatePlayerState

func (s *Store) UpdatePlayerState(state types.PlayerState) error

Jump to

Keyboard shortcuts

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