data

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MapTypeRawOpenpvpBlack1                        = "OPENPVP_BLACK_1"
	MapTypeRawOpenpvpBlack2                        = "OPENPVP_BLACK_2"
	MapTypeRawOpenpvpBlack3                        = "OPENPVP_BLACK_3"
	MapTypeRawOpenpvpBlack4                        = "OPENPVP_BLACK_4"
	MapTypeRawOpenpvpBlack5                        = "OPENPVP_BLACK_5"
	MapTypeRawOpenpvpBlack6                        = "OPENPVP_BLACK_6"
	MapTypeRawOpenpvpRed                           = "OPENPVP_RED"
	MapTypeRawOpenpvpYellow                        = "OPENPVP_YELLOW"
	MapTypeRawSafearea                             = "SAFEAREA" // blue
	MapTypeRawTunnelBlackHigh                      = "TUNNEL_BLACK_HIGH"
	MapTypeRawTunnelBlackLow                       = "TUNNEL_BLACK_LOW"
	MapTypeRawTunnelBlackMedium                    = "TUNNEL_BLACK_MEDIUM"
	MapTypeRawTunnelDeep                           = "TUNNEL_DEEP"
	MapTypeRawTunnelDeepRaid                       = "TUNNEL_DEEP_RAID"
	MapTypeRawTunnelHideout                        = "TUNNEL_HIDEOUT"
	MapTypeRawTunnelHideoutDeep                    = "TUNNEL_HIDEOUT_DEEP"
	MapTypeRawTunnelHigh                           = "TUNNEL_HIGH"
	MapTypeRawTunnelLow                            = "TUNNEL_LOW"
	MapTypeRawTunnelMedium                         = "TUNNEL_MEDIUM"
	MapTypeRawTunnelRoyal                          = "TUNNEL_ROYAL"
	MapTypeRawPlayercityBlack                      = "PLAYERCITY_BLACK"                        // Brecilien, Rests
	MapTypeRawPlayercityBlackNofurniture           = "PLAYERCITY_BLACK_NOFURNITURE"            // Brecilien*
	MapTypeRawPlayercityBlackRoyal                 = "PLAYERCITY_BLACK_ROYAL"                  // Caerleon
	MapTypeRawPlayercityBlackPortalcityNofurniture = "PLAYERCITY_BLACK_PORTALCITY_NOFURNITURE" // Portals
	MapTypeRawPlayercitySafearea01                 = "PLAYERCITY_SAFEAREA_01"                  // Martlock, Thetford, Bridgewatch
	MapTypeRawPlayercitySafearea02                 = "PLAYERCITY_SAFEAREA_02"                  // Fort Sterling, Lymhurst
)

MapTypes cat pkg/ao/data/ao-bin-dumps/cluster/world.json | jq .world.clusters | jq '.cluster[]."@type"' | sort | uniq

View Source
const (
	MapTypeUnknown    = "Unknown"
	MapTypeBlackZone  = "Black"
	MapTypeRedZone    = "Red"
	MapTypeYellowZone = "Yellow"
	MapTypeBlueZone   = "Blue"
	MapTypeAvalon     = "Avalon"
	MapTypeCity       = "City"
)

User friendly map types

View Source
const (
	TierErr = "T0(Error)"
	Tier1   = "T1"
	Tier2   = "T2"
	Tier3   = "T3"
	Tier4   = "T4"
	Tier5   = "T5"
	Tier6   = "T6"
	Tier7   = "T7"
	Tier8   = "T8"
)

Tiers

Variables

View Source
var (
	Maps = map[string]MapData{}
)

Functions

func GetMapShortName

func GetMapShortName(mapData MapData) string

func GetMapTier

func GetMapTier(mapData MapData) string

func GetMapType

func GetMapType(mapData MapData) string

Types

type MapData

type MapData struct {
	ID           string `json:"@id"`
	File         string `json:"@file"`
	DisplayName  string `json:"@displayName"`
	Type         string `json:"@type"`
	Distribution struct {
		Resources []Resource `json:"resource"`
	} `json:"distribution"`
}

func GetMapDataFromName

func GetMapDataFromName(displayName string) (MapData, bool)

type Resource

type Resource struct {
	Name  string `json:"@name"`
	Tier  string `json:"@tier"`
	Count string `json:"@count"`
}

Jump to

Keyboard shortcuts

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