icon

package
v0.0.0-...-fcffdc5 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Icon

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

func (*Icon) Invoke

func (icon *Icon) Invoke(usr *types.Datum, name string, parameters ...types.Value) types.Value

func (*Icon) Render

func (icon *Icon) Render(state string, dir common.Direction) (iconname string, frames []SourceXY, sourceWidth, sourceHeight uint)

func (*Icon) SetVar

func (icon *Icon) SetVar(name string, value types.Value)

func (*Icon) String

func (icon *Icon) String() string

func (*Icon) Var

func (icon *Icon) Var(name string) types.Value

type IconCache

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

func NewIconCache

func NewIconCache(pack *resourcepack.ResourcePack) (*IconCache, error)

func (*IconCache) Load

func (i *IconCache) Load(name string) (*Icon, bool)

func (*IconCache) LoadOrPanic

func (i *IconCache) LoadOrPanic(name string) *Icon

type SourceXY

type SourceXY struct {
	X uint `json:"x"`
	Y uint `json:"y"`
}

Jump to

Keyboard shortcuts

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