ingredient

package
v0.0.0-...-23eb08f Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IngredientsDatabase = Repository{/* contains filtered or unexported fields */}
)

Functions

This section is empty.

Types

type Effect

type Effect struct {
	// contains filtered or unexported fields
}

func (Effect) BaseCost

func (e Effect) BaseCost() float64

func (Effect) HideEffectDetails

func (e Effect) HideEffectDetails() Effect

func (Effect) IsDurationOnly

func (e Effect) IsDurationOnly() bool

func (Effect) IsImmediate

func (e Effect) IsImmediate() bool

func (Effect) IsMagnitudeOnly

func (e Effect) IsMagnitudeOnly() bool

func (Effect) IsUnknown

func (e Effect) IsUnknown() bool

func (Effect) Measure

func (e Effect) Measure() EffectMeasure

func (Effect) Name

func (e Effect) Name() string

type EffectMeasure

type EffectMeasure struct {
	// contains filtered or unexported fields
}

func (EffectMeasure) String

func (em EffectMeasure) String() string

type EffectType

type EffectType struct {
	// contains filtered or unexported fields
}

type Ingredient

type Ingredient struct {
	// contains filtered or unexported fields
}

func (Ingredient) Effects

func (i Ingredient) Effects() []Effect

func (Ingredient) Name

func (i Ingredient) Name() string

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

func (Repository) All

func (r Repository) All() []Ingredient

func (Repository) FindByName

func (r Repository) FindByName(name string) (Ingredient, error)

func (Repository) FindByNames

func (r Repository) FindByNames(names []string) ([]Ingredient, error)

Jump to

Keyboard shortcuts

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