events

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventHandler

type EventHandler struct {
	Absorbed      func(event *Event, data *Absorbed)
	CombatantInfo func(event *Event, data *CombatantInfo)
	Damage        func(event *Event, data *Damage)
	Heal          func(event *Event, data *Heal)
	Unknown       func(event *Event, data *Unknown)
}

func (*EventHandler) Handle

func (handler *EventHandler) Handle(e *Event)

func (*EventHandler) HandleMany

func (handler *EventHandler) HandleMany(evts []Event)

type FilterFunc

type FilterFunc func(*Event) bool

func MultiFilter

func MultiFilter(fs ...FilterFunc) FilterFunc

func SourceFilter

func SourceFilter(source int64) FilterFunc

func TargetFilter

func TargetFilter(target int64) FilterFunc

Jump to

Keyboard shortcuts

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