ubi

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOperatorMap

func GetOperatorMap() (opNames map[string]Operator, err error)

GetOperatorMap queries an official Ubisoft resource, mapping operator names to operator metadata

Types

type Operator

type Operator struct {
	IsAttacker bool
}

type UbiOperatorJSON

type UbiOperatorJSON struct {
	Slug string `json:"slug"`
	// operatorName
	// operatorIcon.url
	// operatorThumbnail.url
	IsAttacker bool `json:"side"` // Ubisoft again with their funny naming
}

could also map more things if needed, i.e. operator icon URL

Jump to

Keyboard shortcuts

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