golang-game-framework/node/inode.go

20 lines
312 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
2022-10-24 12:42:58 +02:00
Update(delta float64) error
2022-06-05 18:54:30 +02:00
ready(INode) error
2022-07-18 02:19:02 +02:00
IsProcessing() bool
GetProcessMode() ProcessMode
SetProcessMode(ProcessMode)
2022-07-18 04:12:46 +02:00
Free() error
2022-06-05 18:54:30 +02:00
}