state

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIntFromState

func GetIntFromState[T ~int](s State, valName string) (T, error)

Types

type Property

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

func NewProperty

func NewProperty(name string, Val string) Property

func PropertyFromString

func PropertyFromString(str string) (Property, error)

func (Property) String

func (s Property) String() string

type State

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

func (State) GetProperty

func (s State) GetProperty(str string) (*Property, error)

func (State) GetValue

func (s State) GetValue(str string) (string, error)

func (State) String

func (s State) String() string

func (State) ToTextureKey

func (s State) ToTextureKey() string

func (State) UpdateValue

func (s State) UpdateValue(str string, val string) error

type StateBuilder

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

func StateBuilderFromStr

func StateBuilderFromStr(str string) (StateBuilder, error)

func (*StateBuilder) Add

func (s *StateBuilder) Add(prop ...Property) *StateBuilder

func (StateBuilder) Build

func (s StateBuilder) Build() State

Jump to

Keyboard shortcuts

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