map_client

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LevelData

type LevelData struct {
	Area          area.ID
	Name          string
	Offset        data.Position
	Size          data.Position
	CollisionGrid [][]bool
}

type MapData

type MapData []serverLevel

func GetMapData

func GetMapData(seed string, difficulty difficulty.Difficulty) (MapData, error)

func (MapData) CollisionGrid

func (md MapData) CollisionGrid(area area.ID) [][]bool

func (MapData) GetLevelData

func (md MapData) GetLevelData(id area.ID) (LevelData, bool)

func (MapData) LevelDataForCoords

func (md MapData) LevelDataForCoords(p data.Position, playerArea area.Area) (LevelData, bool)

func (MapData) NPCsExitsAndObjects

func (md MapData) NPCsExitsAndObjects(areaOrigin data.Position, a area.ID) (data.NPCs, []data.Level, []data.Object, []data.Room)

func (MapData) Origin

func (md MapData) Origin(area area.ID) data.Position

Jump to

Keyboard shortcuts

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