application

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run()

func SignalNotify

func SignalNotify()

Types

type AppInterface

type AppInterface interface {
	OnInit() error
	OnReload() error
	OnProc() bool // return: isIdle
	OnTick(lastMs, nowMs int64)
	OnExit()
}

type Application

type Application struct {
	// contains filtered or unexported fields
}

func Init

func Init(handler AppInterface) *Application

func (*Application) SetTickInterval added in v1.0.4

func (a *Application) SetTickInterval(interval int64)

每秒执行多少帧

Jump to

Keyboard shortcuts

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