v10

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivityJson

type ActivityJson struct {
	Minutes int64
}

func (*ActivityJson) UnmarshalJSON

func (a *ActivityJson) UnmarshalJSON(d []byte) error

type CInt64

type CInt64 int64

func (CInt64) Int64

func (c CInt64) Int64() int64

func (*CInt64) UnmarshalJSON

func (c *CInt64) UnmarshalJSON(d []byte) error

type ContentJson

type ContentJson struct {
	Galaxy   CInt64      `json:"galaxy"`
	System   CInt64      `json:"system"`
	Position CInt64      `json:"position"`
	Planets  PlanetsList `json:"planets"`
	Player   PlayerJson  `json:"player"`
	Filters  string      `json:"positionFilters"`
}

type Extractor

type Extractor struct {
	v9.Extractor
}

Extractor ...

func NewExtractor

func NewExtractor() *Extractor

NewExtractor ...

func (*Extractor) ExtractGalaxyInfos

func (e *Extractor) ExtractGalaxyInfos(pageHTML []byte, botPlayerName string, botPlayerID, botPlayerRank int64) (ogame.SystemInfos, error)

ExtractGalaxyInfos ...

type GalaxyInfosJson

type GalaxyInfosJson struct {
	Success bool       `json:"success"`
	Token   string     `json:"newAjaxToken"`
	System  SystemJson `json:"system"`
}

type PlanetJson

type PlanetJson struct {
	PlayerID      CInt64        `json:"playerId"`
	PlanetID      CInt64        `json:"planetId"`
	PlanetName    string        `json:"planetName"`
	Image         string        `json:"imageInformation"`
	PlanetType    CInt64        `json:"planetType"`
	IsDestroyed   bool          `json:"isDestroyed"`
	Size          CInt64        `json:"size"`
	RequiredShips CInt64        `json:"requiredShips"`
	Resources     ResourcesJson `json:"resources"`
	Activity      ActivityJson  `json:"activity"`
}

type PlanetsList

type PlanetsList []PlanetJson

func (*PlanetsList) UnmarshalJSON

func (p *PlanetsList) UnmarshalJSON(d []byte) error

type PlayerJson

type PlayerJson struct {
	PlayerID          CInt64   `json:"playerId"`
	PlayerName        string   `json:"playerName"`
	AllianceID        CInt64   `json:"allianceId"`
	AllianceName      string   `json:"allianceName"`
	AllianceTag       string   `json:"allianceTag"`
	IsAllianceMember  bool     `json:"isAllianceMember"`
	PositionPlayer    CInt64   `json:"highscorePositionPlayer"`
	PositionAlliance  CInt64   `json:"highscorePositionAlliance"`
	IsAdmin           bool     `json:"isAdmin"`
	IsBanned          bool     `json:"isBanned"`
	IsOnVacation      bool     `json:"isOnVacation"`
	IsNewbie          bool     `json:"isNewbie"`
	IsStrong          bool     `json:"isStrong"`
	IsHonorableTarget bool     `json:"isHonorableTarget"`
	IsInactive        bool     `json:"isInactive"`
	Rank              RankJson `json:"rank"`
}

type RankJson

type RankJson struct {
	HasRank   bool   `json:"hasRank"`
	RankTitle string `json:"rankTitle"`
	RankClass string `json:"rankClass"`
}

type ResourcesJson

type ResourcesJson struct {
	Metal     int64
	Crystal   int64
	Deuterium int64
}

func (*ResourcesJson) UnmarshalJSON

func (r *ResourcesJson) UnmarshalJSON(d []byte) error

type SystemJson

type SystemJson struct {
	Galaxy            CInt64        `json:"galaxy"`
	System            CInt64        `json:"system"`
	DeuteriumInDebris bool          `json:"deuteriumInDebris"`
	Content           []ContentJson `json:"galaxyContent"`
}

Jump to

Keyboard shortcuts

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