editor

package
Version: v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Editor

type Editor interface {
	// Draw renders this Editor to a screen
	Draw(screen *ebiten.Image)
	// Update changes the internal state of the Editor and/or its Children
	Update() error
	// Save writes out and unsaved changes to the thing being edited
	Save() error
	// Exit deals with things like saving unsaved work
	Exit() (done bool, err error)
}

Editor is an interactive editor for some kind of graphics

func All

func All() (editors [Max]Editor)

All builds the available Editors

type Kind

type Kind int

Kind defines the different types of Editor

const (
	// SpriteKind is an editor of Sprites and Sprite Sets
	SpriteKind Kind = iota
	// Max is the total number of types of Editor
	Max
)

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to