v11_13_0

package
v0.0.0-...-5ce5ac0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractConstructions

func ExtractConstructions(pageHTML []byte, clock clockwork.Clock) (buildingID ogame.ID, buildingCountdown int64,
	researchID ogame.ID, researchCountdown int64,
	lfBuildingID ogame.ID, lfBuildingCountdown int64,
	lfResearchID ogame.ID, lfResearchCountdown int64)

Types

type Extractor

type Extractor struct {
	v11_9_0.Extractor
}

Extractor ...

func NewExtractor

func NewExtractor() *Extractor

NewExtractor ...

func (*Extractor) ExtractConstructions

func (e *Extractor) ExtractConstructions(pageHTML []byte) (buildingID ogame.ID, buildingCountdown int64, researchID ogame.ID, researchCountdown int64, lfBuildingID ogame.ID, lfBuildingCountdown int64, lfResearchID ogame.ID, lfResearchCountdown int64)

ExtractConstructions ...

func (*Extractor) ExtractFleets

func (e *Extractor) ExtractFleets(pageHTML []byte) (res []ogame.Fleet)

ExtractFleets ...

func (*Extractor) ExtractFleetsFromDoc

func (e *Extractor) ExtractFleetsFromDoc(doc *goquery.Document) (res []ogame.Fleet)

ExtractFleetsFromDoc ...

func (Extractor) ExtractOverviewShipSumCountdownFromBytes

func (e Extractor) ExtractOverviewShipSumCountdownFromBytes(pageHTML []byte) int64

ExtractOverviewShipSumCountdownFromBytes ...

func (*Extractor) ExtractProduction

func (e *Extractor) ExtractProduction(pageHTML []byte) ([]ogame.Quantifiable, int64, error)

ExtractProduction extracts ships/defenses production from the shipyard page

Jump to

Keyboard shortcuts

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