module

package
v0.0.0-...-0cb7d88 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: MIT, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CVToChance

func CVToChance(cv units.CV) float32

func ChanceString

func ChanceString(chance float32) string

func ChanceToCV

func ChanceToCV(chance float32) units.CV

Types

type Config

type Config struct {
	Gate   func(high bool)
	Chance float32
}

type RandomSkips

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

func (*RandomSkips) Chance

func (m *RandomSkips) Chance() float32

func (*RandomSkips) Gate

func (m *RandomSkips) Gate(value bool)

func (*RandomSkips) Init

func (m *RandomSkips) Init(config Config) error

func (*RandomSkips) SetCV

func (m *RandomSkips) SetCV(cv units.CV)

func (*RandomSkips) SetChance

func (m *RandomSkips) SetChance(chance float32)

func (*RandomSkips) Tick

func (m *RandomSkips) Tick(deltaTime time.Duration)

Jump to

Keyboard shortcuts

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