lifewatcher

package
v0.0.0-...-e1d1e6e Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitAudio

func InitAudio(path string) (*beep.Buffer, error)

func ResetXPCalc

func ResetXPCalc(XP *ExperienceCalc)

func UseHP

func UseHP()

func UseHPMerc

func UseHPMerc()

func UseMana

func UseMana()

func UseMercRejuv

func UseMercRejuv()

func UseRejuv

func UseRejuv()

Types

type ExperienceCalc

type ExperienceCalc struct {
	XP           [25]int
	XP_aux       [25]int
	XParray      [25]float64
	XPbefore     int `default:"0"`
	IndexUpdated int `default:"0"`

	FirstStart bool    `default:"true"`
	Minutes    float64 `default:"0"`
	Hours      float64 `default:"0"`
	// contains filtered or unexported fields
}

type Manager

type Manager struct {
	Timer time.Time
	// contains filtered or unexported fields
}

type Watcher

type Watcher struct {
	Gr *memory.GameReader
}

func NewWatcher

func NewWatcher(gr *memory.GameReader) *Watcher

func (*Watcher) Start

func (w *Watcher) Start(ctx context.Context, manager *Manager, XP *ExperienceCalc, audioBufferL *beep.Buffer, audioBufferM *beep.Buffer, audioBufferR *beep.Buffer) error

Jump to

Keyboard shortcuts

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