app

package
v0.0.0-...-1c74843 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Debug   = "Debug"
	Release = "Release"
	All     = "All"
)
View Source
const (
	VERSION = "1.0"
)

Variables

View Source
var App = gcli.NewApp(func(app *gcli.App) {
	app.Version = VERSION
	app.Desc = "A tool for managing & building the ebitengine game."
	app.On(gcli.EvtAppInit, func(data ...interface{}) bool {
		return false
	})
	app.Logo.Text = `
		
███████╗██████╗ ██╗██████╗ ██╗   ██╗██╗██╗     ██████╗ ███████╗██████╗ 
██╔════╝██╔══██╗██║██╔══██╗██║   ██║██║██║     ██╔══██╗██╔════╝██╔══██╗
█████╗  ██████╔╝██║██████╔╝██║   ██║██║██║     ██║  ██║█████╗  ██████╔╝
██╔══╝  ██╔══██╗██║██╔══██╗██║   ██║██║██║     ██║  ██║██╔══╝  ██╔══██╗
███████╗██████╔╝██║██████╔╝╚██████╔╝██║███████╗██████╔╝███████╗██║  ██║
╚══════╝╚═════╝ ╚═╝╚═════╝  ╚═════╝ ╚═╝╚══════╝╚═════╝ ╚══════╝╚═╝  ╚═╝
                                                                       
		`
	app.Add(SelfUpdateCmd, CleanCmd, BuildCmd, ConfigCmd, CreateCmd)
	app.Add(builtin.GenAutoComplete())
	app.Add(builtin.GenEmojiMap)
})
View Source
var BuildCmd = NewBuildCmd()
View Source
var CFF fs.FS
View Source
var CleanCmd = NewCleanCmd()
View Source
var ConfigCmd = NewConfigCmd()
View Source
var CreateCmd = NewCreateCmd()
View Source
var CreateFile embed.FS
View Source
var SelfUpdateCmd = NewSelfUpdateCmd()
View Source
var WASMfile embed.FS
View Source
var WF fs.FS

Functions

func BuildGame

func BuildGame() error

func CleanGame

func CleanGame() error

func ConfigGame

func ConfigGame() error

func CreateGame

func CreateGame() error

func DebugBuild

func DebugBuild(IsFileBuild bool) error

func InitConfig

func InitConfig() error

func NewBuildCmd

func NewBuildCmd() *gcli.Command

func NewCleanCmd

func NewCleanCmd() *gcli.Command

func NewConfigCmd

func NewConfigCmd() *gcli.Command

func NewCreateCmd

func NewCreateCmd() *gcli.Command

func NewSelfUpdateCmd

func NewSelfUpdateCmd() *gcli.Command

func PrintConfig

func PrintConfig() error

func PublishWASM

func PublishWASM() error

func ReleaseBuild

func ReleaseBuild(IsFileBuild bool) error

func SelfUpdate

func SelfUpdate() error

Types

type Project

type Project struct {
	IsGomod     bool   `json:"IsGomod,omitempty"`
	IsEbitenv1  bool   `json:"IsEbitenv1,omitempty"`
	EbiVersion  string `json:"EbiVersion,omitempty"`
	BuildMode   string `json:"BuildMode,omitempty"`
	OutputName  string `json:"OutputName,omitempty"`
	Config      string `json:"Config,omitempty"`
	Path        string `json:"Path,omitempty"`
	GameName    string `json:"GameName,omitempty"`
	GameVersion string `json:"GameVersion,omitempty"`
	Iconfile    string `json:"Iconfile,omitempty"`
}
var Npj Project
var Pj Project

func UnmarshalProject

func UnmarshalProject(data []byte) (Project, error)

func (*Project) Marshal

func (r *Project) Marshal() ([]byte, error)

Jump to

Keyboard shortcuts

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