mapmeta

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entities

type Entities struct {
	Blue  EntityLocations `toml:"blue,omitempty"`
	Green EntityLocations `toml:"green,omitempty"`
}

type EntityLocations

type EntityLocations struct {
	Flag []float64 `toml:"flag,omitempty"`
	Base []float64 `toml:"base,omitempty"`
}

type Fog

type Fog struct {
	R uint8 `toml:"r"`
	G uint8 `toml:"g"`
	B uint8 `toml:"b"`
}

type Metadata

type Metadata struct {
	Metadata   MetadataInfo   `toml:"metadata"`
	Fog        *Fog           `toml:"fog,omitempty"`
	Rules      *Rules         `toml:"rules,omitempty"`
	Spawns     Spawns         `toml:"spawns"`
	Extensions map[string]any `toml:"extensions,omitempty"`
	Entities   Entities       `toml:"entities"`
}

func Parse

func Parse(content []byte) (*Metadata, error)

type MetadataInfo

type MetadataInfo struct {
	Name        string `toml:"name"`
	Version     string `toml:"version,omitempty"`
	Author      string `toml:"author,omitempty"`
	Description string `toml:"description,omitempty"`
}

type Rules

type Rules struct {
	Protected    []string    `toml:"protected,omitempty"`
	Area         []float64   `toml:"area,omitempty"`
	Ball         []float64   `toml:"ball,omitempty"`
	BlueGoal     []float64   `toml:"blue_goal,omitempty"`
	GreenGoal    []float64   `toml:"green_goal,omitempty"`
	PenaltyAreas [][]float64 `toml:"penalty_areas,omitempty"`
}

type Spawns

type Spawns struct {
	Blue      [][]float64 `toml:"blue,omitempty"`
	Green     [][]float64 `toml:"green,omitempty"`
	BlueArea  []float64   `toml:"blue_area,omitempty"`
	GreenArea []float64   `toml:"green_area,omitempty"`
}

type Value

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

Jump to

Keyboard shortcuts

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