duelsmanager

package
v0.0.0-...-205331c Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Classic = gamemanager.New(func(mgr *gamemanager.Manager) igame.Impl {
	g := ClassicRaw()
	g.Game().SetPlayAgainHook(mgr.Join)
	return g
})
View Source
var ClassicRaw = func() igame.Impl {
	d := &duels.Duels{}
	d.SetKit(kit.Classic{})

	gConf := game.Config{
		Log:     slog.Default(),
		MapName: "classic",
		Impl:    d,
	}
	g, err := gConf.New()
	if err != nil {
		panic(err)
	}
	d.Create(g)
	return d
}
View Source
var NoDebuff = gamemanager.New(func(mgr *gamemanager.Manager) igame.Impl {
	g := NoDebuffRaw()
	g.Game().SetPlayAgainHook(mgr.Join)
	return g
})
View Source
var NoDebuffRaw = func() igame.Impl {
	d := &duels.Duels{}
	d.SetKit(kit.NoDebuff{})

	gConf := game.Config{
		Log:     slog.Default(),
		MapName: "classic",
		Impl:    d,
	}
	g, err := gConf.New()
	if err != nil {
		panic(err)
	}
	d.Create(g)
	return d
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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