Documentation ¶
Index ¶
Constants ¶
View Source
const ChannelFinishedFights = "finishedFights"
Variables ¶
This section is empty.
Functions ¶
func RegisterReport ¶
func RegisterReport(factory FightReportFactory)
func ReportNames ¶
func ReportNames() []string
Types ¶
type Fight ¶
type Fight struct { // Id is a unique identifier for the fight Id int // Target is the NPC that the fight is with Target string // Reports collect all of the information involved in the fight Reports FightReportSet // StartTime is when we first noticed we were involved StartTime time.Time // LastActivity is the last time we noticed a log message involving this fight LastActivity time.Time }
Fight is a collection of reports about an encounter with a specific NPC
type FightReportFactory ¶
type FightReportSet ¶
type FightReportSet map[string]FightReport
FightReportSet represents the whole collection of reports for a fight
func MergeFightReports ¶
func MergeFightReports(sets []FightReportSet) FightReportSet
func NewFightReports ¶
func NewFightReports(target string) FightReportSet
NewFightReports create a collection of reports specialized to a fight against the specified target
Click to show internal directories.
Click to hide internal directories.