golang-game-framework/node/inode.go

19 lines
285 B
Go
Raw Normal View History

2022-06-05 18:54:30 +02:00
package node
2022-07-18 02:19:02 +02:00
type ProcessMode uint8
const (
DefaultProcessMode ProcessMode = iota
PausedProcessMode
ActiveProcessMode
)
2022-06-05 18:54:30 +02:00
type INode interface {
GetName() string
Update() error
ready(INode) error
2022-07-18 02:19:02 +02:00
IsProcessing() bool
GetProcessMode() ProcessMode
SetProcessMode(ProcessMode)
2022-06-05 18:54:30 +02:00
}