gg/src/gx/object.go

24 lines
396 B
Go
Raw Normal View History

2023-02-17 12:47:17 +03:00
package gx
// Implementing the interface type
// will call the function OnStart
// when first appear on scene BEFORE
// the OnUpdate.
type Starter interface {
Start(*Engine)
2023-02-17 12:47:17 +03:00
}
// Implementing the interface type
// will call the function on each
// engine iteration.
type Updater interface {
Update(*Engine) error
2023-02-17 12:47:17 +03:00
}
// The general interface for
type Behaver interface {
Starter
Updater
2023-02-17 12:47:17 +03:00
}