datastore

package
v0.0.0-...-539d71c Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ItemData

type ItemData struct {
	VNum            int
	InventoryPocket enums.InventoryPocket
}

type ItemDataStore

type ItemDataStore struct {
	// contains filtered or unexported fields
}

func NewItemDataStore

func NewItemDataStore(loader ItemsLoader) (ItemDataStore, error)

func (ItemDataStore) SearchByVNum

func (i ItemDataStore) SearchByVNum(vnum int) (entities.Item, error)

type ItemsLoader

type ItemsLoader interface {
	Load() ([]ItemData, error)
}

type MapData

type MapData struct {
	Width, Height   int
	WalkabilityGrid [][]bool
}

type MapDataStore

type MapDataStore struct {
	// contains filtered or unexported fields
}

func NewMapDataStore

func NewMapDataStore(loader MapLoader) MapDataStore

func (MapDataStore) Size

func (m MapDataStore) Size(mapID int) (int, int, error)

func (MapDataStore) WalkabilityGrid

func (m MapDataStore) WalkabilityGrid(mapID int) ([][]bool, error)

type MapLoader

type MapLoader interface {
	Load(mapID int) (MapData, error)
}

Jump to

Keyboard shortcuts

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