mirror of
https://github.com/yeslayla/golang-game-framework.git
synced 2025-01-14 04:53:32 +01:00
20 lines
312 B
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
|
|
}
|