golang-game-framework/node/inode.go

20 lines
312 B
Go

package node
type ProcessMode uint8
const (
DefaultProcessMode ProcessMode = iota
PausedProcessMode
ActiveProcessMode
)
type INode interface {
GetName() string
Update(delta float64) error
ready(INode) error
IsProcessing() bool
GetProcessMode() ProcessMode
SetProcessMode(ProcessMode)
Free() error
}