achievements

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Achievement

type Achievement struct {
	ID          string
	Name        string
	Description string
	Icon        string
	IconIndex   int
	Conditions  []Condition
	Completed   bool
}

type Achievements

type Achievements struct {
	Achievements []Achievement
	Completed    []string
	IdMap        map[string]*Achievement
	// contains filtered or unexported fields
}

func New

func New(world *ecs.World, f fs.FS, file string, playerFile string) *Achievements

func (*Achievements) Check

func (a *Achievements) Check(ach *Achievement)

type Condition

type Condition struct {
	Type   string
	IDs    uint32
	Number int
}

Jump to

Keyboard shortcuts

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