game

package
v0.0.0-...-c52fe67 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: GPL-3.0 Imports: 0 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 string
const (
	IconUndefined Icon = ""
	IconGamepad   Icon = "gamepad" // 🎮 video game (U+1F3AE)
	IconCloud     Icon = "cloud"   // ☁️ cloud (U+2601)
	IconPeople    Icon = "people"  // 👥 busts in silhouette (U+1F465)
)

func NewIcon

func NewIcon(name string) Icon

func (Icon) String

func (i Icon) String() string

type Platform

type Platform uint8
const (
	PlatformUndefined Platform = 0
	PlatformLinux     Platform = 1
	PlatformMacOS     Platform = 2
	PlatformWindows   Platform = 3
	PlatformWeb       Platform = 4
)

func NewPlatform

func NewPlatform(v uint8) Platform

func NewPlatformByString

func NewPlatformByString(v string) Platform

func (Platform) String

func (p Platform) String() string

func (Platform) Value

func (p Platform) Value() uint8

type PlatformArray

type PlatformArray []Platform

func NewPlatformArray

func NewPlatformArray(v ...uint8) PlatformArray

func NewPlatformArrayByStrings

func NewPlatformArrayByStrings(v ...string) PlatformArray

func (*PlatformArray) Add

func (p *PlatformArray) Add(v Platform)

func (PlatformArray) Items

func (p PlatformArray) Items() []Platform

func (PlatformArray) Strings

func (p PlatformArray) Strings() []string

func (PlatformArray) Values

func (p PlatformArray) Values() []uint8

type Type

type Type uint8
const (
	TypeUndefined Type = 0
	TypeOrigin    Type = 1
	TypeEdition   Type = 2
	TypeDLC       Type = 3
)

func NewType

func NewType(v uint8) Type

func NewTypeByString

func NewTypeByString(v string) Type

func (Type) String

func (p Type) String() string

func (Type) Value

func (p Type) Value() uint8

Jump to

Keyboard shortcuts

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