map_client

package
v0.4.0-beta4 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 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

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

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

func (MapData) LevelDataForCoords

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