map_client

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LevelData added in v0.3.0

type LevelData struct {
	Area          area.Area
	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

func (MapData) CollisionGrid

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

func (MapData) GetLevelData added in v0.3.0

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

func (MapData) LevelDataForCoords added in v0.3.0

func (md MapData) LevelDataForCoords(p data.Position, act int) (LevelData, bool)

func (MapData) NPCsExitsAndObjects

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

func (MapData) Origin

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

Jump to

Keyboard shortcuts

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