assetcollection

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package assetcollection provides data structures to analyze and process asset data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetCollection

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

AssetCollection is a collection of assets. The assets are structured as one asset tree per location and may contain assets belonging to one or multiple characters.

func New

func New(assets []*app.CharacterAsset, locations []*app.EveLocation) AssetCollection

New returns a new AssetCollection from a slice of character assets.

func (AssetCollection) AssetParentLocation

func (at AssetCollection) AssetParentLocation(id int64) (*app.EveLocation, bool)

func (AssetCollection) Locations

func (at AssetCollection) Locations() []LocationNode

type AssetNode

type AssetNode struct {
	Asset *app.CharacterAsset
	// contains filtered or unexported fields
}

AssetNode is a node in an asset tree representing an asset, e.g. a ship.

func (AssetNode) Nodes

func (an AssetNode) Nodes() []AssetNode

type LocationNode

type LocationNode struct {
	Location *app.EveLocation
	// contains filtered or unexported fields
}

LocationNode is the root node in an asset tree representing a location, e.g. a station.

func (LocationNode) Nodes

func (ln LocationNode) Nodes() []AssetNode

Jump to

Keyboard shortcuts

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