transfer

package
v1.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Color

type Color struct {
	Red   float64 `json:"r"`
	Green float64 `json:"g"`
	Blue  float64 `json:"b"`
	Alpha float64 `json:"a"`
}

func (*Color) UnmarshalJSON

func (c *Color) UnmarshalJSON(data []byte) error

type FactorioIcon

type FactorioIcon struct {
	Icon        string     `json:"icon"`
	Icons       []IconData `json:"icons"`
	IconSize    int16      `json:"icon_size"`
	IconMipmaps uint8      `json:"icon_mipmaps"`
}

type IconData

type IconData struct {
	Icon        string   `json:"icon"`
	IconSize    int16    `json:"icon_size"`
	Tint        *Color   `json:"tint"`
	Shift       *Vector  `json:"shift"`
	Scale       *float64 `json:"scale"`
	IconMipmaps uint8    `json:"icon_mipmaps"`
}

type Layer

type Layer struct {
	FileName string
	Offset   Vector
	Scale    float64
	Size     int
	Tint     Color
}

type RenderIcon

type RenderIcon struct {
	Layers        []Layer
	OutputSize    int
	RenderedSize  int
	RenderedScale float64
}

func NewRenderIcon

func NewRenderIcon(factorioIcon FactorioIcon, sizeToRender int) RenderIcon

type Vector

type Vector struct {
	X float64
	Y float64
}

func (*Vector) UnmarshalJSON

func (v *Vector) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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