Documentation ¶
Index ¶
- Constants
- Variables
- type AdventureTable
- func (t *AdventureTable) ActiveCompanions() []*FollowerInfo
- func (t *AdventureTable) Companions() []*FollowerInfo
- func (t *AdventureTable) CompanionsOnMission(m *MissionDetail) []*FollowerInfo
- func (t *AdventureTable) IdleCompanions() []*FollowerInfo
- func (t *AdventureTable) MissionsActive() []*MissionDetail
- func (t *AdventureTable) MissionsComplete() []*MissionDetail
- func (t *AdventureTable) NumCompanions() int
- type AdventureTables
- type Character
- type CurrencyReward
- type Data
- type EncounterIconInfo
- type FollowerInfo
- type GarrisonFollowerType
- type ItemReward
- type MissionDetail
- type SavedVariables
- type XPReward
Constants ¶
View Source
const ( AlertTime = time.Minute * 30 WarnTime = time.Hour * 1 )
View Source
const ( PollingInterval time.Duration = time.Millisecond * 100 RetryInterval time.Duration = time.Millisecond * 500 MaxRetries int = 3 )
Variables ¶
View Source
var ( // The saved variables file is empty. ErrAddonContentsEmpty = errors.New("error parsing file: contents empty") // Error decoding 0 bytes. ErrDecodeData = errors.New("error decoding data: nil or empty byte array") // Error decompressing data. ErrDecompressData = errors.New("error decompressing data") // Export string not found in saved variables file. ErrExportMatchNotFound = errors.New("export match not found") )
Functions ¶
This section is empty.
Types ¶
type AdventureTable ¶
type AdventureTable struct { Type GarrisonFollowerType Followers map[string]*FollowerInfo `json:",omitempty"` //nolint:tagliatelle Missions []*MissionDetail }
func (*AdventureTable) ActiveCompanions ¶
func (t *AdventureTable) ActiveCompanions() []*FollowerInfo
func (*AdventureTable) Companions ¶
func (t *AdventureTable) Companions() []*FollowerInfo
func (*AdventureTable) CompanionsOnMission ¶
func (t *AdventureTable) CompanionsOnMission(m *MissionDetail) []*FollowerInfo
func (*AdventureTable) IdleCompanions ¶
func (t *AdventureTable) IdleCompanions() []*FollowerInfo
func (*AdventureTable) MissionsActive ¶
func (t *AdventureTable) MissionsActive() []*MissionDetail
func (*AdventureTable) MissionsComplete ¶
func (t *AdventureTable) MissionsComplete() []*MissionDetail
func (*AdventureTable) NumCompanions ¶
func (t *AdventureTable) NumCompanions() int
type AdventureTables ¶
type AdventureTables map[string]*AdventureTable
type Character ¶
type Character struct { Key string Class string Gender string LastSeen int Level int Money int MoneyText string Name string PlayedLevel int PlayedTotal int Race string Realm string ReservoirAnima int AdventureTables AdventureTables }
func (*Character) Table ¶
func (char *Character) Table(followerType GarrisonFollowerType) *AdventureTable
type CurrencyReward ¶
func (CurrencyReward) String ¶
func (cr CurrencyReward) String() string
type Data ¶
func (*Data) CharacterKeys ¶
func (*Data) NumMissionsActive ¶
func (d *Data) NumMissionsActive(followerType GarrisonFollowerType) int
func (*Data) NumMissionsComplete ¶
func (d *Data) NumMissionsComplete(followerType GarrisonFollowerType) int
type EncounterIconInfo ¶
type FollowerInfo ¶
type GarrisonFollowerType ¶
type GarrisonFollowerType int
https://wowpedia.fandom.com/wiki/Enum.GarrisonFollowerType
const ( // Garrison follower type. FollowerType_6_0 GarrisonFollowerType = 1 //nolint:golint,revive // Shipyard follower type. FollowerType_6_2 GarrisonFollowerType = 2 //nolint:golint,revive // Legion follower type. FollowerType_7_0 GarrisonFollowerType = 4 //nolint:golint,revive // Battle for Azeroth follower type. FollowerType_8_0 GarrisonFollowerType = 22 //nolint:golint,revive // Shadowlands follower type. FollowerType_9_0 GarrisonFollowerType = 123 //nolint:golint,revive )
type ItemReward ¶
func (ItemReward) String ¶
func (ir ItemReward) String() string
type MissionDetail ¶
type MissionDetail struct { BaseCost int CharText string Cost int CostCurrencyTypesID int DurationSeconds int EncounterIconInfo *EncounterIconInfo Followers []string FollowerInfo map[string]*FollowerInfo FollowerTypeID GarrisonFollowerType // Enum.GarrisonFollowerType InProgress bool MissionEndTime int64 MissionID int MissionScalar int Name string Rewards []*json.RawMessage // one of a few reward types -- currency, item, xp Type string Xp int }
func (*MissionDetail) BonusReward ¶
func (m *MissionDetail) BonusReward() string
func (*MissionDetail) IsComplete ¶
func (m *MissionDetail) IsComplete() bool
func (*MissionDetail) TimeRemaining ¶
func (m *MissionDetail) TimeRemaining() (s string)
type SavedVariables ¶
type SavedVariables struct { Current *Data Data chan *Data File string // contains filtered or unexported fields }
func NewSV ¶
func NewSV(name string) *SavedVariables
func (*SavedVariables) LoadAddonData ¶
func (sv *SavedVariables) LoadAddonData() error
func (*SavedVariables) TriggerWrite ¶
func (sv *SavedVariables) TriggerWrite()
Click to show internal directories.
Click to hide internal directories.