rename the ui package to app

master
Jordan Orelli 4 years ago
parent 9f2067e3d0
commit 3048157f6e

@ -1,4 +1,4 @@
package ui
package app
// buffer is a rect of tiles
type buffer struct {

@ -1,4 +1,4 @@
package ui
package app
type point struct{ x, y int }

@ -1,4 +1,4 @@
package ui
package app
import (
"github.com/gdamore/tcell/v2"

@ -1,4 +1,4 @@
package ui
package app
import (
"fmt"

@ -1,4 +1,4 @@
package ui
package app
import (
"github.com/gdamore/tcell/v2"

@ -5,9 +5,9 @@ import (
"os/signal"
"time"
"github.com/jordanorelli/astro-domu/internal/app"
"github.com/jordanorelli/astro-domu/internal/exit"
"github.com/jordanorelli/astro-domu/internal/server"
"github.com/jordanorelli/astro-domu/internal/ui"
"github.com/jordanorelli/blammo"
)
@ -62,9 +62,9 @@ func runClient(name string) {
log.Info("total play time: %v", finished.Sub(start))
}()
ui := ui.UI{
app := app.UI{
Log: log.Child("ui"),
PlayerName: name,
}
ui.Run()
app.Run()
}

Loading…
Cancel
Save