interface
This commit is contained in:
parent
8e1ddae1d9
commit
fa58f4d573
1 changed files with 10 additions and 10 deletions
20
game/aw.go
20
game/aw.go
|
@ -10,16 +10,16 @@ import (
|
|||
"github.com/hajimehoshi/ebiten/v2/inpututil"
|
||||
)
|
||||
|
||||
var (
|
||||
_ engine.Identifier = &Awakeman{}
|
||||
_ engine.Drawer = &Awakeman{} // provided by Sprite
|
||||
_ engine.DrawOrderer = &Awakeman{} // provided by Sprite
|
||||
_ engine.Disabler = &Awakeman{}
|
||||
_ engine.Hider = &Awakeman{} // provided by Sprite
|
||||
_ engine.Prepper = &Awakeman{}
|
||||
_ engine.Scanner = &Awakeman{}
|
||||
_ engine.Updater = &Awakeman{}
|
||||
)
|
||||
var _ interface {
|
||||
engine.Identifier
|
||||
engine.Drawer // provided by Sprite
|
||||
engine.DrawOrderer // provided by Sprite
|
||||
engine.Disabler
|
||||
engine.Hider // provided by Sprite
|
||||
engine.Prepper
|
||||
engine.Scanner
|
||||
engine.Updater
|
||||
} = &Awakeman{}
|
||||
|
||||
func init() {
|
||||
gob.Register(&Awakeman{})
|
||||
|
|
Loading…
Reference in a new issue