datatype

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientEvent

type ClientEvent struct {
	EventType ClientEventType
	Data      interface{}
}

type ClientEventType

type ClientEventType int32
const (
	EventTypeReset ClientEventType = iota
	EventTypeColorChange
	EventClientRegistered
	EventTypeDownloadRequest
)

type Color

type Color uint32

Color is the Color of one pixel in the Canvas

type DisplayMessage

type DisplayMessage struct {
	Screen  [][]Color
	CursorX uint8
	CursorY uint8
}

func NewDisplayMessage

func NewDisplayMessage(mat [][]Color, x, y uint8) *DisplayMessage

func (DisplayMessage) String

func (dm DisplayMessage) String() string

type HatEvent

type HatEvent uint8
const (
	Pressed HatEvent = iota
	MoveUp
	MoveLeft
	MoveDown
	MoveRight
)

Jump to

Keyboard shortcuts

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