Restructure following https://github.com/fogleman/nes ideas
This commit is contained in:
14
ui/view.go
Normal file
14
ui/view.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package ui
|
||||
|
||||
import (
|
||||
"gb-player/gb"
|
||||
)
|
||||
|
||||
type View struct {
|
||||
controller *Controller
|
||||
console *gb.Console
|
||||
}
|
||||
|
||||
func NewView(controller *Controller, console *gb.Console) *View {
|
||||
return &View{controller, console}
|
||||
}
|
||||
Reference in New Issue
Block a user