Documentation ¶
Index ¶
- func InitStore() error
- type Store
- func (s *Store) Close()
- func (s *Store) GetChunkVersion(id Vec3) string
- func (s *Store) GetPlayerState() types.PlayerState
- func (s *Store) RangeBlocks(id Vec3, f func(bid Vec3, w *block.Block)) error
- func (s *Store) UpdateBlock(id Vec3, w *block.Block) error
- func (s *Store) UpdateChunkVersion(id Vec3, version string) error
- func (s *Store) UpdatePlayerState(state types.PlayerState) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
var (
Storage *Store
)
func (*Store) GetChunkVersion ¶
func (*Store) GetPlayerState ¶
func (s *Store) GetPlayerState() types.PlayerState
func (*Store) RangeBlocks ¶
func (*Store) UpdateChunkVersion ¶
func (*Store) UpdatePlayerState ¶
func (s *Store) UpdatePlayerState(state types.PlayerState) error
Click to show internal directories.
Click to hide internal directories.