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.
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
Click to show internal directories.
Click to hide internal directories.