dscnv

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: May 27, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run()

Types

type DataStruct

type DataStruct struct {
	Geometry map[string]GeometryData `json:"geometry"`
	Assets   interface{}             `json:"assets"`
}

type Dungeon

type Dungeon struct {
	Min      *Point `json:"min"`
	Max      *Point `json:"max"`
	Polygons []*Polygon
}

func (*Dungeon) Dimensions

func (d *Dungeon) Dimensions() (width, height int)

type GeometryData

type GeometryData struct {
	Polygons  [][][][]float64 `json:"polygons"`
	Polylines []interface{}   `json:"polylines"`
}

type Point

type Point struct {
	X float64 `json:"x"`
	Y float64 `json:"y"`
}

func (*Point) String

func (pp *Point) String() string

type Polygon

type Polygon struct {
	Points []*Point `json:"points"`
	Min    *Point   `json:"min"`
	Max    *Point   `json:"max"`
}

type RootStructure

type RootStructure struct {
	Version int        `json:"version"`
	Data    DataStruct `json:"data"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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