2023-02-17 12:47:17 +03:00
|
|
|
package gx
|
|
|
|
|
2023-05-04 19:31:33 +03:00
|
|
|
// Implementing the interface type
|
|
|
|
// will call the function OnStart
|
|
|
|
// when first appear on scene BEFORE
|
|
|
|
// the OnUpdate.
|
|
|
|
type Starter interface {
|
2023-02-17 16:40:46 +03:00
|
|
|
Start(*Engine)
|
2023-02-17 12:47:17 +03:00
|
|
|
}
|
|
|
|
|
2023-05-04 19:31:33 +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
|
|
|
}
|
|
|
|
|
2023-05-04 19:31:33 +03:00
|
|
|
// The general interface for
|
|
|
|
type Behaver interface {
|
|
|
|
Starter
|
|
|
|
Updater
|
2023-02-17 12:47:17 +03:00
|
|
|
}
|
|
|
|
|