25 lines
593 B
Go
25 lines
593 B
Go
package main
|
|
|
|
import (
|
|
"github.com/kercylan98/minotaur/modular"
|
|
"github.com/kercylan98/minotaur/modular/example/internal/dimension"
|
|
"github.com/kercylan98/minotaur/modular/example/internal/service/services/attack"
|
|
"github.com/kercylan98/minotaur/modular/example/internal/service/services/login"
|
|
"github.com/kercylan98/minotaur/modular/example/internal/service/services/server"
|
|
)
|
|
|
|
func main() {
|
|
modular.RegisterServices(
|
|
new(attack.Service),
|
|
new(server.Service),
|
|
new(login.Service),
|
|
)
|
|
|
|
err := dimension.New(1) // generate a room
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
|
|
modular.Run()
|
|
}
|