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 // buffer is a rect of tiles
type buffer struct { type buffer struct {

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

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

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

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

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

Loading…
Cancel
Save