Documentation
¶
Overview ¶
Package character reads characters captured by ForeverScribe (https://github.com/MattMaximo/foreverscribe, MIT) into a typed model.
Fields ForeverScribe did not capture are nil (or an empty string for text), never invented.
Index ¶
Constants ¶
const DBVariable = "ForeverScribeDB"
DBVariable is the one global the addon writes.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Character ¶
type Character struct {
Key string // "Realm:Name"; the name alone when the realm is empty
Name string
Realm string
Level *int
Class string
Race string
Faction string
Money *int
XP *int
XPMax *int
RestedXP *int // experience points (GetXPExhaustion), not a percentage
CapturedAt *int64
Addon string
Client Client
Location *Location // nil when the capture holds none
Hearth string // the hearthstone's bind location name
Equipment map[string]EquippedItem // nil when not captured
Bags []ItemStack
BagsCaptured bool
Bank []ItemStack
BankCaptured bool // false until the player has opened the bank with ForeverScribe running
Quests []Quest
QuestsCaptured bool
CompletedQuests []int
Talents *Talents
Skills []Skill
SkillsCaptured bool
Professions []Skill // each profession once
Reputations []Reputation
}
type EquippedItem ¶
type File ¶
File is everything one SavedVariables file holds.
func LoadFile ¶
LoadFile reads and parses a ForeverScribe.lua file. A malformed file is a *lua.ParseError.
func (File) CapturedAt ¶
CapturedAt is the newest capture time over all characters.
type Location ¶ added in v0.4.0
Location is where the character stood at the last save (ForeverScribe snapshot.location). X and Y are percent of the map (0 to 100) and nil when the client gave no position.
type Reputation ¶
type TalentGroup ¶
TalentGroup is one named branch of a tree (for example "Discipline") and its spent points.