initial commit
This commit is contained in:
30
main.go
Normal file
30
main.go
Normal file
@@ -0,0 +1,30 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"game/controller"
|
||||
"game/domain"
|
||||
"game/presenter"
|
||||
)
|
||||
|
||||
func main() {
|
||||
context := domain.CreateContext()
|
||||
|
||||
controller := controller.Controller{
|
||||
Context: context,
|
||||
}
|
||||
controller.Init()
|
||||
|
||||
presenter := presenter.Presenter{
|
||||
Context: context,
|
||||
}
|
||||
presenter.Init()
|
||||
|
||||
domain := domain.Domain{
|
||||
Context: context,
|
||||
}
|
||||
domain.Init()
|
||||
|
||||
domain.Start()
|
||||
controller.Start()
|
||||
presenter.Start()
|
||||
}
|
||||
Reference in New Issue
Block a user